[2024-12-31 00:00:05] Production.INFO: next invoice date [2024-12-31 00:00:05] Production.INFO: 2025-01-31 [2024-12-31 00:00:05] Production.INFO: getdaysdiff [2024-12-31 00:00:05] Production.INFO: +31 [2024-12-31 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (208,11,1,31,31,'RMScheduler',2024-12-31 00:00:05,0,0,,,0) [2024-12-31 00:00:06] Production.INFO: next invoice date [2024-12-31 00:00:06] Production.INFO: 2025-01-31 [2024-12-31 00:00:06] Production.INFO: getdaysdiff [2024-12-31 00:00:06] Production.INFO: +31 [2024-12-31 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (208,13,2,31,31,'RMScheduler',2024-12-31 00:00:05,0,0,,,0) [2024-12-31 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:00:07 [end_date_ymd] => 2024-12-31 00:00:07 [RateCDR] => 1 ) [2024-12-31 00:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:00:07' and `end` < '2024-12-31 00:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:00:21] Production.INFO: count ==666 [2024-12-31 00:00:21] Production.ERROR: pbx CDR StartTime 2024-12-30 21:00:07 - End Time 2024-12-31 00:00:07 [2024-12-31 00:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139728', 'tblTempUsageDetail_20' ) start [2024-12-31 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139728', 'tblTempUsageDetail_20' ) end [2024-12-31 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139728', 'tblTempVendorCDR_20' ) start [2024-12-31 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139728', 'tblTempVendorCDR_20' ) end [2024-12-31 00:00:21] Production.INFO: ProcessCDR(1,14139728,1,1,2) [2024-12-31 00:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139728', 'tblTempUsageDetail_20' ) start [2024-12-31 00:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139728', 'tblTempUsageDetail_20' ) end [2024-12-31 00:00:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:00:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:00:26] Production.INFO: ==23383== Releasing lock... [2024-12-31 00:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:00:26] Production.INFO: 34 MB #Memory Used# [2024-12-31 00:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:01:04 [end_date_ymd] => 2024-12-31 00:01:04 [RateCDR] => 1 ) [2024-12-31 00:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:01:04' and `end` < '2024-12-31 00:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:01:17] Production.INFO: count ==684 [2024-12-31 00:01:17] Production.ERROR: pbx CDR StartTime 2024-12-30 21:01:04 - End Time 2024-12-31 00:01:04 [2024-12-31 00:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139734', 'tblTempUsageDetail_20' ) start [2024-12-31 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139734', 'tblTempUsageDetail_20' ) end [2024-12-31 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139734', 'tblTempVendorCDR_20' ) start [2024-12-31 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139734', 'tblTempVendorCDR_20' ) end [2024-12-31 00:01:17] Production.INFO: ProcessCDR(1,14139734,1,1,2) [2024-12-31 00:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139734', 'tblTempUsageDetail_20' ) start [2024-12-31 00:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139734', 'tblTempUsageDetail_20' ) end [2024-12-31 00:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:01:20] Production.INFO: ==23473== Releasing lock... [2024-12-31 00:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:01:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-31 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:02:05 [end_date_ymd] => 2024-12-31 00:02:05 [RateCDR] => 1 ) [2024-12-31 00:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:02:05' and `end` < '2024-12-31 00:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:02:23] Production.INFO: count ==146 [2024-12-31 00:02:23] Production.ERROR: pbx CDR StartTime 2024-12-30 21:02:05 - End Time 2024-12-31 00:02:05 [2024-12-31 00:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139739', 'tblTempUsageDetail_20' ) start [2024-12-31 00:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139739', 'tblTempUsageDetail_20' ) end [2024-12-31 00:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139739', 'tblTempVendorCDR_20' ) start [2024-12-31 00:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139739', 'tblTempVendorCDR_20' ) end [2024-12-31 00:02:23] Production.INFO: ProcessCDR(1,14139739,1,1,2) [2024-12-31 00:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139739', 'tblTempUsageDetail_20' ) start [2024-12-31 00:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139739', 'tblTempUsageDetail_20' ) end [2024-12-31 00:02:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:02:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:02:26] Production.INFO: ==23586== Releasing lock... [2024-12-31 00:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:02:26] Production.INFO: 29.25 MB #Memory Used# [2024-12-31 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:03:05 [end_date_ymd] => 2024-12-31 00:03:05 [RateCDR] => 1 ) [2024-12-31 00:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:03:05' and `end` < '2024-12-31 00:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:03:18] Production.INFO: count ==146 [2024-12-31 00:03:18] Production.ERROR: pbx CDR StartTime 2024-12-30 21:03:05 - End Time 2024-12-31 00:03:05 [2024-12-31 00:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139744', 'tblTempUsageDetail_20' ) start [2024-12-31 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139744', 'tblTempUsageDetail_20' ) end [2024-12-31 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139744', 'tblTempVendorCDR_20' ) start [2024-12-31 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139744', 'tblTempVendorCDR_20' ) end [2024-12-31 00:03:18] Production.INFO: ProcessCDR(1,14139744,1,1,2) [2024-12-31 00:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139744', 'tblTempUsageDetail_20' ) start [2024-12-31 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139744', 'tblTempUsageDetail_20' ) end [2024-12-31 00:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:03:21] Production.INFO: ==23661== Releasing lock... [2024-12-31 00:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:03:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-31 00:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:04:04 [end_date_ymd] => 2024-12-31 00:04:04 [RateCDR] => 1 ) [2024-12-31 00:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:04:04' and `end` < '2024-12-31 00:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:04:17] Production.INFO: count ==146 [2024-12-31 00:04:17] Production.ERROR: pbx CDR StartTime 2024-12-30 21:04:04 - End Time 2024-12-31 00:04:04 [2024-12-31 00:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139749', 'tblTempUsageDetail_20' ) start [2024-12-31 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139749', 'tblTempUsageDetail_20' ) end [2024-12-31 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139749', 'tblTempVendorCDR_20' ) start [2024-12-31 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139749', 'tblTempVendorCDR_20' ) end [2024-12-31 00:04:17] Production.INFO: ProcessCDR(1,14139749,1,1,2) [2024-12-31 00:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139749', 'tblTempUsageDetail_20' ) start [2024-12-31 00:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139749', 'tblTempUsageDetail_20' ) end [2024-12-31 00:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:04:20] Production.INFO: ==23739== Releasing lock... [2024-12-31 00:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:04:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-31 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:05:05 [end_date_ymd] => 2024-12-31 00:05:05 [RateCDR] => 1 ) [2024-12-31 00:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:05:05' and `end` < '2024-12-31 00:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:05:18] Production.INFO: count ==146 [2024-12-31 00:05:18] Production.ERROR: pbx CDR StartTime 2024-12-30 21:05:05 - End Time 2024-12-31 00:05:05 [2024-12-31 00:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139754', 'tblTempUsageDetail_20' ) start [2024-12-31 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139754', 'tblTempUsageDetail_20' ) end [2024-12-31 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139754', 'tblTempVendorCDR_20' ) start [2024-12-31 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139754', 'tblTempVendorCDR_20' ) end [2024-12-31 00:05:18] Production.INFO: ProcessCDR(1,14139754,1,1,2) [2024-12-31 00:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139754', 'tblTempUsageDetail_20' ) start [2024-12-31 00:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139754', 'tblTempUsageDetail_20' ) end [2024-12-31 00:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:05:21] Production.INFO: ==23817== Releasing lock... [2024-12-31 00:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:05:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-31 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:06:05 [end_date_ymd] => 2024-12-31 00:06:05 [RateCDR] => 1 ) [2024-12-31 00:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:06:05' and `end` < '2024-12-31 00:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:06:18] Production.INFO: count ==146 [2024-12-31 00:06:18] Production.ERROR: pbx CDR StartTime 2024-12-30 21:06:05 - End Time 2024-12-31 00:06:05 [2024-12-31 00:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139759', 'tblTempUsageDetail_20' ) start [2024-12-31 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139759', 'tblTempUsageDetail_20' ) end [2024-12-31 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139759', 'tblTempVendorCDR_20' ) start [2024-12-31 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139759', 'tblTempVendorCDR_20' ) end [2024-12-31 00:06:18] Production.INFO: ProcessCDR(1,14139759,1,1,2) [2024-12-31 00:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139759', 'tblTempUsageDetail_20' ) start [2024-12-31 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139759', 'tblTempUsageDetail_20' ) end [2024-12-31 00:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:06:21] Production.INFO: ==23894== Releasing lock... [2024-12-31 00:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:06:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-31 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:07:05 [end_date_ymd] => 2024-12-31 00:07:05 [RateCDR] => 1 ) [2024-12-31 00:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:07:05' and `end` < '2024-12-31 00:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:07:17] Production.INFO: count ==146 [2024-12-31 00:07:18] Production.ERROR: pbx CDR StartTime 2024-12-30 21:07:05 - End Time 2024-12-31 00:07:05 [2024-12-31 00:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139764', 'tblTempUsageDetail_20' ) start [2024-12-31 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139764', 'tblTempUsageDetail_20' ) end [2024-12-31 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139764', 'tblTempVendorCDR_20' ) start [2024-12-31 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139764', 'tblTempVendorCDR_20' ) end [2024-12-31 00:07:18] Production.INFO: ProcessCDR(1,14139764,1,1,2) [2024-12-31 00:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139764', 'tblTempUsageDetail_20' ) start [2024-12-31 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139764', 'tblTempUsageDetail_20' ) end [2024-12-31 00:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:07:21] Production.INFO: ==23976== Releasing lock... [2024-12-31 00:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:07:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-31 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:08:05 [end_date_ymd] => 2024-12-31 00:08:05 [RateCDR] => 1 ) [2024-12-31 00:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:08:05' and `end` < '2024-12-31 00:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:08:18] Production.INFO: count ==146 [2024-12-31 00:08:18] Production.ERROR: pbx CDR StartTime 2024-12-30 21:08:05 - End Time 2024-12-31 00:08:05 [2024-12-31 00:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139769', 'tblTempUsageDetail_20' ) start [2024-12-31 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139769', 'tblTempUsageDetail_20' ) end [2024-12-31 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139769', 'tblTempVendorCDR_20' ) start [2024-12-31 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139769', 'tblTempVendorCDR_20' ) end [2024-12-31 00:08:18] Production.INFO: ProcessCDR(1,14139769,1,1,2) [2024-12-31 00:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139769', 'tblTempUsageDetail_20' ) start [2024-12-31 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139769', 'tblTempUsageDetail_20' ) end [2024-12-31 00:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:08:21] Production.INFO: ==24053== Releasing lock... [2024-12-31 00:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:08:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-31 00:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:09:04 [end_date_ymd] => 2024-12-31 00:09:04 [RateCDR] => 1 ) [2024-12-31 00:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:09:04' and `end` < '2024-12-31 00:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:09:17] Production.INFO: count ==147 [2024-12-31 00:09:17] Production.ERROR: pbx CDR StartTime 2024-12-30 21:09:04 - End Time 2024-12-31 00:09:04 [2024-12-31 00:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139774', 'tblTempUsageDetail_20' ) start [2024-12-31 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139774', 'tblTempUsageDetail_20' ) end [2024-12-31 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139774', 'tblTempVendorCDR_20' ) start [2024-12-31 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139774', 'tblTempVendorCDR_20' ) end [2024-12-31 00:09:17] Production.INFO: ProcessCDR(1,14139774,1,1,2) [2024-12-31 00:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139774', 'tblTempUsageDetail_20' ) start [2024-12-31 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139774', 'tblTempUsageDetail_20' ) end [2024-12-31 00:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:09:22] Production.INFO: ==24132== Releasing lock... [2024-12-31 00:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:09:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:10:05 [end_date_ymd] => 2024-12-31 00:10:05 [RateCDR] => 1 ) [2024-12-31 00:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:10:05' and `end` < '2024-12-31 00:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:10:18] Production.INFO: count ==153 [2024-12-31 00:10:18] Production.ERROR: pbx CDR StartTime 2024-12-30 21:10:05 - End Time 2024-12-31 00:10:05 [2024-12-31 00:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139779', 'tblTempUsageDetail_20' ) start [2024-12-31 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139779', 'tblTempUsageDetail_20' ) end [2024-12-31 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139779', 'tblTempVendorCDR_20' ) start [2024-12-31 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139779', 'tblTempVendorCDR_20' ) end [2024-12-31 00:10:18] Production.INFO: ProcessCDR(1,14139779,1,1,2) [2024-12-31 00:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139779', 'tblTempUsageDetail_20' ) start [2024-12-31 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139779', 'tblTempUsageDetail_20' ) end [2024-12-31 00:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:10:21] Production.INFO: ==24211== Releasing lock... [2024-12-31 00:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:10:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 00:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:11:04 [end_date_ymd] => 2024-12-31 00:11:04 [RateCDR] => 1 ) [2024-12-31 00:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:11:04' and `end` < '2024-12-31 00:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:11:17] Production.INFO: count ==160 [2024-12-31 00:11:17] Production.ERROR: pbx CDR StartTime 2024-12-30 21:11:04 - End Time 2024-12-31 00:11:04 [2024-12-31 00:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139785', 'tblTempUsageDetail_20' ) start [2024-12-31 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139785', 'tblTempUsageDetail_20' ) end [2024-12-31 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139785', 'tblTempVendorCDR_20' ) start [2024-12-31 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139785', 'tblTempVendorCDR_20' ) end [2024-12-31 00:11:17] Production.INFO: ProcessCDR(1,14139785,1,1,2) [2024-12-31 00:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139785', 'tblTempUsageDetail_20' ) start [2024-12-31 00:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139785', 'tblTempUsageDetail_20' ) end [2024-12-31 00:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:11:20] Production.INFO: ==24292== Releasing lock... [2024-12-31 00:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:11:20] Production.INFO: 30 MB #Memory Used# [2024-12-31 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:12:05 [end_date_ymd] => 2024-12-31 00:12:05 [RateCDR] => 1 ) [2024-12-31 00:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:12:05' and `end` < '2024-12-31 00:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:12:17] Production.INFO: count ==160 [2024-12-31 00:12:18] Production.ERROR: pbx CDR StartTime 2024-12-30 21:12:05 - End Time 2024-12-31 00:12:05 [2024-12-31 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139790', 'tblTempUsageDetail_20' ) start [2024-12-31 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139790', 'tblTempUsageDetail_20' ) end [2024-12-31 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139790', 'tblTempVendorCDR_20' ) start [2024-12-31 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139790', 'tblTempVendorCDR_20' ) end [2024-12-31 00:12:18] Production.INFO: ProcessCDR(1,14139790,1,1,2) [2024-12-31 00:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139790', 'tblTempUsageDetail_20' ) start [2024-12-31 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139790', 'tblTempUsageDetail_20' ) end [2024-12-31 00:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:12:21] Production.INFO: ==24370== Releasing lock... [2024-12-31 00:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:12:21] Production.INFO: 30 MB #Memory Used# [2024-12-31 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:13:05 [end_date_ymd] => 2024-12-31 00:13:05 [RateCDR] => 1 ) [2024-12-31 00:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:13:05' and `end` < '2024-12-31 00:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:13:18] Production.INFO: count ==142 [2024-12-31 00:13:18] Production.ERROR: pbx CDR StartTime 2024-12-30 21:13:05 - End Time 2024-12-31 00:13:05 [2024-12-31 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139795', 'tblTempUsageDetail_20' ) start [2024-12-31 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139795', 'tblTempUsageDetail_20' ) end [2024-12-31 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139795', 'tblTempVendorCDR_20' ) start [2024-12-31 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139795', 'tblTempVendorCDR_20' ) end [2024-12-31 00:13:18] Production.INFO: ProcessCDR(1,14139795,1,1,2) [2024-12-31 00:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139795', 'tblTempUsageDetail_20' ) start [2024-12-31 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139795', 'tblTempUsageDetail_20' ) end [2024-12-31 00:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:13:21] Production.INFO: ==24449== Releasing lock... [2024-12-31 00:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:13:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:14:05 [end_date_ymd] => 2024-12-31 00:14:05 [RateCDR] => 1 ) [2024-12-31 00:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:14:05' and `end` < '2024-12-31 00:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:14:18] Production.INFO: count ==135 [2024-12-31 00:14:18] Production.ERROR: pbx CDR StartTime 2024-12-30 21:14:05 - End Time 2024-12-31 00:14:05 [2024-12-31 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139800', 'tblTempUsageDetail_20' ) start [2024-12-31 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139800', 'tblTempUsageDetail_20' ) end [2024-12-31 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139800', 'tblTempVendorCDR_20' ) start [2024-12-31 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139800', 'tblTempVendorCDR_20' ) end [2024-12-31 00:14:18] Production.INFO: ProcessCDR(1,14139800,1,1,2) [2024-12-31 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139800', 'tblTempUsageDetail_20' ) start [2024-12-31 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139800', 'tblTempUsageDetail_20' ) end [2024-12-31 00:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:14:21] Production.INFO: ==24532== Releasing lock... [2024-12-31 00:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:14:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-31 00:15:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:15:06 [end_date_ymd] => 2024-12-31 00:15:06 [RateCDR] => 1 ) [2024-12-31 00:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:15:06' and `end` < '2024-12-31 00:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:15:18] Production.INFO: count ==131 [2024-12-31 00:15:18] Production.ERROR: pbx CDR StartTime 2024-12-30 21:15:06 - End Time 2024-12-31 00:15:06 [2024-12-31 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139805', 'tblTempUsageDetail_20' ) start [2024-12-31 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139805', 'tblTempUsageDetail_20' ) end [2024-12-31 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139805', 'tblTempVendorCDR_20' ) start [2024-12-31 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139805', 'tblTempVendorCDR_20' ) end [2024-12-31 00:15:18] Production.INFO: ProcessCDR(1,14139805,1,1,2) [2024-12-31 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139805', 'tblTempUsageDetail_20' ) start [2024-12-31 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139805', 'tblTempUsageDetail_20' ) end [2024-12-31 00:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:15:21] Production.INFO: ==24614== Releasing lock... [2024-12-31 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:15:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-31 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:16:05 [end_date_ymd] => 2024-12-31 00:16:05 [RateCDR] => 1 ) [2024-12-31 00:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:16:05' and `end` < '2024-12-31 00:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:16:17] Production.INFO: count ==125 [2024-12-31 00:16:17] Production.ERROR: pbx CDR StartTime 2024-12-30 21:16:05 - End Time 2024-12-31 00:16:05 [2024-12-31 00:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139810', 'tblTempUsageDetail_20' ) start [2024-12-31 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139810', 'tblTempUsageDetail_20' ) end [2024-12-31 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139810', 'tblTempVendorCDR_20' ) start [2024-12-31 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139810', 'tblTempVendorCDR_20' ) end [2024-12-31 00:16:17] Production.INFO: ProcessCDR(1,14139810,1,1,2) [2024-12-31 00:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139810', 'tblTempUsageDetail_20' ) start [2024-12-31 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139810', 'tblTempUsageDetail_20' ) end [2024-12-31 00:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:16:21] Production.INFO: ==24694== Releasing lock... [2024-12-31 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:16:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:17:05 [end_date_ymd] => 2024-12-31 00:17:05 [RateCDR] => 1 ) [2024-12-31 00:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:17:05' and `end` < '2024-12-31 00:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:17:18] Production.INFO: count ==125 [2024-12-31 00:17:18] Production.ERROR: pbx CDR StartTime 2024-12-30 21:17:05 - End Time 2024-12-31 00:17:05 [2024-12-31 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139815', 'tblTempUsageDetail_20' ) start [2024-12-31 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139815', 'tblTempUsageDetail_20' ) end [2024-12-31 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139815', 'tblTempVendorCDR_20' ) start [2024-12-31 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139815', 'tblTempVendorCDR_20' ) end [2024-12-31 00:17:18] Production.INFO: ProcessCDR(1,14139815,1,1,2) [2024-12-31 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139815', 'tblTempUsageDetail_20' ) start [2024-12-31 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139815', 'tblTempUsageDetail_20' ) end [2024-12-31 00:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:17:21] Production.INFO: ==24782== Releasing lock... [2024-12-31 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:17:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:18:05 [end_date_ymd] => 2024-12-31 00:18:05 [RateCDR] => 1 ) [2024-12-31 00:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:18:05' and `end` < '2024-12-31 00:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:18:18] Production.INFO: count ==125 [2024-12-31 00:18:18] Production.ERROR: pbx CDR StartTime 2024-12-30 21:18:05 - End Time 2024-12-31 00:18:05 [2024-12-31 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139820', 'tblTempUsageDetail_20' ) start [2024-12-31 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139820', 'tblTempUsageDetail_20' ) end [2024-12-31 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139820', 'tblTempVendorCDR_20' ) start [2024-12-31 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139820', 'tblTempVendorCDR_20' ) end [2024-12-31 00:18:18] Production.INFO: ProcessCDR(1,14139820,1,1,2) [2024-12-31 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139820', 'tblTempUsageDetail_20' ) start [2024-12-31 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139820', 'tblTempUsageDetail_20' ) end [2024-12-31 00:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:18:21] Production.INFO: ==24897== Releasing lock... [2024-12-31 00:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:18:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:19:05 [end_date_ymd] => 2024-12-31 00:19:05 [RateCDR] => 1 ) [2024-12-31 00:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:19:05' and `end` < '2024-12-31 00:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:19:18] Production.INFO: count ==128 [2024-12-31 00:19:18] Production.ERROR: pbx CDR StartTime 2024-12-30 21:19:05 - End Time 2024-12-31 00:19:05 [2024-12-31 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139825', 'tblTempUsageDetail_20' ) start [2024-12-31 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139825', 'tblTempUsageDetail_20' ) end [2024-12-31 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139825', 'tblTempVendorCDR_20' ) start [2024-12-31 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139825', 'tblTempVendorCDR_20' ) end [2024-12-31 00:19:18] Production.INFO: ProcessCDR(1,14139825,1,1,2) [2024-12-31 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139825', 'tblTempUsageDetail_20' ) start [2024-12-31 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139825', 'tblTempUsageDetail_20' ) end [2024-12-31 00:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:19:21] Production.INFO: ==24976== Releasing lock... [2024-12-31 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:19:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-31 00:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:20:05 [end_date_ymd] => 2024-12-31 00:20:05 [RateCDR] => 1 ) [2024-12-31 00:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:20:05' and `end` < '2024-12-31 00:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:20:18] Production.INFO: count ==134 [2024-12-31 00:20:18] Production.ERROR: pbx CDR StartTime 2024-12-30 21:20:05 - End Time 2024-12-31 00:20:05 [2024-12-31 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139831', 'tblTempUsageDetail_20' ) start [2024-12-31 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139831', 'tblTempUsageDetail_20' ) end [2024-12-31 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139831', 'tblTempVendorCDR_20' ) start [2024-12-31 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139831', 'tblTempVendorCDR_20' ) end [2024-12-31 00:20:18] Production.INFO: ProcessCDR(1,14139831,1,1,2) [2024-12-31 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139831', 'tblTempUsageDetail_20' ) start [2024-12-31 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139831', 'tblTempUsageDetail_20' ) end [2024-12-31 00:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:20:21] Production.INFO: ==25057== Releasing lock... [2024-12-31 00:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:20:21] Production.INFO: 29 MB #Memory Used# [2024-12-31 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:21:05 [end_date_ymd] => 2024-12-31 00:21:05 [RateCDR] => 1 ) [2024-12-31 00:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:21:05' and `end` < '2024-12-31 00:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:21:18] Production.INFO: count ==151 [2024-12-31 00:21:18] Production.ERROR: pbx CDR StartTime 2024-12-30 21:21:05 - End Time 2024-12-31 00:21:05 [2024-12-31 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139836', 'tblTempUsageDetail_20' ) start [2024-12-31 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139836', 'tblTempUsageDetail_20' ) end [2024-12-31 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139836', 'tblTempVendorCDR_20' ) start [2024-12-31 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139836', 'tblTempVendorCDR_20' ) end [2024-12-31 00:21:18] Production.INFO: ProcessCDR(1,14139836,1,1,2) [2024-12-31 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139836', 'tblTempUsageDetail_20' ) start [2024-12-31 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139836', 'tblTempUsageDetail_20' ) end [2024-12-31 00:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:21:21] Production.INFO: ==25137== Releasing lock... [2024-12-31 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:21:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 00:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:22:04 [end_date_ymd] => 2024-12-31 00:22:04 [RateCDR] => 1 ) [2024-12-31 00:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:22:04' and `end` < '2024-12-31 00:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:22:17] Production.INFO: count ==149 [2024-12-31 00:22:17] Production.ERROR: pbx CDR StartTime 2024-12-30 21:22:04 - End Time 2024-12-31 00:22:04 [2024-12-31 00:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139841', 'tblTempUsageDetail_20' ) start [2024-12-31 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139841', 'tblTempUsageDetail_20' ) end [2024-12-31 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139841', 'tblTempVendorCDR_20' ) start [2024-12-31 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139841', 'tblTempVendorCDR_20' ) end [2024-12-31 00:22:17] Production.INFO: ProcessCDR(1,14139841,1,1,2) [2024-12-31 00:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139841', 'tblTempUsageDetail_20' ) start [2024-12-31 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139841', 'tblTempUsageDetail_20' ) end [2024-12-31 00:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:22:21] Production.INFO: ==25217== Releasing lock... [2024-12-31 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:22:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-31 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:23:05 [end_date_ymd] => 2024-12-31 00:23:05 [RateCDR] => 1 ) [2024-12-31 00:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:23:05' and `end` < '2024-12-31 00:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:23:17] Production.INFO: count ==149 [2024-12-31 00:23:17] Production.ERROR: pbx CDR StartTime 2024-12-30 21:23:05 - End Time 2024-12-31 00:23:05 [2024-12-31 00:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139846', 'tblTempUsageDetail_20' ) start [2024-12-31 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139846', 'tblTempUsageDetail_20' ) end [2024-12-31 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139846', 'tblTempVendorCDR_20' ) start [2024-12-31 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139846', 'tblTempVendorCDR_20' ) end [2024-12-31 00:23:17] Production.INFO: ProcessCDR(1,14139846,1,1,2) [2024-12-31 00:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139846', 'tblTempUsageDetail_20' ) start [2024-12-31 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139846', 'tblTempUsageDetail_20' ) end [2024-12-31 00:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:23:20] Production.INFO: ==25293== Releasing lock... [2024-12-31 00:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:23:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-31 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:24:05 [end_date_ymd] => 2024-12-31 00:24:05 [RateCDR] => 1 ) [2024-12-31 00:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:24:05' and `end` < '2024-12-31 00:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:24:19] Production.INFO: count ==146 [2024-12-31 00:24:19] Production.ERROR: pbx CDR StartTime 2024-12-30 21:24:05 - End Time 2024-12-31 00:24:05 [2024-12-31 00:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139851', 'tblTempUsageDetail_20' ) start [2024-12-31 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139851', 'tblTempUsageDetail_20' ) end [2024-12-31 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139851', 'tblTempVendorCDR_20' ) start [2024-12-31 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139851', 'tblTempVendorCDR_20' ) end [2024-12-31 00:24:19] Production.INFO: ProcessCDR(1,14139851,1,1,2) [2024-12-31 00:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139851', 'tblTempUsageDetail_20' ) start [2024-12-31 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139851', 'tblTempUsageDetail_20' ) end [2024-12-31 00:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:24:22] Production.INFO: ==25369== Releasing lock... [2024-12-31 00:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:24:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:25:05 [end_date_ymd] => 2024-12-31 00:25:05 [RateCDR] => 1 ) [2024-12-31 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:25:05' and `end` < '2024-12-31 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:25:17] Production.INFO: count ==146 [2024-12-31 00:25:17] Production.ERROR: pbx CDR StartTime 2024-12-30 21:25:05 - End Time 2024-12-31 00:25:05 [2024-12-31 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139856', 'tblTempUsageDetail_20' ) start [2024-12-31 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139856', 'tblTempUsageDetail_20' ) end [2024-12-31 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139856', 'tblTempVendorCDR_20' ) start [2024-12-31 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139856', 'tblTempVendorCDR_20' ) end [2024-12-31 00:25:17] Production.INFO: ProcessCDR(1,14139856,1,1,2) [2024-12-31 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139856', 'tblTempUsageDetail_20' ) start [2024-12-31 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139856', 'tblTempUsageDetail_20' ) end [2024-12-31 00:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:25:20] Production.INFO: ==25444== Releasing lock... [2024-12-31 00:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:25:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:26:05 [end_date_ymd] => 2024-12-31 00:26:05 [RateCDR] => 1 ) [2024-12-31 00:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:26:05' and `end` < '2024-12-31 00:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:26:19] Production.INFO: count ==146 [2024-12-31 00:26:19] Production.ERROR: pbx CDR StartTime 2024-12-30 21:26:05 - End Time 2024-12-31 00:26:05 [2024-12-31 00:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139861', 'tblTempUsageDetail_20' ) start [2024-12-31 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139861', 'tblTempUsageDetail_20' ) end [2024-12-31 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139861', 'tblTempVendorCDR_20' ) start [2024-12-31 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139861', 'tblTempVendorCDR_20' ) end [2024-12-31 00:26:19] Production.INFO: ProcessCDR(1,14139861,1,1,2) [2024-12-31 00:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139861', 'tblTempUsageDetail_20' ) start [2024-12-31 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139861', 'tblTempUsageDetail_20' ) end [2024-12-31 00:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:26:22] Production.INFO: ==25515== Releasing lock... [2024-12-31 00:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:26:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 00:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:27:04 [end_date_ymd] => 2024-12-31 00:27:04 [RateCDR] => 1 ) [2024-12-31 00:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:27:04' and `end` < '2024-12-31 00:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:27:17] Production.INFO: count ==146 [2024-12-31 00:27:17] Production.ERROR: pbx CDR StartTime 2024-12-30 21:27:04 - End Time 2024-12-31 00:27:04 [2024-12-31 00:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139866', 'tblTempUsageDetail_20' ) start [2024-12-31 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139866', 'tblTempUsageDetail_20' ) end [2024-12-31 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139866', 'tblTempVendorCDR_20' ) start [2024-12-31 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139866', 'tblTempVendorCDR_20' ) end [2024-12-31 00:27:17] Production.INFO: ProcessCDR(1,14139866,1,1,2) [2024-12-31 00:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139866', 'tblTempUsageDetail_20' ) start [2024-12-31 00:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139866', 'tblTempUsageDetail_20' ) end [2024-12-31 00:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:27:20] Production.INFO: ==25587== Releasing lock... [2024-12-31 00:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:27:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:28:05 [end_date_ymd] => 2024-12-31 00:28:05 [RateCDR] => 1 ) [2024-12-31 00:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:28:05' and `end` < '2024-12-31 00:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:28:18] Production.INFO: count ==146 [2024-12-31 00:28:18] Production.ERROR: pbx CDR StartTime 2024-12-30 21:28:05 - End Time 2024-12-31 00:28:05 [2024-12-31 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139871', 'tblTempUsageDetail_20' ) start [2024-12-31 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139871', 'tblTempUsageDetail_20' ) end [2024-12-31 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139871', 'tblTempVendorCDR_20' ) start [2024-12-31 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139871', 'tblTempVendorCDR_20' ) end [2024-12-31 00:28:18] Production.INFO: ProcessCDR(1,14139871,1,1,2) [2024-12-31 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139871', 'tblTempUsageDetail_20' ) start [2024-12-31 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139871', 'tblTempUsageDetail_20' ) end [2024-12-31 00:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:28:21] Production.INFO: ==25657== Releasing lock... [2024-12-31 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:28:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:29:05 [end_date_ymd] => 2024-12-31 00:29:05 [RateCDR] => 1 ) [2024-12-31 00:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:29:05' and `end` < '2024-12-31 00:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:29:18] Production.INFO: count ==144 [2024-12-31 00:29:18] Production.ERROR: pbx CDR StartTime 2024-12-30 21:29:05 - End Time 2024-12-31 00:29:05 [2024-12-31 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139876', 'tblTempUsageDetail_20' ) start [2024-12-31 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139876', 'tblTempUsageDetail_20' ) end [2024-12-31 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139876', 'tblTempVendorCDR_20' ) start [2024-12-31 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139876', 'tblTempVendorCDR_20' ) end [2024-12-31 00:29:18] Production.INFO: ProcessCDR(1,14139876,1,1,2) [2024-12-31 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139876', 'tblTempUsageDetail_20' ) start [2024-12-31 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139876', 'tblTempUsageDetail_20' ) end [2024-12-31 00:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:29:21] Production.INFO: ==25734== Releasing lock... [2024-12-31 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:29:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:30:06 [end_date_ymd] => 2024-12-31 00:30:06 [RateCDR] => 1 ) [2024-12-31 00:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:30:06' and `end` < '2024-12-31 00:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:30:19] Production.INFO: count ==152 [2024-12-31 00:30:19] Production.ERROR: pbx CDR StartTime 2024-12-30 21:30:06 - End Time 2024-12-31 00:30:06 [2024-12-31 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139881', 'tblTempUsageDetail_20' ) start [2024-12-31 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139881', 'tblTempUsageDetail_20' ) end [2024-12-31 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139881', 'tblTempVendorCDR_20' ) start [2024-12-31 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139881', 'tblTempVendorCDR_20' ) end [2024-12-31 00:30:19] Production.INFO: ProcessCDR(1,14139881,1,1,2) [2024-12-31 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139881', 'tblTempUsageDetail_20' ) start [2024-12-31 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139881', 'tblTempUsageDetail_20' ) end [2024-12-31 00:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:30:22] Production.INFO: ==25810== Releasing lock... [2024-12-31 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:30:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 00:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:31:04 [end_date_ymd] => 2024-12-31 00:31:04 [RateCDR] => 1 ) [2024-12-31 00:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:31:04' and `end` < '2024-12-31 00:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:31:17] Production.INFO: count ==169 [2024-12-31 00:31:17] Production.ERROR: pbx CDR StartTime 2024-12-30 21:31:04 - End Time 2024-12-31 00:31:04 [2024-12-31 00:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139887', 'tblTempUsageDetail_20' ) start [2024-12-31 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139887', 'tblTempUsageDetail_20' ) end [2024-12-31 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139887', 'tblTempVendorCDR_20' ) start [2024-12-31 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139887', 'tblTempVendorCDR_20' ) end [2024-12-31 00:31:17] Production.INFO: ProcessCDR(1,14139887,1,1,2) [2024-12-31 00:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139887', 'tblTempUsageDetail_20' ) start [2024-12-31 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139887', 'tblTempUsageDetail_20' ) end [2024-12-31 00:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:31:20] Production.INFO: ==25880== Releasing lock... [2024-12-31 00:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:31:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:32:05 [end_date_ymd] => 2024-12-31 00:32:05 [RateCDR] => 1 ) [2024-12-31 00:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:32:05' and `end` < '2024-12-31 00:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:32:18] Production.INFO: count ==166 [2024-12-31 00:32:18] Production.ERROR: pbx CDR StartTime 2024-12-30 21:32:05 - End Time 2024-12-31 00:32:05 [2024-12-31 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139892', 'tblTempUsageDetail_20' ) start [2024-12-31 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139892', 'tblTempUsageDetail_20' ) end [2024-12-31 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139892', 'tblTempVendorCDR_20' ) start [2024-12-31 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139892', 'tblTempVendorCDR_20' ) end [2024-12-31 00:32:18] Production.INFO: ProcessCDR(1,14139892,1,1,2) [2024-12-31 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139892', 'tblTempUsageDetail_20' ) start [2024-12-31 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139892', 'tblTempUsageDetail_20' ) end [2024-12-31 00:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:32:21] Production.INFO: ==25958== Releasing lock... [2024-12-31 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:32:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:33:05 [end_date_ymd] => 2024-12-31 00:33:05 [RateCDR] => 1 ) [2024-12-31 00:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:33:05' and `end` < '2024-12-31 00:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:33:17] Production.INFO: count ==166 [2024-12-31 00:33:17] Production.ERROR: pbx CDR StartTime 2024-12-30 21:33:05 - End Time 2024-12-31 00:33:05 [2024-12-31 00:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139897', 'tblTempUsageDetail_20' ) start [2024-12-31 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139897', 'tblTempUsageDetail_20' ) end [2024-12-31 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139897', 'tblTempVendorCDR_20' ) start [2024-12-31 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139897', 'tblTempVendorCDR_20' ) end [2024-12-31 00:33:17] Production.INFO: ProcessCDR(1,14139897,1,1,2) [2024-12-31 00:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139897', 'tblTempUsageDetail_20' ) start [2024-12-31 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139897', 'tblTempUsageDetail_20' ) end [2024-12-31 00:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:33:21] Production.INFO: ==26031== Releasing lock... [2024-12-31 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:33:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:34:05 [end_date_ymd] => 2024-12-31 00:34:05 [RateCDR] => 1 ) [2024-12-31 00:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:34:05' and `end` < '2024-12-31 00:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:34:18] Production.INFO: count ==168 [2024-12-31 00:34:18] Production.ERROR: pbx CDR StartTime 2024-12-30 21:34:05 - End Time 2024-12-31 00:34:05 [2024-12-31 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139902', 'tblTempUsageDetail_20' ) start [2024-12-31 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139902', 'tblTempUsageDetail_20' ) end [2024-12-31 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139902', 'tblTempVendorCDR_20' ) start [2024-12-31 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139902', 'tblTempVendorCDR_20' ) end [2024-12-31 00:34:18] Production.INFO: ProcessCDR(1,14139902,1,1,2) [2024-12-31 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139902', 'tblTempUsageDetail_20' ) start [2024-12-31 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139902', 'tblTempUsageDetail_20' ) end [2024-12-31 00:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:34:21] Production.INFO: ==26140== Releasing lock... [2024-12-31 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:34:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:35:05 [end_date_ymd] => 2024-12-31 00:35:05 [RateCDR] => 1 ) [2024-12-31 00:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:35:05' and `end` < '2024-12-31 00:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:35:17] Production.INFO: count ==168 [2024-12-31 00:35:17] Production.ERROR: pbx CDR StartTime 2024-12-30 21:35:05 - End Time 2024-12-31 00:35:05 [2024-12-31 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139907', 'tblTempUsageDetail_20' ) start [2024-12-31 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139907', 'tblTempUsageDetail_20' ) end [2024-12-31 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139907', 'tblTempVendorCDR_20' ) start [2024-12-31 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139907', 'tblTempVendorCDR_20' ) end [2024-12-31 00:35:17] Production.INFO: ProcessCDR(1,14139907,1,1,2) [2024-12-31 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139907', 'tblTempUsageDetail_20' ) start [2024-12-31 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139907', 'tblTempUsageDetail_20' ) end [2024-12-31 00:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:35:21] Production.INFO: ==26213== Releasing lock... [2024-12-31 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:35:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:36:05 [end_date_ymd] => 2024-12-31 00:36:05 [RateCDR] => 1 ) [2024-12-31 00:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:36:05' and `end` < '2024-12-31 00:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:36:18] Production.INFO: count ==171 [2024-12-31 00:36:18] Production.ERROR: pbx CDR StartTime 2024-12-30 21:36:05 - End Time 2024-12-31 00:36:05 [2024-12-31 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139912', 'tblTempUsageDetail_20' ) start [2024-12-31 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139912', 'tblTempUsageDetail_20' ) end [2024-12-31 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139912', 'tblTempVendorCDR_20' ) start [2024-12-31 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139912', 'tblTempVendorCDR_20' ) end [2024-12-31 00:36:18] Production.INFO: ProcessCDR(1,14139912,1,1,2) [2024-12-31 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139912', 'tblTempUsageDetail_20' ) start [2024-12-31 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139912', 'tblTempUsageDetail_20' ) end [2024-12-31 00:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:36:21] Production.INFO: ==26287== Releasing lock... [2024-12-31 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:36:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-31 00:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:37:04 [end_date_ymd] => 2024-12-31 00:37:04 [RateCDR] => 1 ) [2024-12-31 00:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:37:04' and `end` < '2024-12-31 00:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:37:17] Production.INFO: count ==170 [2024-12-31 00:37:17] Production.ERROR: pbx CDR StartTime 2024-12-30 21:37:04 - End Time 2024-12-31 00:37:04 [2024-12-31 00:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139917', 'tblTempUsageDetail_20' ) start [2024-12-31 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139917', 'tblTempUsageDetail_20' ) end [2024-12-31 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139917', 'tblTempVendorCDR_20' ) start [2024-12-31 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139917', 'tblTempVendorCDR_20' ) end [2024-12-31 00:37:17] Production.INFO: ProcessCDR(1,14139917,1,1,2) [2024-12-31 00:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139917', 'tblTempUsageDetail_20' ) start [2024-12-31 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139917', 'tblTempUsageDetail_20' ) end [2024-12-31 00:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:37:20] Production.INFO: ==26356== Releasing lock... [2024-12-31 00:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:37:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-31 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:38:05 [end_date_ymd] => 2024-12-31 00:38:05 [RateCDR] => 1 ) [2024-12-31 00:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:38:05' and `end` < '2024-12-31 00:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:38:19] Production.INFO: count ==170 [2024-12-31 00:38:19] Production.ERROR: pbx CDR StartTime 2024-12-30 21:38:05 - End Time 2024-12-31 00:38:05 [2024-12-31 00:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139922', 'tblTempUsageDetail_20' ) start [2024-12-31 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139922', 'tblTempUsageDetail_20' ) end [2024-12-31 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139922', 'tblTempVendorCDR_20' ) start [2024-12-31 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139922', 'tblTempVendorCDR_20' ) end [2024-12-31 00:38:19] Production.INFO: ProcessCDR(1,14139922,1,1,2) [2024-12-31 00:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139922', 'tblTempUsageDetail_20' ) start [2024-12-31 00:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139922', 'tblTempUsageDetail_20' ) end [2024-12-31 00:38:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:38:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:38:23] Production.INFO: ==26428== Releasing lock... [2024-12-31 00:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:38:23] Production.INFO: 29.25 MB #Memory Used# [2024-12-31 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:39:05 [end_date_ymd] => 2024-12-31 00:39:05 [RateCDR] => 1 ) [2024-12-31 00:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:39:05' and `end` < '2024-12-31 00:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:39:18] Production.INFO: count ==171 [2024-12-31 00:39:18] Production.ERROR: pbx CDR StartTime 2024-12-30 21:39:05 - End Time 2024-12-31 00:39:05 [2024-12-31 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139927', 'tblTempUsageDetail_20' ) start [2024-12-31 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139927', 'tblTempUsageDetail_20' ) end [2024-12-31 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139927', 'tblTempVendorCDR_20' ) start [2024-12-31 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139927', 'tblTempVendorCDR_20' ) end [2024-12-31 00:39:18] Production.INFO: ProcessCDR(1,14139927,1,1,2) [2024-12-31 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139927', 'tblTempUsageDetail_20' ) start [2024-12-31 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139927', 'tblTempUsageDetail_20' ) end [2024-12-31 00:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:39:23] Production.INFO: ==26498== Releasing lock... [2024-12-31 00:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:39:23] Production.INFO: 29.25 MB #Memory Used# [2024-12-31 00:40:07] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:40:07 [end_date_ymd] => 2024-12-31 00:40:07 [RateCDR] => 1 ) [2024-12-31 00:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:40:07' and `end` < '2024-12-31 00:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:40:19] Production.INFO: count ==181 [2024-12-31 00:40:19] Production.ERROR: pbx CDR StartTime 2024-12-30 21:40:07 - End Time 2024-12-31 00:40:07 [2024-12-31 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139933', 'tblTempUsageDetail_20' ) start [2024-12-31 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139933', 'tblTempUsageDetail_20' ) end [2024-12-31 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139933', 'tblTempVendorCDR_20' ) start [2024-12-31 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139933', 'tblTempVendorCDR_20' ) end [2024-12-31 00:40:19] Production.INFO: ProcessCDR(1,14139933,1,1,2) [2024-12-31 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139933', 'tblTempUsageDetail_20' ) start [2024-12-31 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139933', 'tblTempUsageDetail_20' ) end [2024-12-31 00:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:40:22] Production.INFO: ==26571== Releasing lock... [2024-12-31 00:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:40:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 00:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:41:04 [end_date_ymd] => 2024-12-31 00:41:04 [RateCDR] => 1 ) [2024-12-31 00:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:41:04' and `end` < '2024-12-31 00:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:41:17] Production.INFO: count ==194 [2024-12-31 00:41:17] Production.ERROR: pbx CDR StartTime 2024-12-30 21:41:04 - End Time 2024-12-31 00:41:04 [2024-12-31 00:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139938', 'tblTempUsageDetail_20' ) start [2024-12-31 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139938', 'tblTempUsageDetail_20' ) end [2024-12-31 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139938', 'tblTempVendorCDR_20' ) start [2024-12-31 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139938', 'tblTempVendorCDR_20' ) end [2024-12-31 00:41:17] Production.INFO: ProcessCDR(1,14139938,1,1,2) [2024-12-31 00:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139938', 'tblTempUsageDetail_20' ) start [2024-12-31 00:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139938', 'tblTempUsageDetail_20' ) end [2024-12-31 00:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:41:20] Production.INFO: ==26642== Releasing lock... [2024-12-31 00:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:41:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-31 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:42:05 [end_date_ymd] => 2024-12-31 00:42:05 [RateCDR] => 1 ) [2024-12-31 00:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:42:05' and `end` < '2024-12-31 00:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:42:17] Production.INFO: count ==196 [2024-12-31 00:42:17] Production.ERROR: pbx CDR StartTime 2024-12-30 21:42:05 - End Time 2024-12-31 00:42:05 [2024-12-31 00:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139943', 'tblTempUsageDetail_20' ) start [2024-12-31 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139943', 'tblTempUsageDetail_20' ) end [2024-12-31 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139943', 'tblTempVendorCDR_20' ) start [2024-12-31 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139943', 'tblTempVendorCDR_20' ) end [2024-12-31 00:42:17] Production.INFO: ProcessCDR(1,14139943,1,1,2) [2024-12-31 00:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139943', 'tblTempUsageDetail_20' ) start [2024-12-31 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139943', 'tblTempUsageDetail_20' ) end [2024-12-31 00:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:42:20] Production.INFO: ==26714== Releasing lock... [2024-12-31 00:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:42:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 00:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:43:04 [end_date_ymd] => 2024-12-31 00:43:04 [RateCDR] => 1 ) [2024-12-31 00:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:43:04' and `end` < '2024-12-31 00:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:43:17] Production.INFO: count ==194 [2024-12-31 00:43:17] Production.ERROR: pbx CDR StartTime 2024-12-30 21:43:04 - End Time 2024-12-31 00:43:04 [2024-12-31 00:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139948', 'tblTempUsageDetail_20' ) start [2024-12-31 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139948', 'tblTempUsageDetail_20' ) end [2024-12-31 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139948', 'tblTempVendorCDR_20' ) start [2024-12-31 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139948', 'tblTempVendorCDR_20' ) end [2024-12-31 00:43:17] Production.INFO: ProcessCDR(1,14139948,1,1,2) [2024-12-31 00:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139948', 'tblTempUsageDetail_20' ) start [2024-12-31 00:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139948', 'tblTempUsageDetail_20' ) end [2024-12-31 00:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:43:20] Production.INFO: ==26785== Releasing lock... [2024-12-31 00:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:43:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-31 00:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:44:04 [end_date_ymd] => 2024-12-31 00:44:04 [RateCDR] => 1 ) [2024-12-31 00:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:44:04' and `end` < '2024-12-31 00:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:44:17] Production.INFO: count ==193 [2024-12-31 00:44:17] Production.ERROR: pbx CDR StartTime 2024-12-30 21:44:04 - End Time 2024-12-31 00:44:04 [2024-12-31 00:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139953', 'tblTempUsageDetail_20' ) start [2024-12-31 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139953', 'tblTempUsageDetail_20' ) end [2024-12-31 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139953', 'tblTempVendorCDR_20' ) start [2024-12-31 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139953', 'tblTempVendorCDR_20' ) end [2024-12-31 00:44:18] Production.INFO: ProcessCDR(1,14139953,1,1,2) [2024-12-31 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139953', 'tblTempUsageDetail_20' ) start [2024-12-31 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139953', 'tblTempUsageDetail_20' ) end [2024-12-31 00:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:44:21] Production.INFO: ==26854== Releasing lock... [2024-12-31 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:44:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-31 00:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:45:04 [end_date_ymd] => 2024-12-31 00:45:04 [RateCDR] => 1 ) [2024-12-31 00:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:45:04' and `end` < '2024-12-31 00:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:45:17] Production.INFO: count ==193 [2024-12-31 00:45:17] Production.ERROR: pbx CDR StartTime 2024-12-30 21:45:04 - End Time 2024-12-31 00:45:04 [2024-12-31 00:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139958', 'tblTempUsageDetail_20' ) start [2024-12-31 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139958', 'tblTempUsageDetail_20' ) end [2024-12-31 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139958', 'tblTempVendorCDR_20' ) start [2024-12-31 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139958', 'tblTempVendorCDR_20' ) end [2024-12-31 00:45:17] Production.INFO: ProcessCDR(1,14139958,1,1,2) [2024-12-31 00:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139958', 'tblTempUsageDetail_20' ) start [2024-12-31 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139958', 'tblTempUsageDetail_20' ) end [2024-12-31 00:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:45:20] Production.INFO: ==26928== Releasing lock... [2024-12-31 00:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:45:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-31 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:46:05 [end_date_ymd] => 2024-12-31 00:46:05 [RateCDR] => 1 ) [2024-12-31 00:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:46:05' and `end` < '2024-12-31 00:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:46:17] Production.INFO: count ==194 [2024-12-31 00:46:17] Production.ERROR: pbx CDR StartTime 2024-12-30 21:46:05 - End Time 2024-12-31 00:46:05 [2024-12-31 00:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139963', 'tblTempUsageDetail_20' ) start [2024-12-31 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139963', 'tblTempUsageDetail_20' ) end [2024-12-31 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139963', 'tblTempVendorCDR_20' ) start [2024-12-31 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139963', 'tblTempVendorCDR_20' ) end [2024-12-31 00:46:17] Production.INFO: ProcessCDR(1,14139963,1,1,2) [2024-12-31 00:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139963', 'tblTempUsageDetail_20' ) start [2024-12-31 00:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139963', 'tblTempUsageDetail_20' ) end [2024-12-31 00:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:46:20] Production.INFO: ==26997== Releasing lock... [2024-12-31 00:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:46:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-31 00:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:47:04 [end_date_ymd] => 2024-12-31 00:47:04 [RateCDR] => 1 ) [2024-12-31 00:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:47:04' and `end` < '2024-12-31 00:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:47:17] Production.INFO: count ==202 [2024-12-31 00:47:17] Production.ERROR: pbx CDR StartTime 2024-12-30 21:47:04 - End Time 2024-12-31 00:47:04 [2024-12-31 00:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139968', 'tblTempUsageDetail_20' ) start [2024-12-31 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139968', 'tblTempUsageDetail_20' ) end [2024-12-31 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139968', 'tblTempVendorCDR_20' ) start [2024-12-31 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139968', 'tblTempVendorCDR_20' ) end [2024-12-31 00:47:17] Production.INFO: ProcessCDR(1,14139968,1,1,2) [2024-12-31 00:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139968', 'tblTempUsageDetail_20' ) start [2024-12-31 00:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139968', 'tblTempUsageDetail_20' ) end [2024-12-31 00:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:47:20] Production.INFO: ==27070== Releasing lock... [2024-12-31 00:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:47:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 00:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:48:04 [end_date_ymd] => 2024-12-31 00:48:04 [RateCDR] => 1 ) [2024-12-31 00:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:48:04' and `end` < '2024-12-31 00:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:48:17] Production.INFO: count ==203 [2024-12-31 00:48:17] Production.ERROR: pbx CDR StartTime 2024-12-30 21:48:04 - End Time 2024-12-31 00:48:04 [2024-12-31 00:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139973', 'tblTempUsageDetail_20' ) start [2024-12-31 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139973', 'tblTempUsageDetail_20' ) end [2024-12-31 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139973', 'tblTempVendorCDR_20' ) start [2024-12-31 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139973', 'tblTempVendorCDR_20' ) end [2024-12-31 00:48:17] Production.INFO: ProcessCDR(1,14139973,1,1,2) [2024-12-31 00:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139973', 'tblTempUsageDetail_20' ) start [2024-12-31 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139973', 'tblTempUsageDetail_20' ) end [2024-12-31 00:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:48:21] Production.INFO: ==27144== Releasing lock... [2024-12-31 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:48:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-31 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:49:05 [end_date_ymd] => 2024-12-31 00:49:05 [RateCDR] => 1 ) [2024-12-31 00:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:49:05' and `end` < '2024-12-31 00:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:49:18] Production.INFO: count ==203 [2024-12-31 00:49:18] Production.ERROR: pbx CDR StartTime 2024-12-30 21:49:05 - End Time 2024-12-31 00:49:05 [2024-12-31 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139978', 'tblTempUsageDetail_20' ) start [2024-12-31 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139978', 'tblTempUsageDetail_20' ) end [2024-12-31 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139978', 'tblTempVendorCDR_20' ) start [2024-12-31 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139978', 'tblTempVendorCDR_20' ) end [2024-12-31 00:49:18] Production.INFO: ProcessCDR(1,14139978,1,1,2) [2024-12-31 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139978', 'tblTempUsageDetail_20' ) start [2024-12-31 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139978', 'tblTempUsageDetail_20' ) end [2024-12-31 00:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:49:21] Production.INFO: ==27256== Releasing lock... [2024-12-31 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:49:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-31 00:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:50:05 [end_date_ymd] => 2024-12-31 00:50:05 [RateCDR] => 1 ) [2024-12-31 00:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:50:05' and `end` < '2024-12-31 00:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:50:18] Production.INFO: count ==203 [2024-12-31 00:50:18] Production.ERROR: pbx CDR StartTime 2024-12-30 21:50:05 - End Time 2024-12-31 00:50:05 [2024-12-31 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139984', 'tblTempUsageDetail_20' ) start [2024-12-31 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139984', 'tblTempUsageDetail_20' ) end [2024-12-31 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139984', 'tblTempVendorCDR_20' ) start [2024-12-31 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139984', 'tblTempVendorCDR_20' ) end [2024-12-31 00:50:18] Production.INFO: ProcessCDR(1,14139984,1,1,2) [2024-12-31 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139984', 'tblTempUsageDetail_20' ) start [2024-12-31 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139984', 'tblTempUsageDetail_20' ) end [2024-12-31 00:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:50:21] Production.INFO: ==27328== Releasing lock... [2024-12-31 00:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:50:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-31 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:51:05 [end_date_ymd] => 2024-12-31 00:51:05 [RateCDR] => 1 ) [2024-12-31 00:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:51:05' and `end` < '2024-12-31 00:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:51:17] Production.INFO: count ==203 [2024-12-31 00:51:17] Production.ERROR: pbx CDR StartTime 2024-12-30 21:51:05 - End Time 2024-12-31 00:51:05 [2024-12-31 00:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139989', 'tblTempUsageDetail_20' ) start [2024-12-31 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139989', 'tblTempUsageDetail_20' ) end [2024-12-31 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139989', 'tblTempVendorCDR_20' ) start [2024-12-31 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139989', 'tblTempVendorCDR_20' ) end [2024-12-31 00:51:17] Production.INFO: ProcessCDR(1,14139989,1,1,2) [2024-12-31 00:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139989', 'tblTempUsageDetail_20' ) start [2024-12-31 00:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139989', 'tblTempUsageDetail_20' ) end [2024-12-31 00:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:51:20] Production.INFO: ==27405== Releasing lock... [2024-12-31 00:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:51:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-31 00:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:52:04 [end_date_ymd] => 2024-12-31 00:52:04 [RateCDR] => 1 ) [2024-12-31 00:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:52:04' and `end` < '2024-12-31 00:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:52:17] Production.INFO: count ==203 [2024-12-31 00:52:17] Production.ERROR: pbx CDR StartTime 2024-12-30 21:52:04 - End Time 2024-12-31 00:52:04 [2024-12-31 00:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139994', 'tblTempUsageDetail_20' ) start [2024-12-31 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139994', 'tblTempUsageDetail_20' ) end [2024-12-31 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139994', 'tblTempVendorCDR_20' ) start [2024-12-31 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139994', 'tblTempVendorCDR_20' ) end [2024-12-31 00:52:17] Production.INFO: ProcessCDR(1,14139994,1,1,2) [2024-12-31 00:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139994', 'tblTempUsageDetail_20' ) start [2024-12-31 00:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139994', 'tblTempUsageDetail_20' ) end [2024-12-31 00:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:52:20] Production.INFO: ==27475== Releasing lock... [2024-12-31 00:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:52:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-31 00:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:53:04 [end_date_ymd] => 2024-12-31 00:53:04 [RateCDR] => 1 ) [2024-12-31 00:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:53:04' and `end` < '2024-12-31 00:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:53:17] Production.INFO: count ==203 [2024-12-31 00:53:17] Production.ERROR: pbx CDR StartTime 2024-12-30 21:53:04 - End Time 2024-12-31 00:53:04 [2024-12-31 00:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139999', 'tblTempUsageDetail_20' ) start [2024-12-31 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139999', 'tblTempUsageDetail_20' ) end [2024-12-31 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139999', 'tblTempVendorCDR_20' ) start [2024-12-31 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139999', 'tblTempVendorCDR_20' ) end [2024-12-31 00:53:17] Production.INFO: ProcessCDR(1,14139999,1,1,2) [2024-12-31 00:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139999', 'tblTempUsageDetail_20' ) start [2024-12-31 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139999', 'tblTempUsageDetail_20' ) end [2024-12-31 00:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:53:20] Production.INFO: ==27547== Releasing lock... [2024-12-31 00:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:53:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-31 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:54:05 [end_date_ymd] => 2024-12-31 00:54:05 [RateCDR] => 1 ) [2024-12-31 00:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:54:05' and `end` < '2024-12-31 00:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:54:18] Production.INFO: count ==204 [2024-12-31 00:54:18] Production.ERROR: pbx CDR StartTime 2024-12-30 21:54:05 - End Time 2024-12-31 00:54:05 [2024-12-31 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140004', 'tblTempUsageDetail_20' ) start [2024-12-31 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140004', 'tblTempUsageDetail_20' ) end [2024-12-31 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140004', 'tblTempVendorCDR_20' ) start [2024-12-31 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140004', 'tblTempVendorCDR_20' ) end [2024-12-31 00:54:18] Production.INFO: ProcessCDR(1,14140004,1,1,2) [2024-12-31 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140004', 'tblTempUsageDetail_20' ) start [2024-12-31 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140004', 'tblTempUsageDetail_20' ) end [2024-12-31 00:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:54:22] Production.INFO: ==27619== Releasing lock... [2024-12-31 00:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:54:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:55:05 [end_date_ymd] => 2024-12-31 00:55:05 [RateCDR] => 1 ) [2024-12-31 00:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:55:05' and `end` < '2024-12-31 00:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:55:18] Production.INFO: count ==201 [2024-12-31 00:55:18] Production.ERROR: pbx CDR StartTime 2024-12-30 21:55:05 - End Time 2024-12-31 00:55:05 [2024-12-31 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140009', 'tblTempUsageDetail_20' ) start [2024-12-31 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140009', 'tblTempUsageDetail_20' ) end [2024-12-31 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140009', 'tblTempVendorCDR_20' ) start [2024-12-31 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140009', 'tblTempVendorCDR_20' ) end [2024-12-31 00:55:18] Production.INFO: ProcessCDR(1,14140009,1,1,2) [2024-12-31 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140009', 'tblTempUsageDetail_20' ) start [2024-12-31 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140009', 'tblTempUsageDetail_20' ) end [2024-12-31 00:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:55:21] Production.INFO: ==27690== Releasing lock... [2024-12-31 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:55:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-31 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:56:05 [end_date_ymd] => 2024-12-31 00:56:05 [RateCDR] => 1 ) [2024-12-31 00:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:56:05' and `end` < '2024-12-31 00:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:56:18] Production.INFO: count ==201 [2024-12-31 00:56:18] Production.ERROR: pbx CDR StartTime 2024-12-30 21:56:05 - End Time 2024-12-31 00:56:05 [2024-12-31 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140014', 'tblTempUsageDetail_20' ) start [2024-12-31 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140014', 'tblTempUsageDetail_20' ) end [2024-12-31 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140014', 'tblTempVendorCDR_20' ) start [2024-12-31 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140014', 'tblTempVendorCDR_20' ) end [2024-12-31 00:56:18] Production.INFO: ProcessCDR(1,14140014,1,1,2) [2024-12-31 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140014', 'tblTempUsageDetail_20' ) start [2024-12-31 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140014', 'tblTempUsageDetail_20' ) end [2024-12-31 00:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:56:21] Production.INFO: ==27763== Releasing lock... [2024-12-31 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:56:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-31 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:57:05 [end_date_ymd] => 2024-12-31 00:57:05 [RateCDR] => 1 ) [2024-12-31 00:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:57:05' and `end` < '2024-12-31 00:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:57:17] Production.INFO: count ==199 [2024-12-31 00:57:17] Production.ERROR: pbx CDR StartTime 2024-12-30 21:57:05 - End Time 2024-12-31 00:57:05 [2024-12-31 00:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140019', 'tblTempUsageDetail_20' ) start [2024-12-31 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140019', 'tblTempUsageDetail_20' ) end [2024-12-31 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140019', 'tblTempVendorCDR_20' ) start [2024-12-31 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140019', 'tblTempVendorCDR_20' ) end [2024-12-31 00:57:17] Production.INFO: ProcessCDR(1,14140019,1,1,2) [2024-12-31 00:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140019', 'tblTempUsageDetail_20' ) start [2024-12-31 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140019', 'tblTempUsageDetail_20' ) end [2024-12-31 00:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:57:20] Production.INFO: ==27835== Releasing lock... [2024-12-31 00:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:57:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-31 00:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:58:04 [end_date_ymd] => 2024-12-31 00:58:04 [RateCDR] => 1 ) [2024-12-31 00:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:58:04' and `end` < '2024-12-31 00:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:58:16] Production.INFO: count ==199 [2024-12-31 00:58:16] Production.ERROR: pbx CDR StartTime 2024-12-30 21:58:04 - End Time 2024-12-31 00:58:04 [2024-12-31 00:58:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140024', 'tblTempUsageDetail_20' ) start [2024-12-31 00:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140024', 'tblTempUsageDetail_20' ) end [2024-12-31 00:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140024', 'tblTempVendorCDR_20' ) start [2024-12-31 00:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140024', 'tblTempVendorCDR_20' ) end [2024-12-31 00:58:16] Production.INFO: ProcessCDR(1,14140024,1,1,2) [2024-12-31 00:58:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:58:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:58:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:58:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:58:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140024', 'tblTempUsageDetail_20' ) start [2024-12-31 00:58:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140024', 'tblTempUsageDetail_20' ) end [2024-12-31 00:58:19] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:58:19] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:58:19] Production.INFO: ==27904== Releasing lock... [2024-12-31 00:58:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:58:19] Production.INFO: 29.75 MB #Memory Used# [2024-12-31 00:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 21:59:04 [end_date_ymd] => 2024-12-31 00:59:04 [RateCDR] => 1 ) [2024-12-31 00:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 21:59:04' and `end` < '2024-12-31 00:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 00:59:17] Production.INFO: count ==201 [2024-12-31 00:59:17] Production.ERROR: pbx CDR StartTime 2024-12-30 21:59:04 - End Time 2024-12-31 00:59:04 [2024-12-31 00:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140029', 'tblTempUsageDetail_20' ) start [2024-12-31 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140029', 'tblTempUsageDetail_20' ) end [2024-12-31 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140029', 'tblTempVendorCDR_20' ) start [2024-12-31 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140029', 'tblTempVendorCDR_20' ) end [2024-12-31 00:59:17] Production.INFO: ProcessCDR(1,14140029,1,1,2) [2024-12-31 00:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 00:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140029', 'tblTempUsageDetail_20' ) start [2024-12-31 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140029', 'tblTempUsageDetail_20' ) end [2024-12-31 00:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 00:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 00:59:22] Production.INFO: ==27976== Releasing lock... [2024-12-31 00:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 00:59:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-31 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:00:06 [end_date_ymd] => 2024-12-31 01:00:06 [RateCDR] => 1 ) [2024-12-31 01:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:00:06' and `end` < '2024-12-31 01:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:00:18] Production.INFO: count ==203 [2024-12-31 01:00:18] Production.ERROR: pbx CDR StartTime 2024-12-30 22:00:06 - End Time 2024-12-31 01:00:06 [2024-12-31 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140034', 'tblTempUsageDetail_20' ) start [2024-12-31 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140034', 'tblTempUsageDetail_20' ) end [2024-12-31 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140034', 'tblTempVendorCDR_20' ) start [2024-12-31 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140034', 'tblTempVendorCDR_20' ) end [2024-12-31 01:00:18] Production.INFO: ProcessCDR(1,14140034,1,1,2) [2024-12-31 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140034', 'tblTempUsageDetail_20' ) start [2024-12-31 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140034', 'tblTempUsageDetail_20' ) end [2024-12-31 01:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:00:21] Production.INFO: ==28053== Releasing lock... [2024-12-31 01:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:00:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-31 01:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:01:04 [end_date_ymd] => 2024-12-31 01:01:04 [RateCDR] => 1 ) [2024-12-31 01:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:01:04' and `end` < '2024-12-31 01:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:01:17] Production.INFO: count ==203 [2024-12-31 01:01:17] Production.ERROR: pbx CDR StartTime 2024-12-30 22:01:04 - End Time 2024-12-31 01:01:04 [2024-12-31 01:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140039', 'tblTempUsageDetail_20' ) start [2024-12-31 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140039', 'tblTempUsageDetail_20' ) end [2024-12-31 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140039', 'tblTempVendorCDR_20' ) start [2024-12-31 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140039', 'tblTempVendorCDR_20' ) end [2024-12-31 01:01:17] Production.INFO: ProcessCDR(1,14140039,1,1,2) [2024-12-31 01:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140039', 'tblTempUsageDetail_20' ) start [2024-12-31 01:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140039', 'tblTempUsageDetail_20' ) end [2024-12-31 01:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:01:20] Production.INFO: ==28137== Releasing lock... [2024-12-31 01:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:01:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-31 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:02:05 [end_date_ymd] => 2024-12-31 01:02:05 [RateCDR] => 1 ) [2024-12-31 01:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:02:05' and `end` < '2024-12-31 01:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:02:17] Production.INFO: count ==203 [2024-12-31 01:02:17] Production.ERROR: pbx CDR StartTime 2024-12-30 22:02:05 - End Time 2024-12-31 01:02:05 [2024-12-31 01:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140045', 'tblTempUsageDetail_20' ) start [2024-12-31 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140045', 'tblTempUsageDetail_20' ) end [2024-12-31 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140045', 'tblTempVendorCDR_20' ) start [2024-12-31 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140045', 'tblTempVendorCDR_20' ) end [2024-12-31 01:02:17] Production.INFO: ProcessCDR(1,14140045,1,1,2) [2024-12-31 01:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140045', 'tblTempUsageDetail_20' ) start [2024-12-31 01:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140045', 'tblTempUsageDetail_20' ) end [2024-12-31 01:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:02:20] Production.INFO: ==28210== Releasing lock... [2024-12-31 01:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:02:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-31 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:03:05 [end_date_ymd] => 2024-12-31 01:03:05 [RateCDR] => 1 ) [2024-12-31 01:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:03:05' and `end` < '2024-12-31 01:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:03:17] Production.INFO: count ==202 [2024-12-31 01:03:17] Production.ERROR: pbx CDR StartTime 2024-12-30 22:03:05 - End Time 2024-12-31 01:03:05 [2024-12-31 01:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140050', 'tblTempUsageDetail_20' ) start [2024-12-31 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140050', 'tblTempUsageDetail_20' ) end [2024-12-31 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140050', 'tblTempVendorCDR_20' ) start [2024-12-31 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140050', 'tblTempVendorCDR_20' ) end [2024-12-31 01:03:17] Production.INFO: ProcessCDR(1,14140050,1,1,2) [2024-12-31 01:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140050', 'tblTempUsageDetail_20' ) start [2024-12-31 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140050', 'tblTempUsageDetail_20' ) end [2024-12-31 01:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:03:20] Production.INFO: ==28284== Releasing lock... [2024-12-31 01:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:03:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 01:04:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:04:06 [end_date_ymd] => 2024-12-31 01:04:06 [RateCDR] => 1 ) [2024-12-31 01:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:04:06' and `end` < '2024-12-31 01:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:04:18] Production.INFO: count ==198 [2024-12-31 01:04:18] Production.ERROR: pbx CDR StartTime 2024-12-30 22:04:06 - End Time 2024-12-31 01:04:06 [2024-12-31 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140055', 'tblTempUsageDetail_20' ) start [2024-12-31 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140055', 'tblTempUsageDetail_20' ) end [2024-12-31 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140055', 'tblTempVendorCDR_20' ) start [2024-12-31 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140055', 'tblTempVendorCDR_20' ) end [2024-12-31 01:04:18] Production.INFO: ProcessCDR(1,14140055,1,1,2) [2024-12-31 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140055', 'tblTempUsageDetail_20' ) start [2024-12-31 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140055', 'tblTempUsageDetail_20' ) end [2024-12-31 01:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:04:21] Production.INFO: ==28358== Releasing lock... [2024-12-31 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:04:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 01:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:05:04 [end_date_ymd] => 2024-12-31 01:05:04 [RateCDR] => 1 ) [2024-12-31 01:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:05:04' and `end` < '2024-12-31 01:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:05:17] Production.INFO: count ==196 [2024-12-31 01:05:17] Production.ERROR: pbx CDR StartTime 2024-12-30 22:05:04 - End Time 2024-12-31 01:05:04 [2024-12-31 01:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140060', 'tblTempUsageDetail_20' ) start [2024-12-31 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140060', 'tblTempUsageDetail_20' ) end [2024-12-31 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140060', 'tblTempVendorCDR_20' ) start [2024-12-31 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140060', 'tblTempVendorCDR_20' ) end [2024-12-31 01:05:17] Production.INFO: ProcessCDR(1,14140060,1,1,2) [2024-12-31 01:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140060', 'tblTempUsageDetail_20' ) start [2024-12-31 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140060', 'tblTempUsageDetail_20' ) end [2024-12-31 01:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:05:20] Production.INFO: ==28466== Releasing lock... [2024-12-31 01:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:05:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:06:05 [end_date_ymd] => 2024-12-31 01:06:05 [RateCDR] => 1 ) [2024-12-31 01:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:06:05' and `end` < '2024-12-31 01:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:06:17] Production.INFO: count ==196 [2024-12-31 01:06:17] Production.ERROR: pbx CDR StartTime 2024-12-30 22:06:05 - End Time 2024-12-31 01:06:05 [2024-12-31 01:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140065', 'tblTempUsageDetail_20' ) start [2024-12-31 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140065', 'tblTempUsageDetail_20' ) end [2024-12-31 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140065', 'tblTempVendorCDR_20' ) start [2024-12-31 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140065', 'tblTempVendorCDR_20' ) end [2024-12-31 01:06:17] Production.INFO: ProcessCDR(1,14140065,1,1,2) [2024-12-31 01:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140065', 'tblTempUsageDetail_20' ) start [2024-12-31 01:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140065', 'tblTempUsageDetail_20' ) end [2024-12-31 01:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:06:20] Production.INFO: ==28537== Releasing lock... [2024-12-31 01:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:06:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:07:05 [end_date_ymd] => 2024-12-31 01:07:05 [RateCDR] => 1 ) [2024-12-31 01:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:07:05' and `end` < '2024-12-31 01:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:07:18] Production.INFO: count ==196 [2024-12-31 01:07:18] Production.ERROR: pbx CDR StartTime 2024-12-30 22:07:05 - End Time 2024-12-31 01:07:05 [2024-12-31 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140070', 'tblTempUsageDetail_20' ) start [2024-12-31 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140070', 'tblTempUsageDetail_20' ) end [2024-12-31 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140070', 'tblTempVendorCDR_20' ) start [2024-12-31 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140070', 'tblTempVendorCDR_20' ) end [2024-12-31 01:07:18] Production.INFO: ProcessCDR(1,14140070,1,1,2) [2024-12-31 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140070', 'tblTempUsageDetail_20' ) start [2024-12-31 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140070', 'tblTempUsageDetail_20' ) end [2024-12-31 01:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:07:21] Production.INFO: ==28608== Releasing lock... [2024-12-31 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:07:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:08:05 [end_date_ymd] => 2024-12-31 01:08:05 [RateCDR] => 1 ) [2024-12-31 01:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:08:05' and `end` < '2024-12-31 01:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:08:17] Production.INFO: count ==196 [2024-12-31 01:08:17] Production.ERROR: pbx CDR StartTime 2024-12-30 22:08:05 - End Time 2024-12-31 01:08:05 [2024-12-31 01:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140075', 'tblTempUsageDetail_20' ) start [2024-12-31 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140075', 'tblTempUsageDetail_20' ) end [2024-12-31 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140075', 'tblTempVendorCDR_20' ) start [2024-12-31 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140075', 'tblTempVendorCDR_20' ) end [2024-12-31 01:08:18] Production.INFO: ProcessCDR(1,14140075,1,1,2) [2024-12-31 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140075', 'tblTempUsageDetail_20' ) start [2024-12-31 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140075', 'tblTempUsageDetail_20' ) end [2024-12-31 01:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:08:21] Production.INFO: ==28682== Releasing lock... [2024-12-31 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:08:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:09:05 [end_date_ymd] => 2024-12-31 01:09:05 [RateCDR] => 1 ) [2024-12-31 01:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:09:05' and `end` < '2024-12-31 01:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:09:18] Production.INFO: count ==197 [2024-12-31 01:09:18] Production.ERROR: pbx CDR StartTime 2024-12-30 22:09:05 - End Time 2024-12-31 01:09:05 [2024-12-31 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140080', 'tblTempUsageDetail_20' ) start [2024-12-31 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140080', 'tblTempUsageDetail_20' ) end [2024-12-31 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140080', 'tblTempVendorCDR_20' ) start [2024-12-31 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140080', 'tblTempVendorCDR_20' ) end [2024-12-31 01:09:18] Production.INFO: ProcessCDR(1,14140080,1,1,2) [2024-12-31 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140080', 'tblTempUsageDetail_20' ) start [2024-12-31 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140080', 'tblTempUsageDetail_20' ) end [2024-12-31 01:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:09:22] Production.INFO: ==28753== Releasing lock... [2024-12-31 01:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:09:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-31 01:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:10:05 [end_date_ymd] => 2024-12-31 01:10:05 [RateCDR] => 1 ) [2024-12-31 01:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:10:05' and `end` < '2024-12-31 01:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:10:17] Production.INFO: count ==203 [2024-12-31 01:10:17] Production.ERROR: pbx CDR StartTime 2024-12-30 22:10:05 - End Time 2024-12-31 01:10:05 [2024-12-31 01:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140086', 'tblTempUsageDetail_20' ) start [2024-12-31 01:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140086', 'tblTempUsageDetail_20' ) end [2024-12-31 01:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140086', 'tblTempVendorCDR_20' ) start [2024-12-31 01:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140086', 'tblTempVendorCDR_20' ) end [2024-12-31 01:10:17] Production.INFO: ProcessCDR(1,14140086,1,1,2) [2024-12-31 01:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140086', 'tblTempUsageDetail_20' ) start [2024-12-31 01:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140086', 'tblTempUsageDetail_20' ) end [2024-12-31 01:10:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:10:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:10:20] Production.INFO: ==28830== Releasing lock... [2024-12-31 01:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:10:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-31 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:11:05 [end_date_ymd] => 2024-12-31 01:11:05 [RateCDR] => 1 ) [2024-12-31 01:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:11:05' and `end` < '2024-12-31 01:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:11:18] Production.INFO: count ==209 [2024-12-31 01:11:18] Production.ERROR: pbx CDR StartTime 2024-12-30 22:11:05 - End Time 2024-12-31 01:11:05 [2024-12-31 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140091', 'tblTempUsageDetail_20' ) start [2024-12-31 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140091', 'tblTempUsageDetail_20' ) end [2024-12-31 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140091', 'tblTempVendorCDR_20' ) start [2024-12-31 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140091', 'tblTempVendorCDR_20' ) end [2024-12-31 01:11:18] Production.INFO: ProcessCDR(1,14140091,1,1,2) [2024-12-31 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140091', 'tblTempUsageDetail_20' ) start [2024-12-31 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140091', 'tblTempUsageDetail_20' ) end [2024-12-31 01:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:11:21] Production.INFO: ==28902== Releasing lock... [2024-12-31 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:11:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-31 01:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:12:04 [end_date_ymd] => 2024-12-31 01:12:04 [RateCDR] => 1 ) [2024-12-31 01:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:12:04' and `end` < '2024-12-31 01:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:12:17] Production.INFO: count ==209 [2024-12-31 01:12:17] Production.ERROR: pbx CDR StartTime 2024-12-30 22:12:04 - End Time 2024-12-31 01:12:04 [2024-12-31 01:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140096', 'tblTempUsageDetail_20' ) start [2024-12-31 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140096', 'tblTempUsageDetail_20' ) end [2024-12-31 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140096', 'tblTempVendorCDR_20' ) start [2024-12-31 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140096', 'tblTempVendorCDR_20' ) end [2024-12-31 01:12:17] Production.INFO: ProcessCDR(1,14140096,1,1,2) [2024-12-31 01:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140096', 'tblTempUsageDetail_20' ) start [2024-12-31 01:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140096', 'tblTempUsageDetail_20' ) end [2024-12-31 01:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:12:20] Production.INFO: ==28972== Releasing lock... [2024-12-31 01:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:12:20] Production.INFO: 30 MB #Memory Used# [2024-12-31 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:13:05 [end_date_ymd] => 2024-12-31 01:13:05 [RateCDR] => 1 ) [2024-12-31 01:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:13:05' and `end` < '2024-12-31 01:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:13:17] Production.INFO: count ==207 [2024-12-31 01:13:17] Production.ERROR: pbx CDR StartTime 2024-12-30 22:13:05 - End Time 2024-12-31 01:13:05 [2024-12-31 01:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140101', 'tblTempUsageDetail_20' ) start [2024-12-31 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140101', 'tblTempUsageDetail_20' ) end [2024-12-31 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140101', 'tblTempVendorCDR_20' ) start [2024-12-31 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140101', 'tblTempVendorCDR_20' ) end [2024-12-31 01:13:17] Production.INFO: ProcessCDR(1,14140101,1,1,2) [2024-12-31 01:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140101', 'tblTempUsageDetail_20' ) start [2024-12-31 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140101', 'tblTempUsageDetail_20' ) end [2024-12-31 01:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:13:21] Production.INFO: ==29042== Releasing lock... [2024-12-31 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:13:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-31 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:14:05 [end_date_ymd] => 2024-12-31 01:14:05 [RateCDR] => 1 ) [2024-12-31 01:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:14:05' and `end` < '2024-12-31 01:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:14:17] Production.INFO: count ==207 [2024-12-31 01:14:17] Production.ERROR: pbx CDR StartTime 2024-12-30 22:14:05 - End Time 2024-12-31 01:14:05 [2024-12-31 01:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140106', 'tblTempUsageDetail_20' ) start [2024-12-31 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140106', 'tblTempUsageDetail_20' ) end [2024-12-31 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140106', 'tblTempVendorCDR_20' ) start [2024-12-31 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140106', 'tblTempVendorCDR_20' ) end [2024-12-31 01:14:17] Production.INFO: ProcessCDR(1,14140106,1,1,2) [2024-12-31 01:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140106', 'tblTempUsageDetail_20' ) start [2024-12-31 01:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140106', 'tblTempUsageDetail_20' ) end [2024-12-31 01:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:14:20] Production.INFO: ==29112== Releasing lock... [2024-12-31 01:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:14:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-31 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:15:05 [end_date_ymd] => 2024-12-31 01:15:05 [RateCDR] => 1 ) [2024-12-31 01:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:15:05' and `end` < '2024-12-31 01:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:15:17] Production.INFO: count ==207 [2024-12-31 01:15:17] Production.ERROR: pbx CDR StartTime 2024-12-30 22:15:05 - End Time 2024-12-31 01:15:05 [2024-12-31 01:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140111', 'tblTempUsageDetail_20' ) start [2024-12-31 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140111', 'tblTempUsageDetail_20' ) end [2024-12-31 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140111', 'tblTempVendorCDR_20' ) start [2024-12-31 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140111', 'tblTempVendorCDR_20' ) end [2024-12-31 01:15:17] Production.INFO: ProcessCDR(1,14140111,1,1,2) [2024-12-31 01:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140111', 'tblTempUsageDetail_20' ) start [2024-12-31 01:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140111', 'tblTempUsageDetail_20' ) end [2024-12-31 01:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:15:20] Production.INFO: ==29185== Releasing lock... [2024-12-31 01:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:15:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-31 01:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:16:04 [end_date_ymd] => 2024-12-31 01:16:04 [RateCDR] => 1 ) [2024-12-31 01:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:16:04' and `end` < '2024-12-31 01:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:16:17] Production.INFO: count ==207 [2024-12-31 01:16:17] Production.ERROR: pbx CDR StartTime 2024-12-30 22:16:04 - End Time 2024-12-31 01:16:04 [2024-12-31 01:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140116', 'tblTempUsageDetail_20' ) start [2024-12-31 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140116', 'tblTempUsageDetail_20' ) end [2024-12-31 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140116', 'tblTempVendorCDR_20' ) start [2024-12-31 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140116', 'tblTempVendorCDR_20' ) end [2024-12-31 01:16:17] Production.INFO: ProcessCDR(1,14140116,1,1,2) [2024-12-31 01:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140116', 'tblTempUsageDetail_20' ) start [2024-12-31 01:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140116', 'tblTempUsageDetail_20' ) end [2024-12-31 01:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:16:20] Production.INFO: ==29255== Releasing lock... [2024-12-31 01:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:16:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-31 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:17:05 [end_date_ymd] => 2024-12-31 01:17:05 [RateCDR] => 1 ) [2024-12-31 01:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:17:05' and `end` < '2024-12-31 01:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:17:18] Production.INFO: count ==207 [2024-12-31 01:17:18] Production.ERROR: pbx CDR StartTime 2024-12-30 22:17:05 - End Time 2024-12-31 01:17:05 [2024-12-31 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140121', 'tblTempUsageDetail_20' ) start [2024-12-31 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140121', 'tblTempUsageDetail_20' ) end [2024-12-31 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140121', 'tblTempVendorCDR_20' ) start [2024-12-31 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140121', 'tblTempVendorCDR_20' ) end [2024-12-31 01:17:18] Production.INFO: ProcessCDR(1,14140121,1,1,2) [2024-12-31 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140121', 'tblTempUsageDetail_20' ) start [2024-12-31 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140121', 'tblTempUsageDetail_20' ) end [2024-12-31 01:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:17:21] Production.INFO: ==29330== Releasing lock... [2024-12-31 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:17:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-31 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:18:05 [end_date_ymd] => 2024-12-31 01:18:05 [RateCDR] => 1 ) [2024-12-31 01:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:18:05' and `end` < '2024-12-31 01:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:18:17] Production.INFO: count ==207 [2024-12-31 01:18:17] Production.ERROR: pbx CDR StartTime 2024-12-30 22:18:05 - End Time 2024-12-31 01:18:05 [2024-12-31 01:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140126', 'tblTempUsageDetail_20' ) start [2024-12-31 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140126', 'tblTempUsageDetail_20' ) end [2024-12-31 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140126', 'tblTempVendorCDR_20' ) start [2024-12-31 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140126', 'tblTempVendorCDR_20' ) end [2024-12-31 01:18:17] Production.INFO: ProcessCDR(1,14140126,1,1,2) [2024-12-31 01:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140126', 'tblTempUsageDetail_20' ) start [2024-12-31 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140126', 'tblTempUsageDetail_20' ) end [2024-12-31 01:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:18:21] Production.INFO: ==29403== Releasing lock... [2024-12-31 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:18:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-31 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:19:05 [end_date_ymd] => 2024-12-31 01:19:05 [RateCDR] => 1 ) [2024-12-31 01:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:19:05' and `end` < '2024-12-31 01:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:19:17] Production.INFO: count ==208 [2024-12-31 01:19:17] Production.ERROR: pbx CDR StartTime 2024-12-30 22:19:05 - End Time 2024-12-31 01:19:05 [2024-12-31 01:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140131', 'tblTempUsageDetail_20' ) start [2024-12-31 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140131', 'tblTempUsageDetail_20' ) end [2024-12-31 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140131', 'tblTempVendorCDR_20' ) start [2024-12-31 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140131', 'tblTempVendorCDR_20' ) end [2024-12-31 01:19:17] Production.INFO: ProcessCDR(1,14140131,1,1,2) [2024-12-31 01:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140131', 'tblTempUsageDetail_20' ) start [2024-12-31 01:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140131', 'tblTempUsageDetail_20' ) end [2024-12-31 01:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:19:20] Production.INFO: ==29477== Releasing lock... [2024-12-31 01:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:19:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-31 01:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:20:05 [end_date_ymd] => 2024-12-31 01:20:05 [RateCDR] => 1 ) [2024-12-31 01:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:20:05' and `end` < '2024-12-31 01:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:20:18] Production.INFO: count ==214 [2024-12-31 01:20:18] Production.ERROR: pbx CDR StartTime 2024-12-30 22:20:05 - End Time 2024-12-31 01:20:05 [2024-12-31 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140137', 'tblTempUsageDetail_20' ) start [2024-12-31 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140137', 'tblTempUsageDetail_20' ) end [2024-12-31 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140137', 'tblTempVendorCDR_20' ) start [2024-12-31 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140137', 'tblTempVendorCDR_20' ) end [2024-12-31 01:20:18] Production.INFO: ProcessCDR(1,14140137,1,1,2) [2024-12-31 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140137', 'tblTempUsageDetail_20' ) start [2024-12-31 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140137', 'tblTempUsageDetail_20' ) end [2024-12-31 01:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:20:21] Production.INFO: ==29552== Releasing lock... [2024-12-31 01:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:20:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-31 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:21:05 [end_date_ymd] => 2024-12-31 01:21:05 [RateCDR] => 1 ) [2024-12-31 01:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:21:05' and `end` < '2024-12-31 01:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:21:17] Production.INFO: count ==218 [2024-12-31 01:21:17] Production.ERROR: pbx CDR StartTime 2024-12-30 22:21:05 - End Time 2024-12-31 01:21:05 [2024-12-31 01:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140142', 'tblTempUsageDetail_20' ) start [2024-12-31 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140142', 'tblTempUsageDetail_20' ) end [2024-12-31 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140142', 'tblTempVendorCDR_20' ) start [2024-12-31 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140142', 'tblTempVendorCDR_20' ) end [2024-12-31 01:21:17] Production.INFO: ProcessCDR(1,14140142,1,1,2) [2024-12-31 01:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140142', 'tblTempUsageDetail_20' ) start [2024-12-31 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140142', 'tblTempUsageDetail_20' ) end [2024-12-31 01:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:21:20] Production.INFO: ==29665== Releasing lock... [2024-12-31 01:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:21:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-31 01:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:22:04 [end_date_ymd] => 2024-12-31 01:22:04 [RateCDR] => 1 ) [2024-12-31 01:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:22:04' and `end` < '2024-12-31 01:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:22:17] Production.INFO: count ==217 [2024-12-31 01:22:17] Production.ERROR: pbx CDR StartTime 2024-12-30 22:22:04 - End Time 2024-12-31 01:22:04 [2024-12-31 01:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140147', 'tblTempUsageDetail_20' ) start [2024-12-31 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140147', 'tblTempUsageDetail_20' ) end [2024-12-31 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140147', 'tblTempVendorCDR_20' ) start [2024-12-31 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140147', 'tblTempVendorCDR_20' ) end [2024-12-31 01:22:17] Production.INFO: ProcessCDR(1,14140147,1,1,2) [2024-12-31 01:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140147', 'tblTempUsageDetail_20' ) start [2024-12-31 01:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140147', 'tblTempUsageDetail_20' ) end [2024-12-31 01:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:22:20] Production.INFO: ==29746== Releasing lock... [2024-12-31 01:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:22:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-31 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:23:05 [end_date_ymd] => 2024-12-31 01:23:05 [RateCDR] => 1 ) [2024-12-31 01:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:23:05' and `end` < '2024-12-31 01:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:23:19] Production.INFO: count ==217 [2024-12-31 01:23:19] Production.ERROR: pbx CDR StartTime 2024-12-30 22:23:05 - End Time 2024-12-31 01:23:05 [2024-12-31 01:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140152', 'tblTempUsageDetail_20' ) start [2024-12-31 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140152', 'tblTempUsageDetail_20' ) end [2024-12-31 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140152', 'tblTempVendorCDR_20' ) start [2024-12-31 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140152', 'tblTempVendorCDR_20' ) end [2024-12-31 01:23:19] Production.INFO: ProcessCDR(1,14140152,1,1,2) [2024-12-31 01:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140152', 'tblTempUsageDetail_20' ) start [2024-12-31 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140152', 'tblTempUsageDetail_20' ) end [2024-12-31 01:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:23:22] Production.INFO: ==29825== Releasing lock... [2024-12-31 01:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:23:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-31 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:24:05 [end_date_ymd] => 2024-12-31 01:24:05 [RateCDR] => 1 ) [2024-12-31 01:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:24:05' and `end` < '2024-12-31 01:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:24:17] Production.INFO: count ==217 [2024-12-31 01:24:17] Production.ERROR: pbx CDR StartTime 2024-12-30 22:24:05 - End Time 2024-12-31 01:24:05 [2024-12-31 01:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140157', 'tblTempUsageDetail_20' ) start [2024-12-31 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140157', 'tblTempUsageDetail_20' ) end [2024-12-31 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140157', 'tblTempVendorCDR_20' ) start [2024-12-31 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140157', 'tblTempVendorCDR_20' ) end [2024-12-31 01:24:17] Production.INFO: ProcessCDR(1,14140157,1,1,2) [2024-12-31 01:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140157', 'tblTempUsageDetail_20' ) start [2024-12-31 01:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140157', 'tblTempUsageDetail_20' ) end [2024-12-31 01:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:24:20] Production.INFO: ==29894== Releasing lock... [2024-12-31 01:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:24:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-31 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:25:05 [end_date_ymd] => 2024-12-31 01:25:05 [RateCDR] => 1 ) [2024-12-31 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:25:05' and `end` < '2024-12-31 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:25:18] Production.INFO: count ==216 [2024-12-31 01:25:18] Production.ERROR: pbx CDR StartTime 2024-12-30 22:25:05 - End Time 2024-12-31 01:25:05 [2024-12-31 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140162', 'tblTempUsageDetail_20' ) start [2024-12-31 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140162', 'tblTempUsageDetail_20' ) end [2024-12-31 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140162', 'tblTempVendorCDR_20' ) start [2024-12-31 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140162', 'tblTempVendorCDR_20' ) end [2024-12-31 01:25:18] Production.INFO: ProcessCDR(1,14140162,1,1,2) [2024-12-31 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140162', 'tblTempUsageDetail_20' ) start [2024-12-31 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140162', 'tblTempUsageDetail_20' ) end [2024-12-31 01:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:25:21] Production.INFO: ==29965== Releasing lock... [2024-12-31 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:25:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-31 01:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:26:04 [end_date_ymd] => 2024-12-31 01:26:04 [RateCDR] => 1 ) [2024-12-31 01:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:26:04' and `end` < '2024-12-31 01:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:26:17] Production.INFO: count ==214 [2024-12-31 01:26:17] Production.ERROR: pbx CDR StartTime 2024-12-30 22:26:04 - End Time 2024-12-31 01:26:04 [2024-12-31 01:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140167', 'tblTempUsageDetail_20' ) start [2024-12-31 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140167', 'tblTempUsageDetail_20' ) end [2024-12-31 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140167', 'tblTempVendorCDR_20' ) start [2024-12-31 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140167', 'tblTempVendorCDR_20' ) end [2024-12-31 01:26:17] Production.INFO: ProcessCDR(1,14140167,1,1,2) [2024-12-31 01:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140167', 'tblTempUsageDetail_20' ) start [2024-12-31 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140167', 'tblTempUsageDetail_20' ) end [2024-12-31 01:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:26:21] Production.INFO: ==30035== Releasing lock... [2024-12-31 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:26:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 01:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:27:04 [end_date_ymd] => 2024-12-31 01:27:04 [RateCDR] => 1 ) [2024-12-31 01:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:27:04' and `end` < '2024-12-31 01:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:27:17] Production.INFO: count ==214 [2024-12-31 01:27:17] Production.ERROR: pbx CDR StartTime 2024-12-30 22:27:04 - End Time 2024-12-31 01:27:04 [2024-12-31 01:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140172', 'tblTempUsageDetail_20' ) start [2024-12-31 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140172', 'tblTempUsageDetail_20' ) end [2024-12-31 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140172', 'tblTempVendorCDR_20' ) start [2024-12-31 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140172', 'tblTempVendorCDR_20' ) end [2024-12-31 01:27:17] Production.INFO: ProcessCDR(1,14140172,1,1,2) [2024-12-31 01:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140172', 'tblTempUsageDetail_20' ) start [2024-12-31 01:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140172', 'tblTempUsageDetail_20' ) end [2024-12-31 01:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:27:20] Production.INFO: ==30106== Releasing lock... [2024-12-31 01:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:27:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:28:05 [end_date_ymd] => 2024-12-31 01:28:05 [RateCDR] => 1 ) [2024-12-31 01:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:28:05' and `end` < '2024-12-31 01:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:28:18] Production.INFO: count ==212 [2024-12-31 01:28:18] Production.ERROR: pbx CDR StartTime 2024-12-30 22:28:05 - End Time 2024-12-31 01:28:05 [2024-12-31 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140177', 'tblTempUsageDetail_20' ) start [2024-12-31 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140177', 'tblTempUsageDetail_20' ) end [2024-12-31 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140177', 'tblTempVendorCDR_20' ) start [2024-12-31 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140177', 'tblTempVendorCDR_20' ) end [2024-12-31 01:28:18] Production.INFO: ProcessCDR(1,14140177,1,1,2) [2024-12-31 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140177', 'tblTempUsageDetail_20' ) start [2024-12-31 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140177', 'tblTempUsageDetail_20' ) end [2024-12-31 01:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:28:21] Production.INFO: ==30180== Releasing lock... [2024-12-31 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:28:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:29:05 [end_date_ymd] => 2024-12-31 01:29:05 [RateCDR] => 1 ) [2024-12-31 01:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:29:05' and `end` < '2024-12-31 01:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:29:18] Production.INFO: count ==211 [2024-12-31 01:29:18] Production.ERROR: pbx CDR StartTime 2024-12-30 22:29:05 - End Time 2024-12-31 01:29:05 [2024-12-31 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140182', 'tblTempUsageDetail_20' ) start [2024-12-31 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140182', 'tblTempUsageDetail_20' ) end [2024-12-31 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140182', 'tblTempVendorCDR_20' ) start [2024-12-31 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140182', 'tblTempVendorCDR_20' ) end [2024-12-31 01:29:18] Production.INFO: ProcessCDR(1,14140182,1,1,2) [2024-12-31 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140182', 'tblTempUsageDetail_20' ) start [2024-12-31 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140182', 'tblTempUsageDetail_20' ) end [2024-12-31 01:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:29:21] Production.INFO: ==30252== Releasing lock... [2024-12-31 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:29:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:30:06 [end_date_ymd] => 2024-12-31 01:30:06 [RateCDR] => 1 ) [2024-12-31 01:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:30:06' and `end` < '2024-12-31 01:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:30:19] Production.INFO: count ==219 [2024-12-31 01:30:19] Production.ERROR: pbx CDR StartTime 2024-12-30 22:30:06 - End Time 2024-12-31 01:30:06 [2024-12-31 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140187', 'tblTempUsageDetail_20' ) start [2024-12-31 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140187', 'tblTempUsageDetail_20' ) end [2024-12-31 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140187', 'tblTempVendorCDR_20' ) start [2024-12-31 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140187', 'tblTempVendorCDR_20' ) end [2024-12-31 01:30:19] Production.INFO: ProcessCDR(1,14140187,1,1,2) [2024-12-31 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140187', 'tblTempUsageDetail_20' ) start [2024-12-31 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140187', 'tblTempUsageDetail_20' ) end [2024-12-31 01:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:30:22] Production.INFO: ==30325== Releasing lock... [2024-12-31 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:30:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-31 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:31:05 [end_date_ymd] => 2024-12-31 01:31:05 [RateCDR] => 1 ) [2024-12-31 01:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:31:05' and `end` < '2024-12-31 01:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:31:18] Production.INFO: count ==238 [2024-12-31 01:31:18] Production.ERROR: pbx CDR StartTime 2024-12-30 22:31:05 - End Time 2024-12-31 01:31:05 [2024-12-31 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140193', 'tblTempUsageDetail_20' ) start [2024-12-31 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140193', 'tblTempUsageDetail_20' ) end [2024-12-31 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140193', 'tblTempVendorCDR_20' ) start [2024-12-31 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140193', 'tblTempVendorCDR_20' ) end [2024-12-31 01:31:18] Production.INFO: ProcessCDR(1,14140193,1,1,2) [2024-12-31 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140193', 'tblTempUsageDetail_20' ) start [2024-12-31 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140193', 'tblTempUsageDetail_20' ) end [2024-12-31 01:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:31:22] Production.INFO: ==30396== Releasing lock... [2024-12-31 01:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:31:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-31 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:32:05 [end_date_ymd] => 2024-12-31 01:32:05 [RateCDR] => 1 ) [2024-12-31 01:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:32:05' and `end` < '2024-12-31 01:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:32:19] Production.INFO: count ==238 [2024-12-31 01:32:19] Production.ERROR: pbx CDR StartTime 2024-12-30 22:32:05 - End Time 2024-12-31 01:32:05 [2024-12-31 01:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140198', 'tblTempUsageDetail_20' ) start [2024-12-31 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140198', 'tblTempUsageDetail_20' ) end [2024-12-31 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140198', 'tblTempVendorCDR_20' ) start [2024-12-31 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140198', 'tblTempVendorCDR_20' ) end [2024-12-31 01:32:19] Production.INFO: ProcessCDR(1,14140198,1,1,2) [2024-12-31 01:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140198', 'tblTempUsageDetail_20' ) start [2024-12-31 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140198', 'tblTempUsageDetail_20' ) end [2024-12-31 01:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:32:22] Production.INFO: ==30467== Releasing lock... [2024-12-31 01:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:32:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-31 01:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:33:04 [end_date_ymd] => 2024-12-31 01:33:04 [RateCDR] => 1 ) [2024-12-31 01:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:33:04' and `end` < '2024-12-31 01:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:33:17] Production.INFO: count ==238 [2024-12-31 01:33:17] Production.ERROR: pbx CDR StartTime 2024-12-30 22:33:04 - End Time 2024-12-31 01:33:04 [2024-12-31 01:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140203', 'tblTempUsageDetail_20' ) start [2024-12-31 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140203', 'tblTempUsageDetail_20' ) end [2024-12-31 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140203', 'tblTempVendorCDR_20' ) start [2024-12-31 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140203', 'tblTempVendorCDR_20' ) end [2024-12-31 01:33:17] Production.INFO: ProcessCDR(1,14140203,1,1,2) [2024-12-31 01:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140203', 'tblTempUsageDetail_20' ) start [2024-12-31 01:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140203', 'tblTempUsageDetail_20' ) end [2024-12-31 01:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:33:20] Production.INFO: ==30540== Releasing lock... [2024-12-31 01:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:33:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-31 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:34:05 [end_date_ymd] => 2024-12-31 01:34:05 [RateCDR] => 1 ) [2024-12-31 01:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:34:05' and `end` < '2024-12-31 01:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:34:17] Production.INFO: count ==240 [2024-12-31 01:34:17] Production.ERROR: pbx CDR StartTime 2024-12-30 22:34:05 - End Time 2024-12-31 01:34:05 [2024-12-31 01:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140208', 'tblTempUsageDetail_20' ) start [2024-12-31 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140208', 'tblTempUsageDetail_20' ) end [2024-12-31 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140208', 'tblTempVendorCDR_20' ) start [2024-12-31 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140208', 'tblTempVendorCDR_20' ) end [2024-12-31 01:34:17] Production.INFO: ProcessCDR(1,14140208,1,1,2) [2024-12-31 01:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140208', 'tblTempUsageDetail_20' ) start [2024-12-31 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140208', 'tblTempUsageDetail_20' ) end [2024-12-31 01:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:34:21] Production.INFO: ==30614== Releasing lock... [2024-12-31 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:34:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:35:05 [end_date_ymd] => 2024-12-31 01:35:05 [RateCDR] => 1 ) [2024-12-31 01:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:35:05' and `end` < '2024-12-31 01:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:35:18] Production.INFO: count ==240 [2024-12-31 01:35:18] Production.ERROR: pbx CDR StartTime 2024-12-30 22:35:05 - End Time 2024-12-31 01:35:05 [2024-12-31 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140213', 'tblTempUsageDetail_20' ) start [2024-12-31 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140213', 'tblTempUsageDetail_20' ) end [2024-12-31 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140213', 'tblTempVendorCDR_20' ) start [2024-12-31 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140213', 'tblTempVendorCDR_20' ) end [2024-12-31 01:35:18] Production.INFO: ProcessCDR(1,14140213,1,1,2) [2024-12-31 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140213', 'tblTempUsageDetail_20' ) start [2024-12-31 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140213', 'tblTempUsageDetail_20' ) end [2024-12-31 01:35:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:35:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:35:22] Production.INFO: ==30687== Releasing lock... [2024-12-31 01:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:35:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:36:05 [end_date_ymd] => 2024-12-31 01:36:05 [RateCDR] => 1 ) [2024-12-31 01:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:36:05' and `end` < '2024-12-31 01:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:36:17] Production.INFO: count ==257 [2024-12-31 01:36:17] Production.ERROR: pbx CDR StartTime 2024-12-30 22:36:05 - End Time 2024-12-31 01:36:05 [2024-12-31 01:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140218', 'tblTempUsageDetail_20' ) start [2024-12-31 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140218', 'tblTempUsageDetail_20' ) end [2024-12-31 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140218', 'tblTempVendorCDR_20' ) start [2024-12-31 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140218', 'tblTempVendorCDR_20' ) end [2024-12-31 01:36:17] Production.INFO: ProcessCDR(1,14140218,1,1,2) [2024-12-31 01:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140218', 'tblTempUsageDetail_20' ) start [2024-12-31 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140218', 'tblTempUsageDetail_20' ) end [2024-12-31 01:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:36:21] Production.INFO: ==30759== Releasing lock... [2024-12-31 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:36:21] Production.INFO: 30 MB #Memory Used# [2024-12-31 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:37:05 [end_date_ymd] => 2024-12-31 01:37:05 [RateCDR] => 1 ) [2024-12-31 01:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:37:05' and `end` < '2024-12-31 01:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:37:18] Production.INFO: count ==323 [2024-12-31 01:37:18] Production.ERROR: pbx CDR StartTime 2024-12-30 22:37:05 - End Time 2024-12-31 01:37:05 [2024-12-31 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140223', 'tblTempUsageDetail_20' ) start [2024-12-31 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140223', 'tblTempUsageDetail_20' ) end [2024-12-31 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140223', 'tblTempVendorCDR_20' ) start [2024-12-31 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140223', 'tblTempVendorCDR_20' ) end [2024-12-31 01:37:18] Production.INFO: ProcessCDR(1,14140223,1,1,2) [2024-12-31 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140223', 'tblTempUsageDetail_20' ) start [2024-12-31 01:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140223', 'tblTempUsageDetail_20' ) end [2024-12-31 01:37:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:37:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:37:23] Production.INFO: ==30869== Releasing lock... [2024-12-31 01:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:37:23] Production.INFO: 31 MB #Memory Used# [2024-12-31 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:38:05 [end_date_ymd] => 2024-12-31 01:38:05 [RateCDR] => 1 ) [2024-12-31 01:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:38:05' and `end` < '2024-12-31 01:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:38:19] Production.INFO: count ==454 [2024-12-31 01:38:19] Production.ERROR: pbx CDR StartTime 2024-12-30 22:38:05 - End Time 2024-12-31 01:38:05 [2024-12-31 01:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140228', 'tblTempUsageDetail_20' ) start [2024-12-31 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140228', 'tblTempUsageDetail_20' ) end [2024-12-31 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140228', 'tblTempVendorCDR_20' ) start [2024-12-31 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140228', 'tblTempVendorCDR_20' ) end [2024-12-31 01:38:19] Production.INFO: ProcessCDR(1,14140228,1,1,2) [2024-12-31 01:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140228', 'tblTempUsageDetail_20' ) start [2024-12-31 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140228', 'tblTempUsageDetail_20' ) end [2024-12-31 01:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:38:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:38:23] Production.INFO: ==30940== Releasing lock... [2024-12-31 01:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:38:23] Production.INFO: 31.75 MB #Memory Used# [2024-12-31 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:39:05 [end_date_ymd] => 2024-12-31 01:39:05 [RateCDR] => 1 ) [2024-12-31 01:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:39:05' and `end` < '2024-12-31 01:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:39:17] Production.INFO: count ==453 [2024-12-31 01:39:18] Production.ERROR: pbx CDR StartTime 2024-12-30 22:39:05 - End Time 2024-12-31 01:39:05 [2024-12-31 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140233', 'tblTempUsageDetail_20' ) start [2024-12-31 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140233', 'tblTempUsageDetail_20' ) end [2024-12-31 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140233', 'tblTempVendorCDR_20' ) start [2024-12-31 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140233', 'tblTempVendorCDR_20' ) end [2024-12-31 01:39:18] Production.INFO: ProcessCDR(1,14140233,1,1,2) [2024-12-31 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140233', 'tblTempUsageDetail_20' ) start [2024-12-31 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140233', 'tblTempUsageDetail_20' ) end [2024-12-31 01:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:39:21] Production.INFO: ==31011== Releasing lock... [2024-12-31 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:39:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:40:06 [end_date_ymd] => 2024-12-31 01:40:06 [RateCDR] => 1 ) [2024-12-31 01:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:40:06' and `end` < '2024-12-31 01:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:40:18] Production.INFO: count ==464 [2024-12-31 01:40:18] Production.ERROR: pbx CDR StartTime 2024-12-30 22:40:06 - End Time 2024-12-31 01:40:06 [2024-12-31 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140239', 'tblTempUsageDetail_20' ) start [2024-12-31 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140239', 'tblTempUsageDetail_20' ) end [2024-12-31 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140239', 'tblTempVendorCDR_20' ) start [2024-12-31 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140239', 'tblTempVendorCDR_20' ) end [2024-12-31 01:40:18] Production.INFO: ProcessCDR(1,14140239,1,1,2) [2024-12-31 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140239', 'tblTempUsageDetail_20' ) start [2024-12-31 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140239', 'tblTempUsageDetail_20' ) end [2024-12-31 01:40:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:40:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:40:23] Production.INFO: ==31084== Releasing lock... [2024-12-31 01:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:40:23] Production.INFO: 31.75 MB #Memory Used# [2024-12-31 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:41:05 [end_date_ymd] => 2024-12-31 01:41:05 [RateCDR] => 1 ) [2024-12-31 01:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:41:05' and `end` < '2024-12-31 01:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:41:18] Production.INFO: count ==473 [2024-12-31 01:41:18] Production.ERROR: pbx CDR StartTime 2024-12-30 22:41:05 - End Time 2024-12-31 01:41:05 [2024-12-31 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140244', 'tblTempUsageDetail_20' ) start [2024-12-31 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140244', 'tblTempUsageDetail_20' ) end [2024-12-31 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140244', 'tblTempVendorCDR_20' ) start [2024-12-31 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140244', 'tblTempVendorCDR_20' ) end [2024-12-31 01:41:18] Production.INFO: ProcessCDR(1,14140244,1,1,2) [2024-12-31 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140244', 'tblTempUsageDetail_20' ) start [2024-12-31 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140244', 'tblTempUsageDetail_20' ) end [2024-12-31 01:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:41:22] Production.INFO: ==31158== Releasing lock... [2024-12-31 01:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:41:22] Production.INFO: 32 MB #Memory Used# [2024-12-31 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:42:05 [end_date_ymd] => 2024-12-31 01:42:05 [RateCDR] => 1 ) [2024-12-31 01:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:42:05' and `end` < '2024-12-31 01:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:42:18] Production.INFO: count ==473 [2024-12-31 01:42:18] Production.ERROR: pbx CDR StartTime 2024-12-30 22:42:05 - End Time 2024-12-31 01:42:05 [2024-12-31 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140249', 'tblTempUsageDetail_20' ) start [2024-12-31 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140249', 'tblTempUsageDetail_20' ) end [2024-12-31 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140249', 'tblTempVendorCDR_20' ) start [2024-12-31 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140249', 'tblTempVendorCDR_20' ) end [2024-12-31 01:42:18] Production.INFO: ProcessCDR(1,14140249,1,1,2) [2024-12-31 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140249', 'tblTempUsageDetail_20' ) start [2024-12-31 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140249', 'tblTempUsageDetail_20' ) end [2024-12-31 01:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:42:21] Production.INFO: ==31231== Releasing lock... [2024-12-31 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:42:21] Production.INFO: 32 MB #Memory Used# [2024-12-31 01:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:43:04 [end_date_ymd] => 2024-12-31 01:43:04 [RateCDR] => 1 ) [2024-12-31 01:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:43:04' and `end` < '2024-12-31 01:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:43:17] Production.INFO: count ==471 [2024-12-31 01:43:17] Production.ERROR: pbx CDR StartTime 2024-12-30 22:43:04 - End Time 2024-12-31 01:43:04 [2024-12-31 01:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140254', 'tblTempUsageDetail_20' ) start [2024-12-31 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140254', 'tblTempUsageDetail_20' ) end [2024-12-31 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140254', 'tblTempVendorCDR_20' ) start [2024-12-31 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140254', 'tblTempVendorCDR_20' ) end [2024-12-31 01:43:17] Production.INFO: ProcessCDR(1,14140254,1,1,2) [2024-12-31 01:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140254', 'tblTempUsageDetail_20' ) start [2024-12-31 01:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140254', 'tblTempUsageDetail_20' ) end [2024-12-31 01:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:43:20] Production.INFO: ==31304== Releasing lock... [2024-12-31 01:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:43:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:44:05 [end_date_ymd] => 2024-12-31 01:44:05 [RateCDR] => 1 ) [2024-12-31 01:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:44:05' and `end` < '2024-12-31 01:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:44:18] Production.INFO: count ==471 [2024-12-31 01:44:18] Production.ERROR: pbx CDR StartTime 2024-12-30 22:44:05 - End Time 2024-12-31 01:44:05 [2024-12-31 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140259', 'tblTempUsageDetail_20' ) start [2024-12-31 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140259', 'tblTempUsageDetail_20' ) end [2024-12-31 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140259', 'tblTempVendorCDR_20' ) start [2024-12-31 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140259', 'tblTempVendorCDR_20' ) end [2024-12-31 01:44:18] Production.INFO: ProcessCDR(1,14140259,1,1,2) [2024-12-31 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140259', 'tblTempUsageDetail_20' ) start [2024-12-31 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140259', 'tblTempUsageDetail_20' ) end [2024-12-31 01:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:44:21] Production.INFO: ==31374== Releasing lock... [2024-12-31 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:44:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:45:05 [end_date_ymd] => 2024-12-31 01:45:05 [RateCDR] => 1 ) [2024-12-31 01:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:45:05' and `end` < '2024-12-31 01:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:45:17] Production.INFO: count ==468 [2024-12-31 01:45:18] Production.ERROR: pbx CDR StartTime 2024-12-30 22:45:05 - End Time 2024-12-31 01:45:05 [2024-12-31 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140264', 'tblTempUsageDetail_20' ) start [2024-12-31 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140264', 'tblTempUsageDetail_20' ) end [2024-12-31 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140264', 'tblTempVendorCDR_20' ) start [2024-12-31 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140264', 'tblTempVendorCDR_20' ) end [2024-12-31 01:45:18] Production.INFO: ProcessCDR(1,14140264,1,1,2) [2024-12-31 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140264', 'tblTempUsageDetail_20' ) start [2024-12-31 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140264', 'tblTempUsageDetail_20' ) end [2024-12-31 01:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:45:21] Production.INFO: ==31447== Releasing lock... [2024-12-31 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:45:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-31 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:46:05 [end_date_ymd] => 2024-12-31 01:46:05 [RateCDR] => 1 ) [2024-12-31 01:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:46:05' and `end` < '2024-12-31 01:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:46:17] Production.INFO: count ==468 [2024-12-31 01:46:18] Production.ERROR: pbx CDR StartTime 2024-12-30 22:46:05 - End Time 2024-12-31 01:46:05 [2024-12-31 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140269', 'tblTempUsageDetail_20' ) start [2024-12-31 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140269', 'tblTempUsageDetail_20' ) end [2024-12-31 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140269', 'tblTempVendorCDR_20' ) start [2024-12-31 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140269', 'tblTempVendorCDR_20' ) end [2024-12-31 01:46:18] Production.INFO: ProcessCDR(1,14140269,1,1,2) [2024-12-31 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140269', 'tblTempUsageDetail_20' ) start [2024-12-31 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140269', 'tblTempUsageDetail_20' ) end [2024-12-31 01:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:46:21] Production.INFO: ==31518== Releasing lock... [2024-12-31 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:46:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-31 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:47:05 [end_date_ymd] => 2024-12-31 01:47:05 [RateCDR] => 1 ) [2024-12-31 01:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:47:05' and `end` < '2024-12-31 01:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:47:18] Production.INFO: count ==467 [2024-12-31 01:47:18] Production.ERROR: pbx CDR StartTime 2024-12-30 22:47:05 - End Time 2024-12-31 01:47:05 [2024-12-31 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140274', 'tblTempUsageDetail_20' ) start [2024-12-31 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140274', 'tblTempUsageDetail_20' ) end [2024-12-31 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140274', 'tblTempVendorCDR_20' ) start [2024-12-31 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140274', 'tblTempVendorCDR_20' ) end [2024-12-31 01:47:18] Production.INFO: ProcessCDR(1,14140274,1,1,2) [2024-12-31 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140274', 'tblTempUsageDetail_20' ) start [2024-12-31 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140274', 'tblTempUsageDetail_20' ) end [2024-12-31 01:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:47:21] Production.INFO: ==31591== Releasing lock... [2024-12-31 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:47:21] Production.INFO: 32 MB #Memory Used# [2024-12-31 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:48:05 [end_date_ymd] => 2024-12-31 01:48:05 [RateCDR] => 1 ) [2024-12-31 01:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:48:05' and `end` < '2024-12-31 01:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:48:18] Production.INFO: count ==467 [2024-12-31 01:48:18] Production.ERROR: pbx CDR StartTime 2024-12-30 22:48:05 - End Time 2024-12-31 01:48:05 [2024-12-31 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140279', 'tblTempUsageDetail_20' ) start [2024-12-31 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140279', 'tblTempUsageDetail_20' ) end [2024-12-31 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140279', 'tblTempVendorCDR_20' ) start [2024-12-31 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140279', 'tblTempVendorCDR_20' ) end [2024-12-31 01:48:18] Production.INFO: ProcessCDR(1,14140279,1,1,2) [2024-12-31 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140279', 'tblTempUsageDetail_20' ) start [2024-12-31 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140279', 'tblTempUsageDetail_20' ) end [2024-12-31 01:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:48:21] Production.INFO: ==31661== Releasing lock... [2024-12-31 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:48:21] Production.INFO: 32 MB #Memory Used# [2024-12-31 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:49:05 [end_date_ymd] => 2024-12-31 01:49:05 [RateCDR] => 1 ) [2024-12-31 01:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:49:05' and `end` < '2024-12-31 01:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:49:19] Production.INFO: count ==467 [2024-12-31 01:49:19] Production.ERROR: pbx CDR StartTime 2024-12-30 22:49:05 - End Time 2024-12-31 01:49:05 [2024-12-31 01:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140284', 'tblTempUsageDetail_20' ) start [2024-12-31 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140284', 'tblTempUsageDetail_20' ) end [2024-12-31 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140284', 'tblTempVendorCDR_20' ) start [2024-12-31 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140284', 'tblTempVendorCDR_20' ) end [2024-12-31 01:49:19] Production.INFO: ProcessCDR(1,14140284,1,1,2) [2024-12-31 01:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140284', 'tblTempUsageDetail_20' ) start [2024-12-31 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140284', 'tblTempUsageDetail_20' ) end [2024-12-31 01:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:49:22] Production.INFO: ==31741== Releasing lock... [2024-12-31 01:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:49:22] Production.INFO: 32 MB #Memory Used# [2024-12-31 01:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:50:05 [end_date_ymd] => 2024-12-31 01:50:05 [RateCDR] => 1 ) [2024-12-31 01:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:50:05' and `end` < '2024-12-31 01:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:50:18] Production.INFO: count ==470 [2024-12-31 01:50:18] Production.ERROR: pbx CDR StartTime 2024-12-30 22:50:05 - End Time 2024-12-31 01:50:05 [2024-12-31 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140290', 'tblTempUsageDetail_20' ) start [2024-12-31 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140290', 'tblTempUsageDetail_20' ) end [2024-12-31 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140290', 'tblTempVendorCDR_20' ) start [2024-12-31 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140290', 'tblTempVendorCDR_20' ) end [2024-12-31 01:50:18] Production.INFO: ProcessCDR(1,14140290,1,1,2) [2024-12-31 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140290', 'tblTempUsageDetail_20' ) start [2024-12-31 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140290', 'tblTempUsageDetail_20' ) end [2024-12-31 01:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:50:21] Production.INFO: ==31851== Releasing lock... [2024-12-31 01:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:50:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-31 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:51:05 [end_date_ymd] => 2024-12-31 01:51:05 [RateCDR] => 1 ) [2024-12-31 01:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:51:05' and `end` < '2024-12-31 01:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:51:18] Production.INFO: count ==470 [2024-12-31 01:51:18] Production.ERROR: pbx CDR StartTime 2024-12-30 22:51:05 - End Time 2024-12-31 01:51:05 [2024-12-31 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140295', 'tblTempUsageDetail_20' ) start [2024-12-31 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140295', 'tblTempUsageDetail_20' ) end [2024-12-31 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140295', 'tblTempVendorCDR_20' ) start [2024-12-31 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140295', 'tblTempVendorCDR_20' ) end [2024-12-31 01:51:18] Production.INFO: ProcessCDR(1,14140295,1,1,2) [2024-12-31 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140295', 'tblTempUsageDetail_20' ) start [2024-12-31 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140295', 'tblTempUsageDetail_20' ) end [2024-12-31 01:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:51:21] Production.INFO: ==31960== Releasing lock... [2024-12-31 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:51:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-31 01:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:52:04 [end_date_ymd] => 2024-12-31 01:52:04 [RateCDR] => 1 ) [2024-12-31 01:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:52:04' and `end` < '2024-12-31 01:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:52:17] Production.INFO: count ==470 [2024-12-31 01:52:17] Production.ERROR: pbx CDR StartTime 2024-12-30 22:52:04 - End Time 2024-12-31 01:52:04 [2024-12-31 01:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140300', 'tblTempUsageDetail_20' ) start [2024-12-31 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140300', 'tblTempUsageDetail_20' ) end [2024-12-31 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140300', 'tblTempVendorCDR_20' ) start [2024-12-31 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140300', 'tblTempVendorCDR_20' ) end [2024-12-31 01:52:17] Production.INFO: ProcessCDR(1,14140300,1,1,2) [2024-12-31 01:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140300', 'tblTempUsageDetail_20' ) start [2024-12-31 01:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140300', 'tblTempUsageDetail_20' ) end [2024-12-31 01:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:52:20] Production.INFO: ==32078== Releasing lock... [2024-12-31 01:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:52:20] Production.INFO: 31.75 MB #Memory Used# [2024-12-31 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:53:05 [end_date_ymd] => 2024-12-31 01:53:05 [RateCDR] => 1 ) [2024-12-31 01:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:53:05' and `end` < '2024-12-31 01:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:53:18] Production.INFO: count ==467 [2024-12-31 01:53:18] Production.ERROR: pbx CDR StartTime 2024-12-30 22:53:05 - End Time 2024-12-31 01:53:05 [2024-12-31 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140305', 'tblTempUsageDetail_20' ) start [2024-12-31 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140305', 'tblTempUsageDetail_20' ) end [2024-12-31 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140305', 'tblTempVendorCDR_20' ) start [2024-12-31 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140305', 'tblTempVendorCDR_20' ) end [2024-12-31 01:53:18] Production.INFO: ProcessCDR(1,14140305,1,1,2) [2024-12-31 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140305', 'tblTempUsageDetail_20' ) start [2024-12-31 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140305', 'tblTempUsageDetail_20' ) end [2024-12-31 01:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:53:21] Production.INFO: ==32149== Releasing lock... [2024-12-31 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:53:21] Production.INFO: 32 MB #Memory Used# [2024-12-31 01:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:54:04 [end_date_ymd] => 2024-12-31 01:54:04 [RateCDR] => 1 ) [2024-12-31 01:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:54:04' and `end` < '2024-12-31 01:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:54:17] Production.INFO: count ==466 [2024-12-31 01:54:17] Production.ERROR: pbx CDR StartTime 2024-12-30 22:54:04 - End Time 2024-12-31 01:54:04 [2024-12-31 01:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140310', 'tblTempUsageDetail_20' ) start [2024-12-31 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140310', 'tblTempUsageDetail_20' ) end [2024-12-31 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140310', 'tblTempVendorCDR_20' ) start [2024-12-31 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140310', 'tblTempVendorCDR_20' ) end [2024-12-31 01:54:17] Production.INFO: ProcessCDR(1,14140310,1,1,2) [2024-12-31 01:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140310', 'tblTempUsageDetail_20' ) start [2024-12-31 01:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140310', 'tblTempUsageDetail_20' ) end [2024-12-31 01:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:54:20] Production.INFO: ==32224== Releasing lock... [2024-12-31 01:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:54:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:55:05 [end_date_ymd] => 2024-12-31 01:55:05 [RateCDR] => 1 ) [2024-12-31 01:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:55:05' and `end` < '2024-12-31 01:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:55:17] Production.INFO: count ==467 [2024-12-31 01:55:17] Production.ERROR: pbx CDR StartTime 2024-12-30 22:55:05 - End Time 2024-12-31 01:55:05 [2024-12-31 01:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140315', 'tblTempUsageDetail_20' ) start [2024-12-31 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140315', 'tblTempUsageDetail_20' ) end [2024-12-31 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140315', 'tblTempVendorCDR_20' ) start [2024-12-31 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140315', 'tblTempVendorCDR_20' ) end [2024-12-31 01:55:17] Production.INFO: ProcessCDR(1,14140315,1,1,2) [2024-12-31 01:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140315', 'tblTempUsageDetail_20' ) start [2024-12-31 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140315', 'tblTempUsageDetail_20' ) end [2024-12-31 01:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:55:22] Production.INFO: ==32297== Releasing lock... [2024-12-31 01:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:55:22] Production.INFO: 31.75 MB #Memory Used# [2024-12-31 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:56:05 [end_date_ymd] => 2024-12-31 01:56:05 [RateCDR] => 1 ) [2024-12-31 01:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:56:05' and `end` < '2024-12-31 01:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:56:19] Production.INFO: count ==467 [2024-12-31 01:56:19] Production.ERROR: pbx CDR StartTime 2024-12-30 22:56:05 - End Time 2024-12-31 01:56:05 [2024-12-31 01:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140320', 'tblTempUsageDetail_20' ) start [2024-12-31 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140320', 'tblTempUsageDetail_20' ) end [2024-12-31 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140320', 'tblTempVendorCDR_20' ) start [2024-12-31 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140320', 'tblTempVendorCDR_20' ) end [2024-12-31 01:56:19] Production.INFO: ProcessCDR(1,14140320,1,1,2) [2024-12-31 01:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140320', 'tblTempUsageDetail_20' ) start [2024-12-31 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140320', 'tblTempUsageDetail_20' ) end [2024-12-31 01:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:56:22] Production.INFO: ==32369== Releasing lock... [2024-12-31 01:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:56:22] Production.INFO: 31.75 MB #Memory Used# [2024-12-31 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:57:05 [end_date_ymd] => 2024-12-31 01:57:05 [RateCDR] => 1 ) [2024-12-31 01:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:57:05' and `end` < '2024-12-31 01:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:57:17] Production.INFO: count ==467 [2024-12-31 01:57:18] Production.ERROR: pbx CDR StartTime 2024-12-30 22:57:05 - End Time 2024-12-31 01:57:05 [2024-12-31 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140325', 'tblTempUsageDetail_20' ) start [2024-12-31 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140325', 'tblTempUsageDetail_20' ) end [2024-12-31 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140325', 'tblTempVendorCDR_20' ) start [2024-12-31 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140325', 'tblTempVendorCDR_20' ) end [2024-12-31 01:57:18] Production.INFO: ProcessCDR(1,14140325,1,1,2) [2024-12-31 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140325', 'tblTempUsageDetail_20' ) start [2024-12-31 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140325', 'tblTempUsageDetail_20' ) end [2024-12-31 01:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:57:21] Production.INFO: ==32438== Releasing lock... [2024-12-31 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:57:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-31 01:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:58:04 [end_date_ymd] => 2024-12-31 01:58:04 [RateCDR] => 1 ) [2024-12-31 01:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:58:04' and `end` < '2024-12-31 01:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:58:18] Production.INFO: count ==467 [2024-12-31 01:58:18] Production.ERROR: pbx CDR StartTime 2024-12-30 22:58:04 - End Time 2024-12-31 01:58:04 [2024-12-31 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140327', 'tblTempUsageDetail_20' ) start [2024-12-31 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140327', 'tblTempUsageDetail_20' ) end [2024-12-31 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140327', 'tblTempVendorCDR_20' ) start [2024-12-31 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140327', 'tblTempVendorCDR_20' ) end [2024-12-31 01:58:18] Production.INFO: ProcessCDR(1,14140327,1,1,2) [2024-12-31 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140327', 'tblTempUsageDetail_20' ) start [2024-12-31 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140327', 'tblTempUsageDetail_20' ) end [2024-12-31 01:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:58:21] Production.INFO: ==32511== Releasing lock... [2024-12-31 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:58:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-31 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 22:59:05 [end_date_ymd] => 2024-12-31 01:59:05 [RateCDR] => 1 ) [2024-12-31 01:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 22:59:05' and `end` < '2024-12-31 01:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 01:59:17] Production.INFO: count ==465 [2024-12-31 01:59:18] Production.ERROR: pbx CDR StartTime 2024-12-30 22:59:05 - End Time 2024-12-31 01:59:05 [2024-12-31 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140335', 'tblTempUsageDetail_20' ) start [2024-12-31 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140335', 'tblTempUsageDetail_20' ) end [2024-12-31 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140335', 'tblTempVendorCDR_20' ) start [2024-12-31 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140335', 'tblTempVendorCDR_20' ) end [2024-12-31 01:59:18] Production.INFO: ProcessCDR(1,14140335,1,1,2) [2024-12-31 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140335', 'tblTempUsageDetail_20' ) start [2024-12-31 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140335', 'tblTempUsageDetail_20' ) end [2024-12-31 01:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 01:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 01:59:21] Production.INFO: ==32581== Releasing lock... [2024-12-31 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 01:59:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-31 02:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:00:05 [end_date_ymd] => 2024-12-31 02:00:05 [RateCDR] => 1 ) [2024-12-31 02:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:00:05' and `end` < '2024-12-31 02:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:00:18] Production.INFO: count ==466 [2024-12-31 02:00:18] Production.ERROR: pbx CDR StartTime 2024-12-30 23:00:05 - End Time 2024-12-31 02:00:05 [2024-12-31 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140341', 'tblTempUsageDetail_20' ) start [2024-12-31 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140341', 'tblTempUsageDetail_20' ) end [2024-12-31 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140341', 'tblTempVendorCDR_20' ) start [2024-12-31 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140341', 'tblTempVendorCDR_20' ) end [2024-12-31 02:00:18] Production.INFO: ProcessCDR(1,14140341,1,1,2) [2024-12-31 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140341', 'tblTempUsageDetail_20' ) start [2024-12-31 02:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140341', 'tblTempUsageDetail_20' ) end [2024-12-31 02:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:00:21] Production.INFO: ==32657== Releasing lock... [2024-12-31 02:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:00:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-31 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:01:05 [end_date_ymd] => 2024-12-31 02:01:05 [RateCDR] => 1 ) [2024-12-31 02:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:01:05' and `end` < '2024-12-31 02:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:01:17] Production.INFO: count ==465 [2024-12-31 02:01:17] Production.ERROR: pbx CDR StartTime 2024-12-30 23:01:05 - End Time 2024-12-31 02:01:05 [2024-12-31 02:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140346', 'tblTempUsageDetail_20' ) start [2024-12-31 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140346', 'tblTempUsageDetail_20' ) end [2024-12-31 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140346', 'tblTempVendorCDR_20' ) start [2024-12-31 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140346', 'tblTempVendorCDR_20' ) end [2024-12-31 02:01:17] Production.INFO: ProcessCDR(1,14140346,1,1,2) [2024-12-31 02:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140346', 'tblTempUsageDetail_20' ) start [2024-12-31 02:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140346', 'tblTempUsageDetail_20' ) end [2024-12-31 02:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:01:21] Production.INFO: ==381== Releasing lock... [2024-12-31 02:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:01:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:02:05 [end_date_ymd] => 2024-12-31 02:02:05 [RateCDR] => 1 ) [2024-12-31 02:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:02:05' and `end` < '2024-12-31 02:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:02:19] Production.INFO: count ==464 [2024-12-31 02:02:19] Production.ERROR: pbx CDR StartTime 2024-12-30 23:02:05 - End Time 2024-12-31 02:02:05 [2024-12-31 02:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140351', 'tblTempUsageDetail_20' ) start [2024-12-31 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140351', 'tblTempUsageDetail_20' ) end [2024-12-31 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140351', 'tblTempVendorCDR_20' ) start [2024-12-31 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140351', 'tblTempVendorCDR_20' ) end [2024-12-31 02:02:19] Production.INFO: ProcessCDR(1,14140351,1,1,2) [2024-12-31 02:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140351', 'tblTempUsageDetail_20' ) start [2024-12-31 02:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140351', 'tblTempUsageDetail_20' ) end [2024-12-31 02:02:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:02:23] Production.INFO: ==450== Releasing lock... [2024-12-31 02:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:02:23] Production.INFO: 32.5 MB #Memory Used# [2024-12-31 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:03:05 [end_date_ymd] => 2024-12-31 02:03:05 [RateCDR] => 1 ) [2024-12-31 02:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:03:05' and `end` < '2024-12-31 02:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:03:17] Production.INFO: count ==464 [2024-12-31 02:03:17] Production.ERROR: pbx CDR StartTime 2024-12-30 23:03:05 - End Time 2024-12-31 02:03:05 [2024-12-31 02:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140356', 'tblTempUsageDetail_20' ) start [2024-12-31 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140356', 'tblTempUsageDetail_20' ) end [2024-12-31 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140356', 'tblTempVendorCDR_20' ) start [2024-12-31 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140356', 'tblTempVendorCDR_20' ) end [2024-12-31 02:03:17] Production.INFO: ProcessCDR(1,14140356,1,1,2) [2024-12-31 02:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140356', 'tblTempUsageDetail_20' ) start [2024-12-31 02:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140356', 'tblTempUsageDetail_20' ) end [2024-12-31 02:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:03:20] Production.INFO: ==543== Releasing lock... [2024-12-31 02:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:03:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-31 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:04:05 [end_date_ymd] => 2024-12-31 02:04:05 [RateCDR] => 1 ) [2024-12-31 02:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:04:05' and `end` < '2024-12-31 02:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:04:17] Production.INFO: count ==464 [2024-12-31 02:04:17] Production.ERROR: pbx CDR StartTime 2024-12-30 23:04:05 - End Time 2024-12-31 02:04:05 [2024-12-31 02:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140361', 'tblTempUsageDetail_20' ) start [2024-12-31 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140361', 'tblTempUsageDetail_20' ) end [2024-12-31 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140361', 'tblTempVendorCDR_20' ) start [2024-12-31 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140361', 'tblTempVendorCDR_20' ) end [2024-12-31 02:04:17] Production.INFO: ProcessCDR(1,14140361,1,1,2) [2024-12-31 02:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140361', 'tblTempUsageDetail_20' ) start [2024-12-31 02:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140361', 'tblTempUsageDetail_20' ) end [2024-12-31 02:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:04:20] Production.INFO: ==650== Releasing lock... [2024-12-31 02:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:04:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-31 02:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:05:04 [end_date_ymd] => 2024-12-31 02:05:04 [RateCDR] => 1 ) [2024-12-31 02:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:05:04' and `end` < '2024-12-31 02:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:05:18] Production.INFO: count ==463 [2024-12-31 02:05:18] Production.ERROR: pbx CDR StartTime 2024-12-30 23:05:04 - End Time 2024-12-31 02:05:04 [2024-12-31 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140366', 'tblTempUsageDetail_20' ) start [2024-12-31 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140366', 'tblTempUsageDetail_20' ) end [2024-12-31 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140366', 'tblTempVendorCDR_20' ) start [2024-12-31 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140366', 'tblTempVendorCDR_20' ) end [2024-12-31 02:05:18] Production.INFO: ProcessCDR(1,14140366,1,1,2) [2024-12-31 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140366', 'tblTempUsageDetail_20' ) start [2024-12-31 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140366', 'tblTempUsageDetail_20' ) end [2024-12-31 02:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:05:21] Production.INFO: ==768== Releasing lock... [2024-12-31 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:05:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-31 02:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:06:04 [end_date_ymd] => 2024-12-31 02:06:04 [RateCDR] => 1 ) [2024-12-31 02:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:06:04' and `end` < '2024-12-31 02:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:06:17] Production.INFO: count ==463 [2024-12-31 02:06:17] Production.ERROR: pbx CDR StartTime 2024-12-30 23:06:04 - End Time 2024-12-31 02:06:04 [2024-12-31 02:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140371', 'tblTempUsageDetail_20' ) start [2024-12-31 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140371', 'tblTempUsageDetail_20' ) end [2024-12-31 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140371', 'tblTempVendorCDR_20' ) start [2024-12-31 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140371', 'tblTempVendorCDR_20' ) end [2024-12-31 02:06:17] Production.INFO: ProcessCDR(1,14140371,1,1,2) [2024-12-31 02:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140371', 'tblTempUsageDetail_20' ) start [2024-12-31 02:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140371', 'tblTempUsageDetail_20' ) end [2024-12-31 02:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:06:20] Production.INFO: ==842== Releasing lock... [2024-12-31 02:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:06:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-31 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:07:05 [end_date_ymd] => 2024-12-31 02:07:05 [RateCDR] => 1 ) [2024-12-31 02:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:07:05' and `end` < '2024-12-31 02:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:07:17] Production.INFO: count ==463 [2024-12-31 02:07:17] Production.ERROR: pbx CDR StartTime 2024-12-30 23:07:05 - End Time 2024-12-31 02:07:05 [2024-12-31 02:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140376', 'tblTempUsageDetail_20' ) start [2024-12-31 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140376', 'tblTempUsageDetail_20' ) end [2024-12-31 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140376', 'tblTempVendorCDR_20' ) start [2024-12-31 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140376', 'tblTempVendorCDR_20' ) end [2024-12-31 02:07:17] Production.INFO: ProcessCDR(1,14140376,1,1,2) [2024-12-31 02:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140376', 'tblTempUsageDetail_20' ) start [2024-12-31 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140376', 'tblTempUsageDetail_20' ) end [2024-12-31 02:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:07:21] Production.INFO: ==912== Releasing lock... [2024-12-31 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:07:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-31 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:08:05 [end_date_ymd] => 2024-12-31 02:08:05 [RateCDR] => 1 ) [2024-12-31 02:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:08:05' and `end` < '2024-12-31 02:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:08:19] Production.INFO: count ==463 [2024-12-31 02:08:19] Production.ERROR: pbx CDR StartTime 2024-12-30 23:08:05 - End Time 2024-12-31 02:08:05 [2024-12-31 02:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140381', 'tblTempUsageDetail_20' ) start [2024-12-31 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140381', 'tblTempUsageDetail_20' ) end [2024-12-31 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140381', 'tblTempVendorCDR_20' ) start [2024-12-31 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140381', 'tblTempVendorCDR_20' ) end [2024-12-31 02:08:19] Production.INFO: ProcessCDR(1,14140381,1,1,2) [2024-12-31 02:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140381', 'tblTempUsageDetail_20' ) start [2024-12-31 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140381', 'tblTempUsageDetail_20' ) end [2024-12-31 02:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:08:22] Production.INFO: ==1022== Releasing lock... [2024-12-31 02:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:08:22] Production.INFO: 32.5 MB #Memory Used# [2024-12-31 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:09:05 [end_date_ymd] => 2024-12-31 02:09:05 [RateCDR] => 1 ) [2024-12-31 02:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:09:05' and `end` < '2024-12-31 02:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:09:19] Production.INFO: count ==461 [2024-12-31 02:09:19] Production.ERROR: pbx CDR StartTime 2024-12-30 23:09:05 - End Time 2024-12-31 02:09:05 [2024-12-31 02:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140386', 'tblTempUsageDetail_20' ) start [2024-12-31 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140386', 'tblTempUsageDetail_20' ) end [2024-12-31 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140386', 'tblTempVendorCDR_20' ) start [2024-12-31 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140386', 'tblTempVendorCDR_20' ) end [2024-12-31 02:09:19] Production.INFO: ProcessCDR(1,14140386,1,1,2) [2024-12-31 02:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140386', 'tblTempUsageDetail_20' ) start [2024-12-31 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140386', 'tblTempUsageDetail_20' ) end [2024-12-31 02:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:09:22] Production.INFO: ==1092== Releasing lock... [2024-12-31 02:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:09:22] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 02:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:10:05 [end_date_ymd] => 2024-12-31 02:10:05 [RateCDR] => 1 ) [2024-12-31 02:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:10:05' and `end` < '2024-12-31 02:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:10:17] Production.INFO: count ==464 [2024-12-31 02:10:17] Production.ERROR: pbx CDR StartTime 2024-12-30 23:10:05 - End Time 2024-12-31 02:10:05 [2024-12-31 02:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140392', 'tblTempUsageDetail_20' ) start [2024-12-31 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140392', 'tblTempUsageDetail_20' ) end [2024-12-31 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140392', 'tblTempVendorCDR_20' ) start [2024-12-31 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140392', 'tblTempVendorCDR_20' ) end [2024-12-31 02:10:18] Production.INFO: ProcessCDR(1,14140392,1,1,2) [2024-12-31 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140392', 'tblTempUsageDetail_20' ) start [2024-12-31 02:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140392', 'tblTempUsageDetail_20' ) end [2024-12-31 02:10:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:10:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:10:20] Production.INFO: ==1169== Releasing lock... [2024-12-31 02:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:10:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:11:05 [end_date_ymd] => 2024-12-31 02:11:05 [RateCDR] => 1 ) [2024-12-31 02:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:11:05' and `end` < '2024-12-31 02:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:11:18] Production.INFO: count ==468 [2024-12-31 02:11:18] Production.ERROR: pbx CDR StartTime 2024-12-30 23:11:05 - End Time 2024-12-31 02:11:05 [2024-12-31 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140397', 'tblTempUsageDetail_20' ) start [2024-12-31 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140397', 'tblTempUsageDetail_20' ) end [2024-12-31 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140397', 'tblTempVendorCDR_20' ) start [2024-12-31 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140397', 'tblTempVendorCDR_20' ) end [2024-12-31 02:11:18] Production.INFO: ProcessCDR(1,14140397,1,1,2) [2024-12-31 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140397', 'tblTempUsageDetail_20' ) start [2024-12-31 02:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140397', 'tblTempUsageDetail_20' ) end [2024-12-31 02:11:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:11:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:11:23] Production.INFO: ==1251== Releasing lock... [2024-12-31 02:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:11:23] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 02:12:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:12:06 [end_date_ymd] => 2024-12-31 02:12:06 [RateCDR] => 1 ) [2024-12-31 02:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:12:06' and `end` < '2024-12-31 02:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:12:19] Production.INFO: count ==468 [2024-12-31 02:12:19] Production.ERROR: pbx CDR StartTime 2024-12-30 23:12:06 - End Time 2024-12-31 02:12:06 [2024-12-31 02:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140402', 'tblTempUsageDetail_20' ) start [2024-12-31 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140402', 'tblTempUsageDetail_20' ) end [2024-12-31 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140402', 'tblTempVendorCDR_20' ) start [2024-12-31 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140402', 'tblTempVendorCDR_20' ) end [2024-12-31 02:12:19] Production.INFO: ProcessCDR(1,14140402,1,1,2) [2024-12-31 02:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140402', 'tblTempUsageDetail_20' ) start [2024-12-31 02:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140402', 'tblTempUsageDetail_20' ) end [2024-12-31 02:12:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:12:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:12:23] Production.INFO: ==1325== Releasing lock... [2024-12-31 02:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:12:23] Production.INFO: 32.5 MB #Memory Used# [2024-12-31 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:13:05 [end_date_ymd] => 2024-12-31 02:13:05 [RateCDR] => 1 ) [2024-12-31 02:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:13:05' and `end` < '2024-12-31 02:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:13:17] Production.INFO: count ==468 [2024-12-31 02:13:17] Production.ERROR: pbx CDR StartTime 2024-12-30 23:13:05 - End Time 2024-12-31 02:13:05 [2024-12-31 02:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140407', 'tblTempUsageDetail_20' ) start [2024-12-31 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140407', 'tblTempUsageDetail_20' ) end [2024-12-31 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140407', 'tblTempVendorCDR_20' ) start [2024-12-31 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140407', 'tblTempVendorCDR_20' ) end [2024-12-31 02:13:18] Production.INFO: ProcessCDR(1,14140407,1,1,2) [2024-12-31 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140407', 'tblTempUsageDetail_20' ) start [2024-12-31 02:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140407', 'tblTempUsageDetail_20' ) end [2024-12-31 02:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:13:21] Production.INFO: ==1396== Releasing lock... [2024-12-31 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:13:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 02:14:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:14:06 [end_date_ymd] => 2024-12-31 02:14:06 [RateCDR] => 1 ) [2024-12-31 02:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:14:06' and `end` < '2024-12-31 02:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:14:20] Production.INFO: count ==468 [2024-12-31 02:14:20] Production.ERROR: pbx CDR StartTime 2024-12-30 23:14:06 - End Time 2024-12-31 02:14:06 [2024-12-31 02:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140412', 'tblTempUsageDetail_20' ) start [2024-12-31 02:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140412', 'tblTempUsageDetail_20' ) end [2024-12-31 02:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140412', 'tblTempVendorCDR_20' ) start [2024-12-31 02:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140412', 'tblTempVendorCDR_20' ) end [2024-12-31 02:14:20] Production.INFO: ProcessCDR(1,14140412,1,1,2) [2024-12-31 02:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140412', 'tblTempUsageDetail_20' ) start [2024-12-31 02:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140412', 'tblTempUsageDetail_20' ) end [2024-12-31 02:14:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:14:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:14:23] Production.INFO: ==1469== Releasing lock... [2024-12-31 02:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:14:23] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:15:05 [end_date_ymd] => 2024-12-31 02:15:05 [RateCDR] => 1 ) [2024-12-31 02:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:15:05' and `end` < '2024-12-31 02:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:15:17] Production.INFO: count ==468 [2024-12-31 02:15:18] Production.ERROR: pbx CDR StartTime 2024-12-30 23:15:05 - End Time 2024-12-31 02:15:05 [2024-12-31 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140417', 'tblTempUsageDetail_20' ) start [2024-12-31 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140417', 'tblTempUsageDetail_20' ) end [2024-12-31 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140417', 'tblTempVendorCDR_20' ) start [2024-12-31 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140417', 'tblTempVendorCDR_20' ) end [2024-12-31 02:15:18] Production.INFO: ProcessCDR(1,14140417,1,1,2) [2024-12-31 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140417', 'tblTempUsageDetail_20' ) start [2024-12-31 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140417', 'tblTempUsageDetail_20' ) end [2024-12-31 02:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:15:21] Production.INFO: ==1575== Releasing lock... [2024-12-31 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:15:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:16:05 [end_date_ymd] => 2024-12-31 02:16:05 [RateCDR] => 1 ) [2024-12-31 02:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:16:05' and `end` < '2024-12-31 02:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:16:18] Production.INFO: count ==467 [2024-12-31 02:16:19] Production.ERROR: pbx CDR StartTime 2024-12-30 23:16:05 - End Time 2024-12-31 02:16:05 [2024-12-31 02:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140422', 'tblTempUsageDetail_20' ) start [2024-12-31 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140422', 'tblTempUsageDetail_20' ) end [2024-12-31 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140422', 'tblTempVendorCDR_20' ) start [2024-12-31 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140422', 'tblTempVendorCDR_20' ) end [2024-12-31 02:16:19] Production.INFO: ProcessCDR(1,14140422,1,1,2) [2024-12-31 02:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140422', 'tblTempUsageDetail_20' ) start [2024-12-31 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140422', 'tblTempUsageDetail_20' ) end [2024-12-31 02:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:16:22] Production.INFO: ==1645== Releasing lock... [2024-12-31 02:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:16:22] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:17:05 [end_date_ymd] => 2024-12-31 02:17:05 [RateCDR] => 1 ) [2024-12-31 02:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:17:05' and `end` < '2024-12-31 02:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:17:17] Production.INFO: count ==467 [2024-12-31 02:17:17] Production.ERROR: pbx CDR StartTime 2024-12-30 23:17:05 - End Time 2024-12-31 02:17:05 [2024-12-31 02:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140427', 'tblTempUsageDetail_20' ) start [2024-12-31 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140427', 'tblTempUsageDetail_20' ) end [2024-12-31 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140427', 'tblTempVendorCDR_20' ) start [2024-12-31 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140427', 'tblTempVendorCDR_20' ) end [2024-12-31 02:17:17] Production.INFO: ProcessCDR(1,14140427,1,1,2) [2024-12-31 02:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140427', 'tblTempUsageDetail_20' ) start [2024-12-31 02:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140427', 'tblTempUsageDetail_20' ) end [2024-12-31 02:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:17:20] Production.INFO: ==1714== Releasing lock... [2024-12-31 02:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:17:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 02:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:18:04 [end_date_ymd] => 2024-12-31 02:18:04 [RateCDR] => 1 ) [2024-12-31 02:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:18:04' and `end` < '2024-12-31 02:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:18:17] Production.INFO: count ==467 [2024-12-31 02:18:17] Production.ERROR: pbx CDR StartTime 2024-12-30 23:18:04 - End Time 2024-12-31 02:18:04 [2024-12-31 02:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140432', 'tblTempUsageDetail_20' ) start [2024-12-31 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140432', 'tblTempUsageDetail_20' ) end [2024-12-31 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140432', 'tblTempVendorCDR_20' ) start [2024-12-31 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140432', 'tblTempVendorCDR_20' ) end [2024-12-31 02:18:17] Production.INFO: ProcessCDR(1,14140432,1,1,2) [2024-12-31 02:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140432', 'tblTempUsageDetail_20' ) start [2024-12-31 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140432', 'tblTempUsageDetail_20' ) end [2024-12-31 02:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:18:20] Production.INFO: ==1782== Releasing lock... [2024-12-31 02:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:18:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:19:05 [end_date_ymd] => 2024-12-31 02:19:05 [RateCDR] => 1 ) [2024-12-31 02:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:19:05' and `end` < '2024-12-31 02:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:19:17] Production.INFO: count ==467 [2024-12-31 02:19:17] Production.ERROR: pbx CDR StartTime 2024-12-30 23:19:05 - End Time 2024-12-31 02:19:05 [2024-12-31 02:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140437', 'tblTempUsageDetail_20' ) start [2024-12-31 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140437', 'tblTempUsageDetail_20' ) end [2024-12-31 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140437', 'tblTempVendorCDR_20' ) start [2024-12-31 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140437', 'tblTempVendorCDR_20' ) end [2024-12-31 02:19:17] Production.INFO: ProcessCDR(1,14140437,1,1,2) [2024-12-31 02:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140437', 'tblTempUsageDetail_20' ) start [2024-12-31 02:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140437', 'tblTempUsageDetail_20' ) end [2024-12-31 02:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:19:20] Production.INFO: ==1857== Releasing lock... [2024-12-31 02:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:19:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:20:06 [end_date_ymd] => 2024-12-31 02:20:06 [RateCDR] => 1 ) [2024-12-31 02:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:20:06' and `end` < '2024-12-31 02:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:20:18] Production.INFO: count ==469 [2024-12-31 02:20:18] Production.ERROR: pbx CDR StartTime 2024-12-30 23:20:06 - End Time 2024-12-31 02:20:06 [2024-12-31 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140442', 'tblTempUsageDetail_20' ) start [2024-12-31 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140442', 'tblTempUsageDetail_20' ) end [2024-12-31 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140442', 'tblTempVendorCDR_20' ) start [2024-12-31 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140442', 'tblTempVendorCDR_20' ) end [2024-12-31 02:20:18] Production.INFO: ProcessCDR(1,14140442,1,1,2) [2024-12-31 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140442', 'tblTempUsageDetail_20' ) start [2024-12-31 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140442', 'tblTempUsageDetail_20' ) end [2024-12-31 02:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:20:22] Production.INFO: ==1930== Releasing lock... [2024-12-31 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:20:22] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:21:05 [end_date_ymd] => 2024-12-31 02:21:05 [RateCDR] => 1 ) [2024-12-31 02:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:21:05' and `end` < '2024-12-31 02:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:21:17] Production.INFO: count ==469 [2024-12-31 02:21:18] Production.ERROR: pbx CDR StartTime 2024-12-30 23:21:05 - End Time 2024-12-31 02:21:05 [2024-12-31 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140448', 'tblTempUsageDetail_20' ) start [2024-12-31 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140448', 'tblTempUsageDetail_20' ) end [2024-12-31 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140448', 'tblTempVendorCDR_20' ) start [2024-12-31 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140448', 'tblTempVendorCDR_20' ) end [2024-12-31 02:21:18] Production.INFO: ProcessCDR(1,14140448,1,1,2) [2024-12-31 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140448', 'tblTempUsageDetail_20' ) start [2024-12-31 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140448', 'tblTempUsageDetail_20' ) end [2024-12-31 02:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:21:21] Production.INFO: ==2004== Releasing lock... [2024-12-31 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:21:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:22:05 [end_date_ymd] => 2024-12-31 02:22:05 [RateCDR] => 1 ) [2024-12-31 02:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:22:05' and `end` < '2024-12-31 02:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:22:18] Production.INFO: count ==468 [2024-12-31 02:22:18] Production.ERROR: pbx CDR StartTime 2024-12-30 23:22:05 - End Time 2024-12-31 02:22:05 [2024-12-31 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140453', 'tblTempUsageDetail_20' ) start [2024-12-31 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140453', 'tblTempUsageDetail_20' ) end [2024-12-31 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140453', 'tblTempVendorCDR_20' ) start [2024-12-31 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140453', 'tblTempVendorCDR_20' ) end [2024-12-31 02:22:18] Production.INFO: ProcessCDR(1,14140453,1,1,2) [2024-12-31 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140453', 'tblTempUsageDetail_20' ) start [2024-12-31 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140453', 'tblTempUsageDetail_20' ) end [2024-12-31 02:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:22:21] Production.INFO: ==2073== Releasing lock... [2024-12-31 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:22:21] Production.INFO: 32 MB #Memory Used# [2024-12-31 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:23:05 [end_date_ymd] => 2024-12-31 02:23:05 [RateCDR] => 1 ) [2024-12-31 02:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:23:05' and `end` < '2024-12-31 02:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:23:18] Production.INFO: count ==466 [2024-12-31 02:23:18] Production.ERROR: pbx CDR StartTime 2024-12-30 23:23:05 - End Time 2024-12-31 02:23:05 [2024-12-31 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140458', 'tblTempUsageDetail_20' ) start [2024-12-31 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140458', 'tblTempUsageDetail_20' ) end [2024-12-31 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140458', 'tblTempVendorCDR_20' ) start [2024-12-31 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140458', 'tblTempVendorCDR_20' ) end [2024-12-31 02:23:18] Production.INFO: ProcessCDR(1,14140458,1,1,2) [2024-12-31 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140458', 'tblTempUsageDetail_20' ) start [2024-12-31 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140458', 'tblTempUsageDetail_20' ) end [2024-12-31 02:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:23:21] Production.INFO: ==2141== Releasing lock... [2024-12-31 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:23:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:24:05 [end_date_ymd] => 2024-12-31 02:24:05 [RateCDR] => 1 ) [2024-12-31 02:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:24:05' and `end` < '2024-12-31 02:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:24:18] Production.INFO: count ==466 [2024-12-31 02:24:18] Production.ERROR: pbx CDR StartTime 2024-12-30 23:24:05 - End Time 2024-12-31 02:24:05 [2024-12-31 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140463', 'tblTempUsageDetail_20' ) start [2024-12-31 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140463', 'tblTempUsageDetail_20' ) end [2024-12-31 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140463', 'tblTempVendorCDR_20' ) start [2024-12-31 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140463', 'tblTempVendorCDR_20' ) end [2024-12-31 02:24:18] Production.INFO: ProcessCDR(1,14140463,1,1,2) [2024-12-31 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140463', 'tblTempUsageDetail_20' ) start [2024-12-31 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140463', 'tblTempUsageDetail_20' ) end [2024-12-31 02:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:24:21] Production.INFO: ==2252== Releasing lock... [2024-12-31 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:24:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 02:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:25:04 [end_date_ymd] => 2024-12-31 02:25:04 [RateCDR] => 1 ) [2024-12-31 02:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:25:04' and `end` < '2024-12-31 02:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:25:17] Production.INFO: count ==466 [2024-12-31 02:25:17] Production.ERROR: pbx CDR StartTime 2024-12-30 23:25:04 - End Time 2024-12-31 02:25:04 [2024-12-31 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140468', 'tblTempUsageDetail_20' ) start [2024-12-31 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140468', 'tblTempUsageDetail_20' ) end [2024-12-31 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140468', 'tblTempVendorCDR_20' ) start [2024-12-31 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140468', 'tblTempVendorCDR_20' ) end [2024-12-31 02:25:17] Production.INFO: ProcessCDR(1,14140468,1,1,2) [2024-12-31 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140468', 'tblTempUsageDetail_20' ) start [2024-12-31 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140468', 'tblTempUsageDetail_20' ) end [2024-12-31 02:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:25:20] Production.INFO: ==2321== Releasing lock... [2024-12-31 02:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:25:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 02:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:26:04 [end_date_ymd] => 2024-12-31 02:26:04 [RateCDR] => 1 ) [2024-12-31 02:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:26:04' and `end` < '2024-12-31 02:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:26:17] Production.INFO: count ==466 [2024-12-31 02:26:17] Production.ERROR: pbx CDR StartTime 2024-12-30 23:26:04 - End Time 2024-12-31 02:26:04 [2024-12-31 02:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140473', 'tblTempUsageDetail_20' ) start [2024-12-31 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140473', 'tblTempUsageDetail_20' ) end [2024-12-31 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140473', 'tblTempVendorCDR_20' ) start [2024-12-31 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140473', 'tblTempVendorCDR_20' ) end [2024-12-31 02:26:17] Production.INFO: ProcessCDR(1,14140473,1,1,2) [2024-12-31 02:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140473', 'tblTempUsageDetail_20' ) start [2024-12-31 02:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140473', 'tblTempUsageDetail_20' ) end [2024-12-31 02:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:26:20] Production.INFO: ==2393== Releasing lock... [2024-12-31 02:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:26:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:27:05 [end_date_ymd] => 2024-12-31 02:27:05 [RateCDR] => 1 ) [2024-12-31 02:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:27:05' and `end` < '2024-12-31 02:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:27:18] Production.INFO: count ==466 [2024-12-31 02:27:18] Production.ERROR: pbx CDR StartTime 2024-12-30 23:27:05 - End Time 2024-12-31 02:27:05 [2024-12-31 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140478', 'tblTempUsageDetail_20' ) start [2024-12-31 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140478', 'tblTempUsageDetail_20' ) end [2024-12-31 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140478', 'tblTempVendorCDR_20' ) start [2024-12-31 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140478', 'tblTempVendorCDR_20' ) end [2024-12-31 02:27:18] Production.INFO: ProcessCDR(1,14140478,1,1,2) [2024-12-31 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140478', 'tblTempUsageDetail_20' ) start [2024-12-31 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140478', 'tblTempUsageDetail_20' ) end [2024-12-31 02:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:27:21] Production.INFO: ==2463== Releasing lock... [2024-12-31 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:27:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:28:05 [end_date_ymd] => 2024-12-31 02:28:05 [RateCDR] => 1 ) [2024-12-31 02:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:28:05' and `end` < '2024-12-31 02:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:28:18] Production.INFO: count ==466 [2024-12-31 02:28:18] Production.ERROR: pbx CDR StartTime 2024-12-30 23:28:05 - End Time 2024-12-31 02:28:05 [2024-12-31 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140483', 'tblTempUsageDetail_20' ) start [2024-12-31 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140483', 'tblTempUsageDetail_20' ) end [2024-12-31 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140483', 'tblTempVendorCDR_20' ) start [2024-12-31 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140483', 'tblTempVendorCDR_20' ) end [2024-12-31 02:28:18] Production.INFO: ProcessCDR(1,14140483,1,1,2) [2024-12-31 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140483', 'tblTempUsageDetail_20' ) start [2024-12-31 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140483', 'tblTempUsageDetail_20' ) end [2024-12-31 02:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:28:21] Production.INFO: ==2532== Releasing lock... [2024-12-31 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:28:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:29:05 [end_date_ymd] => 2024-12-31 02:29:05 [RateCDR] => 1 ) [2024-12-31 02:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:29:05' and `end` < '2024-12-31 02:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:29:19] Production.INFO: count ==466 [2024-12-31 02:29:19] Production.ERROR: pbx CDR StartTime 2024-12-30 23:29:05 - End Time 2024-12-31 02:29:05 [2024-12-31 02:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140488', 'tblTempUsageDetail_20' ) start [2024-12-31 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140488', 'tblTempUsageDetail_20' ) end [2024-12-31 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140488', 'tblTempVendorCDR_20' ) start [2024-12-31 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140488', 'tblTempVendorCDR_20' ) end [2024-12-31 02:29:19] Production.INFO: ProcessCDR(1,14140488,1,1,2) [2024-12-31 02:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140488', 'tblTempUsageDetail_20' ) start [2024-12-31 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140488', 'tblTempUsageDetail_20' ) end [2024-12-31 02:29:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:29:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:29:22] Production.INFO: ==2603== Releasing lock... [2024-12-31 02:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:29:22] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 02:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:30:05 [end_date_ymd] => 2024-12-31 02:30:05 [RateCDR] => 1 ) [2024-12-31 02:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:30:05' and `end` < '2024-12-31 02:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:30:18] Production.INFO: count ==468 [2024-12-31 02:30:18] Production.ERROR: pbx CDR StartTime 2024-12-30 23:30:05 - End Time 2024-12-31 02:30:05 [2024-12-31 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140494', 'tblTempUsageDetail_20' ) start [2024-12-31 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140494', 'tblTempUsageDetail_20' ) end [2024-12-31 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140494', 'tblTempVendorCDR_20' ) start [2024-12-31 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140494', 'tblTempVendorCDR_20' ) end [2024-12-31 02:30:18] Production.INFO: ProcessCDR(1,14140494,1,1,2) [2024-12-31 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140494', 'tblTempUsageDetail_20' ) start [2024-12-31 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140494', 'tblTempUsageDetail_20' ) end [2024-12-31 02:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:30:21] Production.INFO: ==2673== Releasing lock... [2024-12-31 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:30:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:31:05 [end_date_ymd] => 2024-12-31 02:31:05 [RateCDR] => 1 ) [2024-12-31 02:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:31:05' and `end` < '2024-12-31 02:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:31:18] Production.INFO: count ==469 [2024-12-31 02:31:18] Production.ERROR: pbx CDR StartTime 2024-12-30 23:31:05 - End Time 2024-12-31 02:31:05 [2024-12-31 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140499', 'tblTempUsageDetail_20' ) start [2024-12-31 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140499', 'tblTempUsageDetail_20' ) end [2024-12-31 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140499', 'tblTempVendorCDR_20' ) start [2024-12-31 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140499', 'tblTempVendorCDR_20' ) end [2024-12-31 02:31:18] Production.INFO: ProcessCDR(1,14140499,1,1,2) [2024-12-31 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140499', 'tblTempUsageDetail_20' ) start [2024-12-31 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140499', 'tblTempUsageDetail_20' ) end [2024-12-31 02:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:31:21] Production.INFO: ==2745== Releasing lock... [2024-12-31 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:31:21] Production.INFO: 32 MB #Memory Used# [2024-12-31 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:32:05 [end_date_ymd] => 2024-12-31 02:32:05 [RateCDR] => 1 ) [2024-12-31 02:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:32:05' and `end` < '2024-12-31 02:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:32:17] Production.INFO: count ==468 [2024-12-31 02:32:17] Production.ERROR: pbx CDR StartTime 2024-12-30 23:32:05 - End Time 2024-12-31 02:32:05 [2024-12-31 02:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140504', 'tblTempUsageDetail_20' ) start [2024-12-31 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140504', 'tblTempUsageDetail_20' ) end [2024-12-31 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140504', 'tblTempVendorCDR_20' ) start [2024-12-31 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140504', 'tblTempVendorCDR_20' ) end [2024-12-31 02:32:17] Production.INFO: ProcessCDR(1,14140504,1,1,2) [2024-12-31 02:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140504', 'tblTempUsageDetail_20' ) start [2024-12-31 02:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140504', 'tblTempUsageDetail_20' ) end [2024-12-31 02:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:32:20] Production.INFO: ==2817== Releasing lock... [2024-12-31 02:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:32:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:33:05 [end_date_ymd] => 2024-12-31 02:33:05 [RateCDR] => 1 ) [2024-12-31 02:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:33:05' and `end` < '2024-12-31 02:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:33:19] Production.INFO: count ==468 [2024-12-31 02:33:19] Production.ERROR: pbx CDR StartTime 2024-12-30 23:33:05 - End Time 2024-12-31 02:33:05 [2024-12-31 02:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140509', 'tblTempUsageDetail_20' ) start [2024-12-31 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140509', 'tblTempUsageDetail_20' ) end [2024-12-31 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140509', 'tblTempVendorCDR_20' ) start [2024-12-31 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140509', 'tblTempVendorCDR_20' ) end [2024-12-31 02:33:19] Production.INFO: ProcessCDR(1,14140509,1,1,2) [2024-12-31 02:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140509', 'tblTempUsageDetail_20' ) start [2024-12-31 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140509', 'tblTempUsageDetail_20' ) end [2024-12-31 02:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:33:22] Production.INFO: ==2889== Releasing lock... [2024-12-31 02:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:33:22] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:34:05 [end_date_ymd] => 2024-12-31 02:34:05 [RateCDR] => 1 ) [2024-12-31 02:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:34:05' and `end` < '2024-12-31 02:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:34:17] Production.INFO: count ==468 [2024-12-31 02:34:18] Production.ERROR: pbx CDR StartTime 2024-12-30 23:34:05 - End Time 2024-12-31 02:34:05 [2024-12-31 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140514', 'tblTempUsageDetail_20' ) start [2024-12-31 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140514', 'tblTempUsageDetail_20' ) end [2024-12-31 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140514', 'tblTempVendorCDR_20' ) start [2024-12-31 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140514', 'tblTempVendorCDR_20' ) end [2024-12-31 02:34:18] Production.INFO: ProcessCDR(1,14140514,1,1,2) [2024-12-31 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140514', 'tblTempUsageDetail_20' ) start [2024-12-31 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140514', 'tblTempUsageDetail_20' ) end [2024-12-31 02:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:34:21] Production.INFO: ==2959== Releasing lock... [2024-12-31 02:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:34:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:35:05 [end_date_ymd] => 2024-12-31 02:35:05 [RateCDR] => 1 ) [2024-12-31 02:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:35:05' and `end` < '2024-12-31 02:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:35:17] Production.INFO: count ==466 [2024-12-31 02:35:18] Production.ERROR: pbx CDR StartTime 2024-12-30 23:35:05 - End Time 2024-12-31 02:35:05 [2024-12-31 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140519', 'tblTempUsageDetail_20' ) start [2024-12-31 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140519', 'tblTempUsageDetail_20' ) end [2024-12-31 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140519', 'tblTempVendorCDR_20' ) start [2024-12-31 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140519', 'tblTempVendorCDR_20' ) end [2024-12-31 02:35:18] Production.INFO: ProcessCDR(1,14140519,1,1,2) [2024-12-31 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140519', 'tblTempUsageDetail_20' ) start [2024-12-31 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140519', 'tblTempUsageDetail_20' ) end [2024-12-31 02:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:35:21] Production.INFO: ==3029== Releasing lock... [2024-12-31 02:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:35:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-31 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:36:05 [end_date_ymd] => 2024-12-31 02:36:05 [RateCDR] => 1 ) [2024-12-31 02:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:36:05' and `end` < '2024-12-31 02:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:36:17] Production.INFO: count ==463 [2024-12-31 02:36:17] Production.ERROR: pbx CDR StartTime 2024-12-30 23:36:05 - End Time 2024-12-31 02:36:05 [2024-12-31 02:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140524', 'tblTempUsageDetail_20' ) start [2024-12-31 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140524', 'tblTempUsageDetail_20' ) end [2024-12-31 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140524', 'tblTempVendorCDR_20' ) start [2024-12-31 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140524', 'tblTempVendorCDR_20' ) end [2024-12-31 02:36:17] Production.INFO: ProcessCDR(1,14140524,1,1,2) [2024-12-31 02:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140524', 'tblTempUsageDetail_20' ) start [2024-12-31 02:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140524', 'tblTempUsageDetail_20' ) end [2024-12-31 02:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:36:20] Production.INFO: ==3108== Releasing lock... [2024-12-31 02:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:36:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:37:05 [end_date_ymd] => 2024-12-31 02:37:05 [RateCDR] => 1 ) [2024-12-31 02:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:37:05' and `end` < '2024-12-31 02:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:37:17] Production.INFO: count ==462 [2024-12-31 02:37:17] Production.ERROR: pbx CDR StartTime 2024-12-30 23:37:05 - End Time 2024-12-31 02:37:05 [2024-12-31 02:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140529', 'tblTempUsageDetail_20' ) start [2024-12-31 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140529', 'tblTempUsageDetail_20' ) end [2024-12-31 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140529', 'tblTempVendorCDR_20' ) start [2024-12-31 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140529', 'tblTempVendorCDR_20' ) end [2024-12-31 02:37:17] Production.INFO: ProcessCDR(1,14140529,1,1,2) [2024-12-31 02:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140529', 'tblTempUsageDetail_20' ) start [2024-12-31 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140529', 'tblTempUsageDetail_20' ) end [2024-12-31 02:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:37:20] Production.INFO: ==3183== Releasing lock... [2024-12-31 02:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:37:20] Production.INFO: 32 MB #Memory Used# [2024-12-31 02:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:38:04 [end_date_ymd] => 2024-12-31 02:38:04 [RateCDR] => 1 ) [2024-12-31 02:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:38:04' and `end` < '2024-12-31 02:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:38:18] Production.INFO: count ==462 [2024-12-31 02:38:18] Production.ERROR: pbx CDR StartTime 2024-12-30 23:38:04 - End Time 2024-12-31 02:38:04 [2024-12-31 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140534', 'tblTempUsageDetail_20' ) start [2024-12-31 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140534', 'tblTempUsageDetail_20' ) end [2024-12-31 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140534', 'tblTempVendorCDR_20' ) start [2024-12-31 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140534', 'tblTempVendorCDR_20' ) end [2024-12-31 02:38:18] Production.INFO: ProcessCDR(1,14140534,1,1,2) [2024-12-31 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140534', 'tblTempUsageDetail_20' ) start [2024-12-31 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140534', 'tblTempUsageDetail_20' ) end [2024-12-31 02:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:38:21] Production.INFO: ==3255== Releasing lock... [2024-12-31 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:38:21] Production.INFO: 32 MB #Memory Used# [2024-12-31 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:39:05 [end_date_ymd] => 2024-12-31 02:39:05 [RateCDR] => 1 ) [2024-12-31 02:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:39:05' and `end` < '2024-12-31 02:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:39:17] Production.INFO: count ==461 [2024-12-31 02:39:17] Production.ERROR: pbx CDR StartTime 2024-12-30 23:39:05 - End Time 2024-12-31 02:39:05 [2024-12-31 02:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140539', 'tblTempUsageDetail_20' ) start [2024-12-31 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140539', 'tblTempUsageDetail_20' ) end [2024-12-31 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140539', 'tblTempVendorCDR_20' ) start [2024-12-31 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140539', 'tblTempVendorCDR_20' ) end [2024-12-31 02:39:17] Production.INFO: ProcessCDR(1,14140539,1,1,2) [2024-12-31 02:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140539', 'tblTempUsageDetail_20' ) start [2024-12-31 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140539', 'tblTempUsageDetail_20' ) end [2024-12-31 02:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:39:20] Production.INFO: ==3368== Releasing lock... [2024-12-31 02:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:39:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-31 02:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:40:05 [end_date_ymd] => 2024-12-31 02:40:05 [RateCDR] => 1 ) [2024-12-31 02:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:40:05' and `end` < '2024-12-31 02:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:40:17] Production.INFO: count ==470 [2024-12-31 02:40:17] Production.ERROR: pbx CDR StartTime 2024-12-30 23:40:05 - End Time 2024-12-31 02:40:05 [2024-12-31 02:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140544', 'tblTempUsageDetail_20' ) start [2024-12-31 02:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140544', 'tblTempUsageDetail_20' ) end [2024-12-31 02:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140544', 'tblTempVendorCDR_20' ) start [2024-12-31 02:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140544', 'tblTempVendorCDR_20' ) end [2024-12-31 02:40:17] Production.INFO: ProcessCDR(1,14140544,1,1,2) [2024-12-31 02:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140544', 'tblTempUsageDetail_20' ) start [2024-12-31 02:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140544', 'tblTempUsageDetail_20' ) end [2024-12-31 02:40:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:40:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:40:20] Production.INFO: ==3440== Releasing lock... [2024-12-31 02:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:40:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-31 02:41:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:41:06 [end_date_ymd] => 2024-12-31 02:41:06 [RateCDR] => 1 ) [2024-12-31 02:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:41:06' and `end` < '2024-12-31 02:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:41:21] Production.INFO: count ==475 [2024-12-31 02:41:21] Production.ERROR: pbx CDR StartTime 2024-12-30 23:41:06 - End Time 2024-12-31 02:41:06 [2024-12-31 02:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140550', 'tblTempUsageDetail_20' ) start [2024-12-31 02:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140550', 'tblTempUsageDetail_20' ) end [2024-12-31 02:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140550', 'tblTempVendorCDR_20' ) start [2024-12-31 02:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140550', 'tblTempVendorCDR_20' ) end [2024-12-31 02:41:21] Production.INFO: ProcessCDR(1,14140550,1,1,2) [2024-12-31 02:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140550', 'tblTempUsageDetail_20' ) start [2024-12-31 02:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140550', 'tblTempUsageDetail_20' ) end [2024-12-31 02:41:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:41:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:41:24] Production.INFO: ==3514== Releasing lock... [2024-12-31 02:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:41:24] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 02:42:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:42:06 [end_date_ymd] => 2024-12-31 02:42:06 [RateCDR] => 1 ) [2024-12-31 02:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:42:06' and `end` < '2024-12-31 02:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:42:18] Production.INFO: count ==475 [2024-12-31 02:42:18] Production.ERROR: pbx CDR StartTime 2024-12-30 23:42:06 - End Time 2024-12-31 02:42:06 [2024-12-31 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140555', 'tblTempUsageDetail_20' ) start [2024-12-31 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140555', 'tblTempUsageDetail_20' ) end [2024-12-31 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140555', 'tblTempVendorCDR_20' ) start [2024-12-31 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140555', 'tblTempVendorCDR_20' ) end [2024-12-31 02:42:18] Production.INFO: ProcessCDR(1,14140555,1,1,2) [2024-12-31 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140555', 'tblTempUsageDetail_20' ) start [2024-12-31 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140555', 'tblTempUsageDetail_20' ) end [2024-12-31 02:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:42:21] Production.INFO: ==3585== Releasing lock... [2024-12-31 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:42:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:43:05 [end_date_ymd] => 2024-12-31 02:43:05 [RateCDR] => 1 ) [2024-12-31 02:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:43:05' and `end` < '2024-12-31 02:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:43:19] Production.INFO: count ==473 [2024-12-31 02:43:19] Production.ERROR: pbx CDR StartTime 2024-12-30 23:43:05 - End Time 2024-12-31 02:43:05 [2024-12-31 02:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140560', 'tblTempUsageDetail_20' ) start [2024-12-31 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140560', 'tblTempUsageDetail_20' ) end [2024-12-31 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140560', 'tblTempVendorCDR_20' ) start [2024-12-31 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140560', 'tblTempVendorCDR_20' ) end [2024-12-31 02:43:19] Production.INFO: ProcessCDR(1,14140560,1,1,2) [2024-12-31 02:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140560', 'tblTempUsageDetail_20' ) start [2024-12-31 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140560', 'tblTempUsageDetail_20' ) end [2024-12-31 02:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:43:22] Production.INFO: ==3655== Releasing lock... [2024-12-31 02:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:43:22] Production.INFO: 32.5 MB #Memory Used# [2024-12-31 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:44:05 [end_date_ymd] => 2024-12-31 02:44:05 [RateCDR] => 1 ) [2024-12-31 02:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:44:05' and `end` < '2024-12-31 02:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:44:18] Production.INFO: count ==472 [2024-12-31 02:44:19] Production.ERROR: pbx CDR StartTime 2024-12-30 23:44:05 - End Time 2024-12-31 02:44:05 [2024-12-31 02:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140565', 'tblTempUsageDetail_20' ) start [2024-12-31 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140565', 'tblTempUsageDetail_20' ) end [2024-12-31 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140565', 'tblTempVendorCDR_20' ) start [2024-12-31 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140565', 'tblTempVendorCDR_20' ) end [2024-12-31 02:44:19] Production.INFO: ProcessCDR(1,14140565,1,1,2) [2024-12-31 02:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140565', 'tblTempUsageDetail_20' ) start [2024-12-31 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140565', 'tblTempUsageDetail_20' ) end [2024-12-31 02:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:44:22] Production.INFO: ==3749== Releasing lock... [2024-12-31 02:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:44:22] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:45:05 [end_date_ymd] => 2024-12-31 02:45:05 [RateCDR] => 1 ) [2024-12-31 02:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:45:05' and `end` < '2024-12-31 02:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:45:17] Production.INFO: count ==472 [2024-12-31 02:45:17] Production.ERROR: pbx CDR StartTime 2024-12-30 23:45:05 - End Time 2024-12-31 02:45:05 [2024-12-31 02:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140570', 'tblTempUsageDetail_20' ) start [2024-12-31 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140570', 'tblTempUsageDetail_20' ) end [2024-12-31 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140570', 'tblTempVendorCDR_20' ) start [2024-12-31 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140570', 'tblTempVendorCDR_20' ) end [2024-12-31 02:45:17] Production.INFO: ProcessCDR(1,14140570,1,1,2) [2024-12-31 02:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140570', 'tblTempUsageDetail_20' ) start [2024-12-31 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140570', 'tblTempUsageDetail_20' ) end [2024-12-31 02:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:45:20] Production.INFO: ==3821== Releasing lock... [2024-12-31 02:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:45:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:46:05 [end_date_ymd] => 2024-12-31 02:46:05 [RateCDR] => 1 ) [2024-12-31 02:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:46:05' and `end` < '2024-12-31 02:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:46:18] Production.INFO: count ==472 [2024-12-31 02:46:18] Production.ERROR: pbx CDR StartTime 2024-12-30 23:46:05 - End Time 2024-12-31 02:46:05 [2024-12-31 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140575', 'tblTempUsageDetail_20' ) start [2024-12-31 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140575', 'tblTempUsageDetail_20' ) end [2024-12-31 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140575', 'tblTempVendorCDR_20' ) start [2024-12-31 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140575', 'tblTempVendorCDR_20' ) end [2024-12-31 02:46:18] Production.INFO: ProcessCDR(1,14140575,1,1,2) [2024-12-31 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140575', 'tblTempUsageDetail_20' ) start [2024-12-31 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140575', 'tblTempUsageDetail_20' ) end [2024-12-31 02:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:46:21] Production.INFO: ==3894== Releasing lock... [2024-12-31 02:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:46:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 02:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:47:04 [end_date_ymd] => 2024-12-31 02:47:04 [RateCDR] => 1 ) [2024-12-31 02:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:47:04' and `end` < '2024-12-31 02:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:47:17] Production.INFO: count ==471 [2024-12-31 02:47:17] Production.ERROR: pbx CDR StartTime 2024-12-30 23:47:04 - End Time 2024-12-31 02:47:04 [2024-12-31 02:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140580', 'tblTempUsageDetail_20' ) start [2024-12-31 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140580', 'tblTempUsageDetail_20' ) end [2024-12-31 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140580', 'tblTempVendorCDR_20' ) start [2024-12-31 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140580', 'tblTempVendorCDR_20' ) end [2024-12-31 02:47:17] Production.INFO: ProcessCDR(1,14140580,1,1,2) [2024-12-31 02:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140580', 'tblTempUsageDetail_20' ) start [2024-12-31 02:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140580', 'tblTempUsageDetail_20' ) end [2024-12-31 02:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:47:20] Production.INFO: ==3965== Releasing lock... [2024-12-31 02:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:47:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:48:05 [end_date_ymd] => 2024-12-31 02:48:05 [RateCDR] => 1 ) [2024-12-31 02:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:48:05' and `end` < '2024-12-31 02:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:48:17] Production.INFO: count ==471 [2024-12-31 02:48:17] Production.ERROR: pbx CDR StartTime 2024-12-30 23:48:05 - End Time 2024-12-31 02:48:05 [2024-12-31 02:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140585', 'tblTempUsageDetail_20' ) start [2024-12-31 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140585', 'tblTempUsageDetail_20' ) end [2024-12-31 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140585', 'tblTempVendorCDR_20' ) start [2024-12-31 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140585', 'tblTempVendorCDR_20' ) end [2024-12-31 02:48:17] Production.INFO: ProcessCDR(1,14140585,1,1,2) [2024-12-31 02:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140585', 'tblTempUsageDetail_20' ) start [2024-12-31 02:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140585', 'tblTempUsageDetail_20' ) end [2024-12-31 02:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:48:20] Production.INFO: ==4038== Releasing lock... [2024-12-31 02:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:48:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 02:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:49:04 [end_date_ymd] => 2024-12-31 02:49:04 [RateCDR] => 1 ) [2024-12-31 02:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:49:04' and `end` < '2024-12-31 02:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:49:16] Production.INFO: count ==470 [2024-12-31 02:49:16] Production.ERROR: pbx CDR StartTime 2024-12-30 23:49:04 - End Time 2024-12-31 02:49:04 [2024-12-31 02:49:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140590', 'tblTempUsageDetail_20' ) start [2024-12-31 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140590', 'tblTempUsageDetail_20' ) end [2024-12-31 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140590', 'tblTempVendorCDR_20' ) start [2024-12-31 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140590', 'tblTempVendorCDR_20' ) end [2024-12-31 02:49:17] Production.INFO: ProcessCDR(1,14140590,1,1,2) [2024-12-31 02:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:49:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:49:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140590', 'tblTempUsageDetail_20' ) start [2024-12-31 02:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140590', 'tblTempUsageDetail_20' ) end [2024-12-31 02:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:49:20] Production.INFO: ==4110== Releasing lock... [2024-12-31 02:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:49:20] Production.INFO: 32 MB #Memory Used# [2024-12-31 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:50:06 [end_date_ymd] => 2024-12-31 02:50:06 [RateCDR] => 1 ) [2024-12-31 02:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:50:06' and `end` < '2024-12-31 02:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:50:18] Production.INFO: count ==470 [2024-12-31 02:50:18] Production.ERROR: pbx CDR StartTime 2024-12-30 23:50:06 - End Time 2024-12-31 02:50:06 [2024-12-31 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140596', 'tblTempUsageDetail_20' ) start [2024-12-31 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140596', 'tblTempUsageDetail_20' ) end [2024-12-31 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140596', 'tblTempVendorCDR_20' ) start [2024-12-31 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140596', 'tblTempVendorCDR_20' ) end [2024-12-31 02:50:18] Production.INFO: ProcessCDR(1,14140596,1,1,2) [2024-12-31 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140596', 'tblTempUsageDetail_20' ) start [2024-12-31 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140596', 'tblTempUsageDetail_20' ) end [2024-12-31 02:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:50:21] Production.INFO: ==4186== Releasing lock... [2024-12-31 02:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:50:21] Production.INFO: 32 MB #Memory Used# [2024-12-31 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:51:05 [end_date_ymd] => 2024-12-31 02:51:05 [RateCDR] => 1 ) [2024-12-31 02:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:51:05' and `end` < '2024-12-31 02:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:51:18] Production.INFO: count ==470 [2024-12-31 02:51:18] Production.ERROR: pbx CDR StartTime 2024-12-30 23:51:05 - End Time 2024-12-31 02:51:05 [2024-12-31 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140601', 'tblTempUsageDetail_20' ) start [2024-12-31 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140601', 'tblTempUsageDetail_20' ) end [2024-12-31 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140601', 'tblTempVendorCDR_20' ) start [2024-12-31 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140601', 'tblTempVendorCDR_20' ) end [2024-12-31 02:51:18] Production.INFO: ProcessCDR(1,14140601,1,1,2) [2024-12-31 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140601', 'tblTempUsageDetail_20' ) start [2024-12-31 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140601', 'tblTempUsageDetail_20' ) end [2024-12-31 02:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:51:21] Production.INFO: ==4263== Releasing lock... [2024-12-31 02:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:51:21] Production.INFO: 32 MB #Memory Used# [2024-12-31 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:52:05 [end_date_ymd] => 2024-12-31 02:52:05 [RateCDR] => 1 ) [2024-12-31 02:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:52:05' and `end` < '2024-12-31 02:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:52:17] Production.INFO: count ==470 [2024-12-31 02:52:17] Production.ERROR: pbx CDR StartTime 2024-12-30 23:52:05 - End Time 2024-12-31 02:52:05 [2024-12-31 02:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140606', 'tblTempUsageDetail_20' ) start [2024-12-31 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140606', 'tblTempUsageDetail_20' ) end [2024-12-31 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140606', 'tblTempVendorCDR_20' ) start [2024-12-31 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140606', 'tblTempVendorCDR_20' ) end [2024-12-31 02:52:17] Production.INFO: ProcessCDR(1,14140606,1,1,2) [2024-12-31 02:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140606', 'tblTempUsageDetail_20' ) start [2024-12-31 02:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140606', 'tblTempUsageDetail_20' ) end [2024-12-31 02:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:52:20] Production.INFO: ==4338== Releasing lock... [2024-12-31 02:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:52:20] Production.INFO: 32 MB #Memory Used# [2024-12-31 02:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:53:04 [end_date_ymd] => 2024-12-31 02:53:04 [RateCDR] => 1 ) [2024-12-31 02:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:53:04' and `end` < '2024-12-31 02:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:53:17] Production.INFO: count ==470 [2024-12-31 02:53:18] Production.ERROR: pbx CDR StartTime 2024-12-30 23:53:04 - End Time 2024-12-31 02:53:04 [2024-12-31 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140610', 'tblTempUsageDetail_20' ) start [2024-12-31 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140610', 'tblTempUsageDetail_20' ) end [2024-12-31 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140610', 'tblTempVendorCDR_20' ) start [2024-12-31 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140610', 'tblTempVendorCDR_20' ) end [2024-12-31 02:53:18] Production.INFO: ProcessCDR(1,14140610,1,1,2) [2024-12-31 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140610', 'tblTempUsageDetail_20' ) start [2024-12-31 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140610', 'tblTempUsageDetail_20' ) end [2024-12-31 02:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:53:21] Production.INFO: ==4407== Releasing lock... [2024-12-31 02:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:53:21] Production.INFO: 32 MB #Memory Used# [2024-12-31 02:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:54:04 [end_date_ymd] => 2024-12-31 02:54:04 [RateCDR] => 1 ) [2024-12-31 02:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:54:04' and `end` < '2024-12-31 02:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:54:18] Production.INFO: count ==470 [2024-12-31 02:54:18] Production.ERROR: pbx CDR StartTime 2024-12-30 23:54:04 - End Time 2024-12-31 02:54:04 [2024-12-31 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140616', 'tblTempUsageDetail_20' ) start [2024-12-31 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140616', 'tblTempUsageDetail_20' ) end [2024-12-31 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140616', 'tblTempVendorCDR_20' ) start [2024-12-31 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140616', 'tblTempVendorCDR_20' ) end [2024-12-31 02:54:18] Production.INFO: ProcessCDR(1,14140616,1,1,2) [2024-12-31 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140616', 'tblTempUsageDetail_20' ) start [2024-12-31 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140616', 'tblTempUsageDetail_20' ) end [2024-12-31 02:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:54:22] Production.INFO: ==4478== Releasing lock... [2024-12-31 02:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:54:22] Production.INFO: 32 MB #Memory Used# [2024-12-31 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:55:05 [end_date_ymd] => 2024-12-31 02:55:05 [RateCDR] => 1 ) [2024-12-31 02:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:55:05' and `end` < '2024-12-31 02:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:55:18] Production.INFO: count ==469 [2024-12-31 02:55:18] Production.ERROR: pbx CDR StartTime 2024-12-30 23:55:05 - End Time 2024-12-31 02:55:05 [2024-12-31 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140621', 'tblTempUsageDetail_20' ) start [2024-12-31 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140621', 'tblTempUsageDetail_20' ) end [2024-12-31 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140621', 'tblTempVendorCDR_20' ) start [2024-12-31 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140621', 'tblTempVendorCDR_20' ) end [2024-12-31 02:55:18] Production.INFO: ProcessCDR(1,14140621,1,1,2) [2024-12-31 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140621', 'tblTempUsageDetail_20' ) start [2024-12-31 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140621', 'tblTempUsageDetail_20' ) end [2024-12-31 02:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:55:21] Production.INFO: ==4593== Releasing lock... [2024-12-31 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:55:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-31 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:56:05 [end_date_ymd] => 2024-12-31 02:56:05 [RateCDR] => 1 ) [2024-12-31 02:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:56:05' and `end` < '2024-12-31 02:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:56:17] Production.INFO: count ==469 [2024-12-31 02:56:17] Production.ERROR: pbx CDR StartTime 2024-12-30 23:56:05 - End Time 2024-12-31 02:56:05 [2024-12-31 02:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140626', 'tblTempUsageDetail_20' ) start [2024-12-31 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140626', 'tblTempUsageDetail_20' ) end [2024-12-31 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140626', 'tblTempVendorCDR_20' ) start [2024-12-31 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140626', 'tblTempVendorCDR_20' ) end [2024-12-31 02:56:17] Production.INFO: ProcessCDR(1,14140626,1,1,2) [2024-12-31 02:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140626', 'tblTempUsageDetail_20' ) start [2024-12-31 02:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140626', 'tblTempUsageDetail_20' ) end [2024-12-31 02:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:56:20] Production.INFO: ==4662== Releasing lock... [2024-12-31 02:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:56:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-31 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:57:05 [end_date_ymd] => 2024-12-31 02:57:05 [RateCDR] => 1 ) [2024-12-31 02:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:57:05' and `end` < '2024-12-31 02:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:57:17] Production.INFO: count ==469 [2024-12-31 02:57:18] Production.ERROR: pbx CDR StartTime 2024-12-30 23:57:05 - End Time 2024-12-31 02:57:05 [2024-12-31 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140631', 'tblTempUsageDetail_20' ) start [2024-12-31 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140631', 'tblTempUsageDetail_20' ) end [2024-12-31 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140631', 'tblTempVendorCDR_20' ) start [2024-12-31 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140631', 'tblTempVendorCDR_20' ) end [2024-12-31 02:57:18] Production.INFO: ProcessCDR(1,14140631,1,1,2) [2024-12-31 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140631', 'tblTempUsageDetail_20' ) start [2024-12-31 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140631', 'tblTempUsageDetail_20' ) end [2024-12-31 02:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:57:21] Production.INFO: ==4730== Releasing lock... [2024-12-31 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:57:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-31 02:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:58:04 [end_date_ymd] => 2024-12-31 02:58:04 [RateCDR] => 1 ) [2024-12-31 02:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:58:04' and `end` < '2024-12-31 02:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:58:17] Production.INFO: count ==469 [2024-12-31 02:58:17] Production.ERROR: pbx CDR StartTime 2024-12-30 23:58:04 - End Time 2024-12-31 02:58:04 [2024-12-31 02:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140636', 'tblTempUsageDetail_20' ) start [2024-12-31 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140636', 'tblTempUsageDetail_20' ) end [2024-12-31 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140636', 'tblTempVendorCDR_20' ) start [2024-12-31 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140636', 'tblTempVendorCDR_20' ) end [2024-12-31 02:58:17] Production.INFO: ProcessCDR(1,14140636,1,1,2) [2024-12-31 02:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140636', 'tblTempUsageDetail_20' ) start [2024-12-31 02:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140636', 'tblTempUsageDetail_20' ) end [2024-12-31 02:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:58:20] Production.INFO: ==4803== Releasing lock... [2024-12-31 02:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:58:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-31 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 23:59:05 [end_date_ymd] => 2024-12-31 02:59:05 [RateCDR] => 1 ) [2024-12-31 02:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 23:59:05' and `end` < '2024-12-31 02:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 02:59:19] Production.INFO: count ==467 [2024-12-31 02:59:19] Production.ERROR: pbx CDR StartTime 2024-12-30 23:59:05 - End Time 2024-12-31 02:59:05 [2024-12-31 02:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140641', 'tblTempUsageDetail_20' ) start [2024-12-31 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140641', 'tblTempUsageDetail_20' ) end [2024-12-31 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140641', 'tblTempVendorCDR_20' ) start [2024-12-31 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140641', 'tblTempVendorCDR_20' ) end [2024-12-31 02:59:19] Production.INFO: ProcessCDR(1,14140641,1,1,2) [2024-12-31 02:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 02:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140641', 'tblTempUsageDetail_20' ) start [2024-12-31 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140641', 'tblTempUsageDetail_20' ) end [2024-12-31 02:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 02:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 02:59:22] Production.INFO: ==4873== Releasing lock... [2024-12-31 02:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 02:59:22] Production.INFO: 32.5 MB #Memory Used# [2024-12-31 03:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:00:05 [end_date_ymd] => 2024-12-31 03:00:05 [RateCDR] => 1 ) [2024-12-31 03:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:00:05' and `end` < '2024-12-31 03:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:00:18] Production.INFO: count ==465 [2024-12-31 03:00:18] Production.ERROR: pbx CDR StartTime 2024-12-31 00:00:05 - End Time 2024-12-31 03:00:05 [2024-12-31 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140647', 'tblTempUsageDetail_20' ) start [2024-12-31 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140647', 'tblTempUsageDetail_20' ) end [2024-12-31 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140647', 'tblTempVendorCDR_20' ) start [2024-12-31 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140647', 'tblTempVendorCDR_20' ) end [2024-12-31 03:00:18] Production.INFO: ProcessCDR(1,14140647,1,1,2) [2024-12-31 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140647', 'tblTempUsageDetail_20' ) start [2024-12-31 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140647', 'tblTempUsageDetail_20' ) end [2024-12-31 03:00:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:00:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:00:23] Production.INFO: ==4944== Releasing lock... [2024-12-31 03:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:00:23] Production.INFO: 32 MB #Memory Used# [2024-12-31 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:01:05 [end_date_ymd] => 2024-12-31 03:01:05 [RateCDR] => 1 ) [2024-12-31 03:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:01:05' and `end` < '2024-12-31 03:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:01:19] Production.INFO: count ==463 [2024-12-31 03:01:19] Production.ERROR: pbx CDR StartTime 2024-12-31 00:01:05 - End Time 2024-12-31 03:01:05 [2024-12-31 03:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140652', 'tblTempUsageDetail_20' ) start [2024-12-31 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140652', 'tblTempUsageDetail_20' ) end [2024-12-31 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140652', 'tblTempVendorCDR_20' ) start [2024-12-31 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140652', 'tblTempVendorCDR_20' ) end [2024-12-31 03:01:19] Production.INFO: ProcessCDR(1,14140652,1,1,2) [2024-12-31 03:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140652', 'tblTempUsageDetail_20' ) start [2024-12-31 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140652', 'tblTempUsageDetail_20' ) end [2024-12-31 03:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:01:22] Production.INFO: ==5032== Releasing lock... [2024-12-31 03:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:01:22] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:02:05 [end_date_ymd] => 2024-12-31 03:02:05 [RateCDR] => 1 ) [2024-12-31 03:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:02:05' and `end` < '2024-12-31 03:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:02:17] Production.INFO: count ==462 [2024-12-31 03:02:17] Production.ERROR: pbx CDR StartTime 2024-12-31 00:02:05 - End Time 2024-12-31 03:02:05 [2024-12-31 03:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140657', 'tblTempUsageDetail_20' ) start [2024-12-31 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140657', 'tblTempUsageDetail_20' ) end [2024-12-31 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140657', 'tblTempVendorCDR_20' ) start [2024-12-31 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140657', 'tblTempVendorCDR_20' ) end [2024-12-31 03:02:18] Production.INFO: ProcessCDR(1,14140657,1,1,2) [2024-12-31 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140657', 'tblTempUsageDetail_20' ) start [2024-12-31 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140657', 'tblTempUsageDetail_20' ) end [2024-12-31 03:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:02:21] Production.INFO: ==5179== Releasing lock... [2024-12-31 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:02:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:03:05 [end_date_ymd] => 2024-12-31 03:03:05 [RateCDR] => 1 ) [2024-12-31 03:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:03:05' and `end` < '2024-12-31 03:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:03:18] Production.INFO: count ==462 [2024-12-31 03:03:18] Production.ERROR: pbx CDR StartTime 2024-12-31 00:03:05 - End Time 2024-12-31 03:03:05 [2024-12-31 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140662', 'tblTempUsageDetail_20' ) start [2024-12-31 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140662', 'tblTempUsageDetail_20' ) end [2024-12-31 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140662', 'tblTempVendorCDR_20' ) start [2024-12-31 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140662', 'tblTempVendorCDR_20' ) end [2024-12-31 03:03:18] Production.INFO: ProcessCDR(1,14140662,1,1,2) [2024-12-31 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140662', 'tblTempUsageDetail_20' ) start [2024-12-31 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140662', 'tblTempUsageDetail_20' ) end [2024-12-31 03:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:03:21] Production.INFO: ==5248== Releasing lock... [2024-12-31 03:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:03:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 03:04:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:04:06 [end_date_ymd] => 2024-12-31 03:04:06 [RateCDR] => 1 ) [2024-12-31 03:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:04:06' and `end` < '2024-12-31 03:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:04:19] Production.INFO: count ==462 [2024-12-31 03:04:19] Production.ERROR: pbx CDR StartTime 2024-12-31 00:04:06 - End Time 2024-12-31 03:04:06 [2024-12-31 03:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140667', 'tblTempUsageDetail_20' ) start [2024-12-31 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140667', 'tblTempUsageDetail_20' ) end [2024-12-31 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140667', 'tblTempVendorCDR_20' ) start [2024-12-31 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140667', 'tblTempVendorCDR_20' ) end [2024-12-31 03:04:19] Production.INFO: ProcessCDR(1,14140667,1,1,2) [2024-12-31 03:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140667', 'tblTempUsageDetail_20' ) start [2024-12-31 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140667', 'tblTempUsageDetail_20' ) end [2024-12-31 03:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:04:22] Production.INFO: ==5322== Releasing lock... [2024-12-31 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:04:22] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 03:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:05:04 [end_date_ymd] => 2024-12-31 03:05:04 [RateCDR] => 1 ) [2024-12-31 03:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:05:04' and `end` < '2024-12-31 03:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:05:17] Production.INFO: count ==462 [2024-12-31 03:05:17] Production.ERROR: pbx CDR StartTime 2024-12-31 00:05:04 - End Time 2024-12-31 03:05:04 [2024-12-31 03:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140672', 'tblTempUsageDetail_20' ) start [2024-12-31 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140672', 'tblTempUsageDetail_20' ) end [2024-12-31 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140672', 'tblTempVendorCDR_20' ) start [2024-12-31 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140672', 'tblTempVendorCDR_20' ) end [2024-12-31 03:05:17] Production.INFO: ProcessCDR(1,14140672,1,1,2) [2024-12-31 03:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140672', 'tblTempUsageDetail_20' ) start [2024-12-31 03:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140672', 'tblTempUsageDetail_20' ) end [2024-12-31 03:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:05:20] Production.INFO: ==5392== Releasing lock... [2024-12-31 03:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:05:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:06:05 [end_date_ymd] => 2024-12-31 03:06:05 [RateCDR] => 1 ) [2024-12-31 03:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:06:05' and `end` < '2024-12-31 03:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:06:18] Production.INFO: count ==462 [2024-12-31 03:06:18] Production.ERROR: pbx CDR StartTime 2024-12-31 00:06:05 - End Time 2024-12-31 03:06:05 [2024-12-31 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140677', 'tblTempUsageDetail_20' ) start [2024-12-31 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140677', 'tblTempUsageDetail_20' ) end [2024-12-31 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140677', 'tblTempVendorCDR_20' ) start [2024-12-31 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140677', 'tblTempVendorCDR_20' ) end [2024-12-31 03:06:18] Production.INFO: ProcessCDR(1,14140677,1,1,2) [2024-12-31 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140677', 'tblTempUsageDetail_20' ) start [2024-12-31 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140677', 'tblTempUsageDetail_20' ) end [2024-12-31 03:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:06:21] Production.INFO: ==5542== Releasing lock... [2024-12-31 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:06:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:07:05 [end_date_ymd] => 2024-12-31 03:07:05 [RateCDR] => 1 ) [2024-12-31 03:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:07:05' and `end` < '2024-12-31 03:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:07:17] Production.INFO: count ==462 [2024-12-31 03:07:17] Production.ERROR: pbx CDR StartTime 2024-12-31 00:07:05 - End Time 2024-12-31 03:07:05 [2024-12-31 03:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140682', 'tblTempUsageDetail_20' ) start [2024-12-31 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140682', 'tblTempUsageDetail_20' ) end [2024-12-31 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140682', 'tblTempVendorCDR_20' ) start [2024-12-31 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140682', 'tblTempVendorCDR_20' ) end [2024-12-31 03:07:17] Production.INFO: ProcessCDR(1,14140682,1,1,2) [2024-12-31 03:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140682', 'tblTempUsageDetail_20' ) start [2024-12-31 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140682', 'tblTempUsageDetail_20' ) end [2024-12-31 03:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:07:21] Production.INFO: ==5610== Releasing lock... [2024-12-31 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:07:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 03:08:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:08:06 [end_date_ymd] => 2024-12-31 03:08:06 [RateCDR] => 1 ) [2024-12-31 03:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:08:06' and `end` < '2024-12-31 03:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:08:19] Production.INFO: count ==462 [2024-12-31 03:08:19] Production.ERROR: pbx CDR StartTime 2024-12-31 00:08:06 - End Time 2024-12-31 03:08:06 [2024-12-31 03:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140687', 'tblTempUsageDetail_20' ) start [2024-12-31 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140687', 'tblTempUsageDetail_20' ) end [2024-12-31 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140687', 'tblTempVendorCDR_20' ) start [2024-12-31 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140687', 'tblTempVendorCDR_20' ) end [2024-12-31 03:08:19] Production.INFO: ProcessCDR(1,14140687,1,1,2) [2024-12-31 03:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140687', 'tblTempUsageDetail_20' ) start [2024-12-31 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140687', 'tblTempUsageDetail_20' ) end [2024-12-31 03:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:08:22] Production.INFO: ==5683== Releasing lock... [2024-12-31 03:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:08:22] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:09:05 [end_date_ymd] => 2024-12-31 03:09:05 [RateCDR] => 1 ) [2024-12-31 03:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:09:05' and `end` < '2024-12-31 03:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:09:17] Production.INFO: count ==461 [2024-12-31 03:09:17] Production.ERROR: pbx CDR StartTime 2024-12-31 00:09:05 - End Time 2024-12-31 03:09:05 [2024-12-31 03:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140692', 'tblTempUsageDetail_20' ) start [2024-12-31 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140692', 'tblTempUsageDetail_20' ) end [2024-12-31 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140692', 'tblTempVendorCDR_20' ) start [2024-12-31 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140692', 'tblTempVendorCDR_20' ) end [2024-12-31 03:09:17] Production.INFO: ProcessCDR(1,14140692,1,1,2) [2024-12-31 03:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140692', 'tblTempUsageDetail_20' ) start [2024-12-31 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140692', 'tblTempUsageDetail_20' ) end [2024-12-31 03:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:09:21] Production.INFO: ==5831== Releasing lock... [2024-12-31 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:09:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 03:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:10:05 [end_date_ymd] => 2024-12-31 03:10:05 [RateCDR] => 1 ) [2024-12-31 03:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:10:05' and `end` < '2024-12-31 03:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:10:18] Production.INFO: count ==453 [2024-12-31 03:10:18] Production.ERROR: pbx CDR StartTime 2024-12-31 00:10:05 - End Time 2024-12-31 03:10:05 [2024-12-31 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140697', 'tblTempUsageDetail_20' ) start [2024-12-31 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140697', 'tblTempUsageDetail_20' ) end [2024-12-31 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140697', 'tblTempVendorCDR_20' ) start [2024-12-31 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140697', 'tblTempVendorCDR_20' ) end [2024-12-31 03:10:18] Production.INFO: ProcessCDR(1,14140697,1,1,2) [2024-12-31 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140697', 'tblTempUsageDetail_20' ) start [2024-12-31 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140697', 'tblTempUsageDetail_20' ) end [2024-12-31 03:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:10:21] Production.INFO: ==5902== Releasing lock... [2024-12-31 03:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:10:21] Production.INFO: 32 MB #Memory Used# [2024-12-31 03:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:11:04 [end_date_ymd] => 2024-12-31 03:11:04 [RateCDR] => 1 ) [2024-12-31 03:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:11:04' and `end` < '2024-12-31 03:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:11:18] Production.INFO: count ==448 [2024-12-31 03:11:18] Production.ERROR: pbx CDR StartTime 2024-12-31 00:11:04 - End Time 2024-12-31 03:11:04 [2024-12-31 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140703', 'tblTempUsageDetail_20' ) start [2024-12-31 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140703', 'tblTempUsageDetail_20' ) end [2024-12-31 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140703', 'tblTempVendorCDR_20' ) start [2024-12-31 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140703', 'tblTempVendorCDR_20' ) end [2024-12-31 03:11:18] Production.INFO: ProcessCDR(1,14140703,1,1,2) [2024-12-31 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140703', 'tblTempUsageDetail_20' ) start [2024-12-31 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140703', 'tblTempUsageDetail_20' ) end [2024-12-31 03:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:11:21] Production.INFO: ==6018== Releasing lock... [2024-12-31 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:11:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:12:05 [end_date_ymd] => 2024-12-31 03:12:05 [RateCDR] => 1 ) [2024-12-31 03:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:12:05' and `end` < '2024-12-31 03:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:12:18] Production.INFO: count ==448 [2024-12-31 03:12:18] Production.ERROR: pbx CDR StartTime 2024-12-31 00:12:05 - End Time 2024-12-31 03:12:05 [2024-12-31 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140708', 'tblTempUsageDetail_20' ) start [2024-12-31 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140708', 'tblTempUsageDetail_20' ) end [2024-12-31 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140708', 'tblTempVendorCDR_20' ) start [2024-12-31 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140708', 'tblTempVendorCDR_20' ) end [2024-12-31 03:12:18] Production.INFO: ProcessCDR(1,14140708,1,1,2) [2024-12-31 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140708', 'tblTempUsageDetail_20' ) start [2024-12-31 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140708', 'tblTempUsageDetail_20' ) end [2024-12-31 03:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:12:21] Production.INFO: ==6090== Releasing lock... [2024-12-31 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:12:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 03:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:13:04 [end_date_ymd] => 2024-12-31 03:13:04 [RateCDR] => 1 ) [2024-12-31 03:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:13:04' and `end` < '2024-12-31 03:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:13:17] Production.INFO: count ==448 [2024-12-31 03:13:17] Production.ERROR: pbx CDR StartTime 2024-12-31 00:13:04 - End Time 2024-12-31 03:13:04 [2024-12-31 03:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140713', 'tblTempUsageDetail_20' ) start [2024-12-31 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140713', 'tblTempUsageDetail_20' ) end [2024-12-31 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140713', 'tblTempVendorCDR_20' ) start [2024-12-31 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140713', 'tblTempVendorCDR_20' ) end [2024-12-31 03:13:17] Production.INFO: ProcessCDR(1,14140713,1,1,2) [2024-12-31 03:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140713', 'tblTempUsageDetail_20' ) start [2024-12-31 03:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140713', 'tblTempUsageDetail_20' ) end [2024-12-31 03:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:13:20] Production.INFO: ==6238== Releasing lock... [2024-12-31 03:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:13:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:14:05 [end_date_ymd] => 2024-12-31 03:14:05 [RateCDR] => 1 ) [2024-12-31 03:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:14:05' and `end` < '2024-12-31 03:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:14:18] Production.INFO: count ==448 [2024-12-31 03:14:18] Production.ERROR: pbx CDR StartTime 2024-12-31 00:14:05 - End Time 2024-12-31 03:14:05 [2024-12-31 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140718', 'tblTempUsageDetail_20' ) start [2024-12-31 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140718', 'tblTempUsageDetail_20' ) end [2024-12-31 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140718', 'tblTempVendorCDR_20' ) start [2024-12-31 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140718', 'tblTempVendorCDR_20' ) end [2024-12-31 03:14:18] Production.INFO: ProcessCDR(1,14140718,1,1,2) [2024-12-31 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140718', 'tblTempUsageDetail_20' ) start [2024-12-31 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140718', 'tblTempUsageDetail_20' ) end [2024-12-31 03:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:14:21] Production.INFO: ==6309== Releasing lock... [2024-12-31 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:14:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 03:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:15:04 [end_date_ymd] => 2024-12-31 03:15:04 [RateCDR] => 1 ) [2024-12-31 03:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:15:04' and `end` < '2024-12-31 03:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:15:17] Production.INFO: count ==448 [2024-12-31 03:15:17] Production.ERROR: pbx CDR StartTime 2024-12-31 00:15:04 - End Time 2024-12-31 03:15:04 [2024-12-31 03:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140723', 'tblTempUsageDetail_20' ) start [2024-12-31 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140723', 'tblTempUsageDetail_20' ) end [2024-12-31 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140723', 'tblTempVendorCDR_20' ) start [2024-12-31 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140723', 'tblTempVendorCDR_20' ) end [2024-12-31 03:15:17] Production.INFO: ProcessCDR(1,14140723,1,1,2) [2024-12-31 03:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140723', 'tblTempUsageDetail_20' ) start [2024-12-31 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140723', 'tblTempUsageDetail_20' ) end [2024-12-31 03:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:15:20] Production.INFO: ==6379== Releasing lock... [2024-12-31 03:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:15:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:16:05 [end_date_ymd] => 2024-12-31 03:16:05 [RateCDR] => 1 ) [2024-12-31 03:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:16:05' and `end` < '2024-12-31 03:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:16:18] Production.INFO: count ==448 [2024-12-31 03:16:18] Production.ERROR: pbx CDR StartTime 2024-12-31 00:16:05 - End Time 2024-12-31 03:16:05 [2024-12-31 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140728', 'tblTempUsageDetail_20' ) start [2024-12-31 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140728', 'tblTempUsageDetail_20' ) end [2024-12-31 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140728', 'tblTempVendorCDR_20' ) start [2024-12-31 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140728', 'tblTempVendorCDR_20' ) end [2024-12-31 03:16:18] Production.INFO: ProcessCDR(1,14140728,1,1,2) [2024-12-31 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140728', 'tblTempUsageDetail_20' ) start [2024-12-31 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140728', 'tblTempUsageDetail_20' ) end [2024-12-31 03:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:16:21] Production.INFO: ==6450== Releasing lock... [2024-12-31 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:16:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:17:05 [end_date_ymd] => 2024-12-31 03:17:05 [RateCDR] => 1 ) [2024-12-31 03:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:17:05' and `end` < '2024-12-31 03:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:17:18] Production.INFO: count ==445 [2024-12-31 03:17:18] Production.ERROR: pbx CDR StartTime 2024-12-31 00:17:05 - End Time 2024-12-31 03:17:05 [2024-12-31 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140733', 'tblTempUsageDetail_20' ) start [2024-12-31 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140733', 'tblTempUsageDetail_20' ) end [2024-12-31 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140733', 'tblTempVendorCDR_20' ) start [2024-12-31 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140733', 'tblTempVendorCDR_20' ) end [2024-12-31 03:17:18] Production.INFO: ProcessCDR(1,14140733,1,1,2) [2024-12-31 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140733', 'tblTempUsageDetail_20' ) start [2024-12-31 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140733', 'tblTempUsageDetail_20' ) end [2024-12-31 03:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:17:21] Production.INFO: ==6603== Releasing lock... [2024-12-31 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:17:21] Production.INFO: 32 MB #Memory Used# [2024-12-31 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:18:05 [end_date_ymd] => 2024-12-31 03:18:05 [RateCDR] => 1 ) [2024-12-31 03:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:18:05' and `end` < '2024-12-31 03:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:18:18] Production.INFO: count ==445 [2024-12-31 03:18:18] Production.ERROR: pbx CDR StartTime 2024-12-31 00:18:05 - End Time 2024-12-31 03:18:05 [2024-12-31 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140738', 'tblTempUsageDetail_20' ) start [2024-12-31 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140738', 'tblTempUsageDetail_20' ) end [2024-12-31 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140738', 'tblTempVendorCDR_20' ) start [2024-12-31 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140738', 'tblTempVendorCDR_20' ) end [2024-12-31 03:18:18] Production.INFO: ProcessCDR(1,14140738,1,1,2) [2024-12-31 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140738', 'tblTempUsageDetail_20' ) start [2024-12-31 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140738', 'tblTempUsageDetail_20' ) end [2024-12-31 03:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:18:21] Production.INFO: ==6676== Releasing lock... [2024-12-31 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:18:21] Production.INFO: 32 MB #Memory Used# [2024-12-31 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:19:05 [end_date_ymd] => 2024-12-31 03:19:05 [RateCDR] => 1 ) [2024-12-31 03:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:19:05' and `end` < '2024-12-31 03:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:19:17] Production.INFO: count ==445 [2024-12-31 03:19:17] Production.ERROR: pbx CDR StartTime 2024-12-31 00:19:05 - End Time 2024-12-31 03:19:05 [2024-12-31 03:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140743', 'tblTempUsageDetail_20' ) start [2024-12-31 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140743', 'tblTempUsageDetail_20' ) end [2024-12-31 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140743', 'tblTempVendorCDR_20' ) start [2024-12-31 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140743', 'tblTempVendorCDR_20' ) end [2024-12-31 03:19:17] Production.INFO: ProcessCDR(1,14140743,1,1,2) [2024-12-31 03:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140743', 'tblTempUsageDetail_20' ) start [2024-12-31 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140743', 'tblTempUsageDetail_20' ) end [2024-12-31 03:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:19:20] Production.INFO: ==6748== Releasing lock... [2024-12-31 03:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:19:20] Production.INFO: 32 MB #Memory Used# [2024-12-31 03:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:20:05 [end_date_ymd] => 2024-12-31 03:20:05 [RateCDR] => 1 ) [2024-12-31 03:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:20:05' and `end` < '2024-12-31 03:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:20:18] Production.INFO: count ==439 [2024-12-31 03:20:18] Production.ERROR: pbx CDR StartTime 2024-12-31 00:20:05 - End Time 2024-12-31 03:20:05 [2024-12-31 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140749', 'tblTempUsageDetail_20' ) start [2024-12-31 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140749', 'tblTempUsageDetail_20' ) end [2024-12-31 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140749', 'tblTempVendorCDR_20' ) start [2024-12-31 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140749', 'tblTempVendorCDR_20' ) end [2024-12-31 03:20:18] Production.INFO: ProcessCDR(1,14140749,1,1,2) [2024-12-31 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140749', 'tblTempUsageDetail_20' ) start [2024-12-31 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140749', 'tblTempUsageDetail_20' ) end [2024-12-31 03:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:20:21] Production.INFO: ==6826== Releasing lock... [2024-12-31 03:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:20:21] Production.INFO: 32 MB #Memory Used# [2024-12-31 03:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:21:04 [end_date_ymd] => 2024-12-31 03:21:04 [RateCDR] => 1 ) [2024-12-31 03:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:21:04' and `end` < '2024-12-31 03:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:21:17] Production.INFO: count ==419 [2024-12-31 03:21:17] Production.ERROR: pbx CDR StartTime 2024-12-31 00:21:04 - End Time 2024-12-31 03:21:04 [2024-12-31 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140754', 'tblTempUsageDetail_20' ) start [2024-12-31 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140754', 'tblTempUsageDetail_20' ) end [2024-12-31 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140754', 'tblTempVendorCDR_20' ) start [2024-12-31 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140754', 'tblTempVendorCDR_20' ) end [2024-12-31 03:21:17] Production.INFO: ProcessCDR(1,14140754,1,1,2) [2024-12-31 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140754', 'tblTempUsageDetail_20' ) start [2024-12-31 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140754', 'tblTempUsageDetail_20' ) end [2024-12-31 03:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:21:20] Production.INFO: ==6899== Releasing lock... [2024-12-31 03:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:21:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:22:05 [end_date_ymd] => 2024-12-31 03:22:05 [RateCDR] => 1 ) [2024-12-31 03:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:22:05' and `end` < '2024-12-31 03:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:22:17] Production.INFO: count ==418 [2024-12-31 03:22:17] Production.ERROR: pbx CDR StartTime 2024-12-31 00:22:05 - End Time 2024-12-31 03:22:05 [2024-12-31 03:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140759', 'tblTempUsageDetail_20' ) start [2024-12-31 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140759', 'tblTempUsageDetail_20' ) end [2024-12-31 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140759', 'tblTempVendorCDR_20' ) start [2024-12-31 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140759', 'tblTempVendorCDR_20' ) end [2024-12-31 03:22:17] Production.INFO: ProcessCDR(1,14140759,1,1,2) [2024-12-31 03:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140759', 'tblTempUsageDetail_20' ) start [2024-12-31 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140759', 'tblTempUsageDetail_20' ) end [2024-12-31 03:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:22:21] Production.INFO: ==6969== Releasing lock... [2024-12-31 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:22:21] Production.INFO: 32 MB #Memory Used# [2024-12-31 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:23:05 [end_date_ymd] => 2024-12-31 03:23:05 [RateCDR] => 1 ) [2024-12-31 03:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:23:05' and `end` < '2024-12-31 03:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:23:18] Production.INFO: count ==418 [2024-12-31 03:23:18] Production.ERROR: pbx CDR StartTime 2024-12-31 00:23:05 - End Time 2024-12-31 03:23:05 [2024-12-31 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140764', 'tblTempUsageDetail_20' ) start [2024-12-31 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140764', 'tblTempUsageDetail_20' ) end [2024-12-31 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140764', 'tblTempVendorCDR_20' ) start [2024-12-31 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140764', 'tblTempVendorCDR_20' ) end [2024-12-31 03:23:18] Production.INFO: ProcessCDR(1,14140764,1,1,2) [2024-12-31 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140764', 'tblTempUsageDetail_20' ) start [2024-12-31 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140764', 'tblTempUsageDetail_20' ) end [2024-12-31 03:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:23:21] Production.INFO: ==7044== Releasing lock... [2024-12-31 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:23:21] Production.INFO: 32 MB #Memory Used# [2024-12-31 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:24:05 [end_date_ymd] => 2024-12-31 03:24:05 [RateCDR] => 1 ) [2024-12-31 03:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:24:05' and `end` < '2024-12-31 03:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:24:17] Production.INFO: count ==418 [2024-12-31 03:24:17] Production.ERROR: pbx CDR StartTime 2024-12-31 00:24:05 - End Time 2024-12-31 03:24:05 [2024-12-31 03:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140769', 'tblTempUsageDetail_20' ) start [2024-12-31 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140769', 'tblTempUsageDetail_20' ) end [2024-12-31 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140769', 'tblTempVendorCDR_20' ) start [2024-12-31 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140769', 'tblTempVendorCDR_20' ) end [2024-12-31 03:24:17] Production.INFO: ProcessCDR(1,14140769,1,1,2) [2024-12-31 03:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140769', 'tblTempUsageDetail_20' ) start [2024-12-31 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140769', 'tblTempUsageDetail_20' ) end [2024-12-31 03:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:24:20] Production.INFO: ==7120== Releasing lock... [2024-12-31 03:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:24:20] Production.INFO: 32 MB #Memory Used# [2024-12-31 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:25:05 [end_date_ymd] => 2024-12-31 03:25:05 [RateCDR] => 1 ) [2024-12-31 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:25:05' and `end` < '2024-12-31 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:25:18] Production.INFO: count ==418 [2024-12-31 03:25:18] Production.ERROR: pbx CDR StartTime 2024-12-31 00:25:05 - End Time 2024-12-31 03:25:05 [2024-12-31 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140774', 'tblTempUsageDetail_20' ) start [2024-12-31 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140774', 'tblTempUsageDetail_20' ) end [2024-12-31 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140774', 'tblTempVendorCDR_20' ) start [2024-12-31 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140774', 'tblTempVendorCDR_20' ) end [2024-12-31 03:25:18] Production.INFO: ProcessCDR(1,14140774,1,1,2) [2024-12-31 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140774', 'tblTempUsageDetail_20' ) start [2024-12-31 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140774', 'tblTempUsageDetail_20' ) end [2024-12-31 03:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:25:21] Production.INFO: ==7191== Releasing lock... [2024-12-31 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:25:21] Production.INFO: 32 MB #Memory Used# [2024-12-31 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:26:05 [end_date_ymd] => 2024-12-31 03:26:05 [RateCDR] => 1 ) [2024-12-31 03:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:26:05' and `end` < '2024-12-31 03:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:26:18] Production.INFO: count ==418 [2024-12-31 03:26:18] Production.ERROR: pbx CDR StartTime 2024-12-31 00:26:05 - End Time 2024-12-31 03:26:05 [2024-12-31 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140779', 'tblTempUsageDetail_20' ) start [2024-12-31 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140779', 'tblTempUsageDetail_20' ) end [2024-12-31 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140779', 'tblTempVendorCDR_20' ) start [2024-12-31 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140779', 'tblTempVendorCDR_20' ) end [2024-12-31 03:26:18] Production.INFO: ProcessCDR(1,14140779,1,1,2) [2024-12-31 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140779', 'tblTempUsageDetail_20' ) start [2024-12-31 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140779', 'tblTempUsageDetail_20' ) end [2024-12-31 03:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:26:21] Production.INFO: ==7261== Releasing lock... [2024-12-31 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:26:21] Production.INFO: 32 MB #Memory Used# [2024-12-31 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:27:05 [end_date_ymd] => 2024-12-31 03:27:05 [RateCDR] => 1 ) [2024-12-31 03:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:27:05' and `end` < '2024-12-31 03:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:27:17] Production.INFO: count ==418 [2024-12-31 03:27:17] Production.ERROR: pbx CDR StartTime 2024-12-31 00:27:05 - End Time 2024-12-31 03:27:05 [2024-12-31 03:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140784', 'tblTempUsageDetail_20' ) start [2024-12-31 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140784', 'tblTempUsageDetail_20' ) end [2024-12-31 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140784', 'tblTempVendorCDR_20' ) start [2024-12-31 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140784', 'tblTempVendorCDR_20' ) end [2024-12-31 03:27:17] Production.INFO: ProcessCDR(1,14140784,1,1,2) [2024-12-31 03:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140784', 'tblTempUsageDetail_20' ) start [2024-12-31 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140784', 'tblTempUsageDetail_20' ) end [2024-12-31 03:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:27:20] Production.INFO: ==7333== Releasing lock... [2024-12-31 03:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:27:20] Production.INFO: 32 MB #Memory Used# [2024-12-31 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:28:05 [end_date_ymd] => 2024-12-31 03:28:05 [RateCDR] => 1 ) [2024-12-31 03:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:28:05' and `end` < '2024-12-31 03:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:28:18] Production.INFO: count ==418 [2024-12-31 03:28:18] Production.ERROR: pbx CDR StartTime 2024-12-31 00:28:05 - End Time 2024-12-31 03:28:05 [2024-12-31 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140789', 'tblTempUsageDetail_20' ) start [2024-12-31 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140789', 'tblTempUsageDetail_20' ) end [2024-12-31 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140789', 'tblTempVendorCDR_20' ) start [2024-12-31 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140789', 'tblTempVendorCDR_20' ) end [2024-12-31 03:28:18] Production.INFO: ProcessCDR(1,14140789,1,1,2) [2024-12-31 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140789', 'tblTempUsageDetail_20' ) start [2024-12-31 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140789', 'tblTempUsageDetail_20' ) end [2024-12-31 03:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:28:21] Production.INFO: ==7442== Releasing lock... [2024-12-31 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:28:21] Production.INFO: 32 MB #Memory Used# [2024-12-31 03:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:29:04 [end_date_ymd] => 2024-12-31 03:29:04 [RateCDR] => 1 ) [2024-12-31 03:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:29:04' and `end` < '2024-12-31 03:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:29:18] Production.INFO: count ==418 [2024-12-31 03:29:18] Production.ERROR: pbx CDR StartTime 2024-12-31 00:29:04 - End Time 2024-12-31 03:29:04 [2024-12-31 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140794', 'tblTempUsageDetail_20' ) start [2024-12-31 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140794', 'tblTempUsageDetail_20' ) end [2024-12-31 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140794', 'tblTempVendorCDR_20' ) start [2024-12-31 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140794', 'tblTempVendorCDR_20' ) end [2024-12-31 03:29:18] Production.INFO: ProcessCDR(1,14140794,1,1,2) [2024-12-31 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140794', 'tblTempUsageDetail_20' ) start [2024-12-31 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140794', 'tblTempUsageDetail_20' ) end [2024-12-31 03:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:29:21] Production.INFO: ==7514== Releasing lock... [2024-12-31 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:29:21] Production.INFO: 32 MB #Memory Used# [2024-12-31 03:30:07] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:30:07 [end_date_ymd] => 2024-12-31 03:30:07 [RateCDR] => 1 ) [2024-12-31 03:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:30:07' and `end` < '2024-12-31 03:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:30:19] Production.INFO: count ==408 [2024-12-31 03:30:19] Production.ERROR: pbx CDR StartTime 2024-12-31 00:30:07 - End Time 2024-12-31 03:30:07 [2024-12-31 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140800', 'tblTempUsageDetail_20' ) start [2024-12-31 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140800', 'tblTempUsageDetail_20' ) end [2024-12-31 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140800', 'tblTempVendorCDR_20' ) start [2024-12-31 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140800', 'tblTempVendorCDR_20' ) end [2024-12-31 03:30:19] Production.INFO: ProcessCDR(1,14140800,1,1,2) [2024-12-31 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140800', 'tblTempUsageDetail_20' ) start [2024-12-31 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140800', 'tblTempUsageDetail_20' ) end [2024-12-31 03:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:30:22] Production.INFO: ==7591== Releasing lock... [2024-12-31 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:30:22] Production.INFO: 31.5 MB #Memory Used# [2024-12-31 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:31:05 [end_date_ymd] => 2024-12-31 03:31:05 [RateCDR] => 1 ) [2024-12-31 03:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:31:05' and `end` < '2024-12-31 03:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:31:17] Production.INFO: count ==389 [2024-12-31 03:31:17] Production.ERROR: pbx CDR StartTime 2024-12-31 00:31:05 - End Time 2024-12-31 03:31:05 [2024-12-31 03:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140805', 'tblTempUsageDetail_20' ) start [2024-12-31 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140805', 'tblTempUsageDetail_20' ) end [2024-12-31 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140805', 'tblTempVendorCDR_20' ) start [2024-12-31 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140805', 'tblTempVendorCDR_20' ) end [2024-12-31 03:31:17] Production.INFO: ProcessCDR(1,14140805,1,1,2) [2024-12-31 03:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140805', 'tblTempUsageDetail_20' ) start [2024-12-31 03:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140805', 'tblTempUsageDetail_20' ) end [2024-12-31 03:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:31:20] Production.INFO: ==7661== Releasing lock... [2024-12-31 03:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:31:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-31 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:32:05 [end_date_ymd] => 2024-12-31 03:32:05 [RateCDR] => 1 ) [2024-12-31 03:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:32:05' and `end` < '2024-12-31 03:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:32:18] Production.INFO: count ==389 [2024-12-31 03:32:19] Production.ERROR: pbx CDR StartTime 2024-12-31 00:32:05 - End Time 2024-12-31 03:32:05 [2024-12-31 03:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140810', 'tblTempUsageDetail_20' ) start [2024-12-31 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140810', 'tblTempUsageDetail_20' ) end [2024-12-31 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140810', 'tblTempVendorCDR_20' ) start [2024-12-31 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140810', 'tblTempVendorCDR_20' ) end [2024-12-31 03:32:19] Production.INFO: ProcessCDR(1,14140810,1,1,2) [2024-12-31 03:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140810', 'tblTempUsageDetail_20' ) start [2024-12-31 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140810', 'tblTempUsageDetail_20' ) end [2024-12-31 03:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:32:22] Production.INFO: ==7733== Releasing lock... [2024-12-31 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:32:22] Production.INFO: 31.5 MB #Memory Used# [2024-12-31 03:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:33:04 [end_date_ymd] => 2024-12-31 03:33:04 [RateCDR] => 1 ) [2024-12-31 03:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:33:04' and `end` < '2024-12-31 03:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:33:17] Production.INFO: count ==387 [2024-12-31 03:33:18] Production.ERROR: pbx CDR StartTime 2024-12-31 00:33:04 - End Time 2024-12-31 03:33:04 [2024-12-31 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140815', 'tblTempUsageDetail_20' ) start [2024-12-31 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140815', 'tblTempUsageDetail_20' ) end [2024-12-31 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140815', 'tblTempVendorCDR_20' ) start [2024-12-31 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140815', 'tblTempVendorCDR_20' ) end [2024-12-31 03:33:18] Production.INFO: ProcessCDR(1,14140815,1,1,2) [2024-12-31 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140815', 'tblTempUsageDetail_20' ) start [2024-12-31 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140815', 'tblTempUsageDetail_20' ) end [2024-12-31 03:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:33:21] Production.INFO: ==7814== Releasing lock... [2024-12-31 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:33:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-31 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:34:05 [end_date_ymd] => 2024-12-31 03:34:05 [RateCDR] => 1 ) [2024-12-31 03:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:34:05' and `end` < '2024-12-31 03:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:34:18] Production.INFO: count ==384 [2024-12-31 03:34:18] Production.ERROR: pbx CDR StartTime 2024-12-31 00:34:05 - End Time 2024-12-31 03:34:05 [2024-12-31 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140820', 'tblTempUsageDetail_20' ) start [2024-12-31 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140820', 'tblTempUsageDetail_20' ) end [2024-12-31 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140820', 'tblTempVendorCDR_20' ) start [2024-12-31 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140820', 'tblTempVendorCDR_20' ) end [2024-12-31 03:34:18] Production.INFO: ProcessCDR(1,14140820,1,1,2) [2024-12-31 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140820', 'tblTempUsageDetail_20' ) start [2024-12-31 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140820', 'tblTempUsageDetail_20' ) end [2024-12-31 03:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:34:21] Production.INFO: ==7909== Releasing lock... [2024-12-31 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:34:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-31 03:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:35:04 [end_date_ymd] => 2024-12-31 03:35:04 [RateCDR] => 1 ) [2024-12-31 03:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:35:04' and `end` < '2024-12-31 03:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:35:17] Production.INFO: count ==384 [2024-12-31 03:35:17] Production.ERROR: pbx CDR StartTime 2024-12-31 00:35:04 - End Time 2024-12-31 03:35:04 [2024-12-31 03:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140825', 'tblTempUsageDetail_20' ) start [2024-12-31 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140825', 'tblTempUsageDetail_20' ) end [2024-12-31 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140825', 'tblTempVendorCDR_20' ) start [2024-12-31 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140825', 'tblTempVendorCDR_20' ) end [2024-12-31 03:35:17] Production.INFO: ProcessCDR(1,14140825,1,1,2) [2024-12-31 03:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140825', 'tblTempUsageDetail_20' ) start [2024-12-31 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140825', 'tblTempUsageDetail_20' ) end [2024-12-31 03:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:35:20] Production.INFO: ==7977== Releasing lock... [2024-12-31 03:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:35:20] Production.INFO: 31.75 MB #Memory Used# [2024-12-31 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:36:05 [end_date_ymd] => 2024-12-31 03:36:05 [RateCDR] => 1 ) [2024-12-31 03:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:36:05' and `end` < '2024-12-31 03:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:36:17] Production.INFO: count ==383 [2024-12-31 03:36:17] Production.ERROR: pbx CDR StartTime 2024-12-31 00:36:05 - End Time 2024-12-31 03:36:05 [2024-12-31 03:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140830', 'tblTempUsageDetail_20' ) start [2024-12-31 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140830', 'tblTempUsageDetail_20' ) end [2024-12-31 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140830', 'tblTempVendorCDR_20' ) start [2024-12-31 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140830', 'tblTempVendorCDR_20' ) end [2024-12-31 03:36:17] Production.INFO: ProcessCDR(1,14140830,1,1,2) [2024-12-31 03:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140830', 'tblTempUsageDetail_20' ) start [2024-12-31 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140830', 'tblTempUsageDetail_20' ) end [2024-12-31 03:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:36:21] Production.INFO: ==8046== Releasing lock... [2024-12-31 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:36:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-31 03:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:37:04 [end_date_ymd] => 2024-12-31 03:37:04 [RateCDR] => 1 ) [2024-12-31 03:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:37:04' and `end` < '2024-12-31 03:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:37:17] Production.INFO: count ==383 [2024-12-31 03:37:17] Production.ERROR: pbx CDR StartTime 2024-12-31 00:37:04 - End Time 2024-12-31 03:37:04 [2024-12-31 03:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140835', 'tblTempUsageDetail_20' ) start [2024-12-31 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140835', 'tblTempUsageDetail_20' ) end [2024-12-31 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140835', 'tblTempVendorCDR_20' ) start [2024-12-31 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140835', 'tblTempVendorCDR_20' ) end [2024-12-31 03:37:17] Production.INFO: ProcessCDR(1,14140835,1,1,2) [2024-12-31 03:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140835', 'tblTempUsageDetail_20' ) start [2024-12-31 03:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140835', 'tblTempUsageDetail_20' ) end [2024-12-31 03:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:37:20] Production.INFO: ==8118== Releasing lock... [2024-12-31 03:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:37:20] Production.INFO: 31.75 MB #Memory Used# [2024-12-31 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:38:05 [end_date_ymd] => 2024-12-31 03:38:05 [RateCDR] => 1 ) [2024-12-31 03:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:38:05' and `end` < '2024-12-31 03:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:38:19] Production.INFO: count ==382 [2024-12-31 03:38:19] Production.ERROR: pbx CDR StartTime 2024-12-31 00:38:05 - End Time 2024-12-31 03:38:05 [2024-12-31 03:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140840', 'tblTempUsageDetail_20' ) start [2024-12-31 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140840', 'tblTempUsageDetail_20' ) end [2024-12-31 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140840', 'tblTempVendorCDR_20' ) start [2024-12-31 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140840', 'tblTempVendorCDR_20' ) end [2024-12-31 03:38:19] Production.INFO: ProcessCDR(1,14140840,1,1,2) [2024-12-31 03:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140840', 'tblTempUsageDetail_20' ) start [2024-12-31 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140840', 'tblTempUsageDetail_20' ) end [2024-12-31 03:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:38:22] Production.INFO: ==8187== Releasing lock... [2024-12-31 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:38:22] Production.INFO: 31.5 MB #Memory Used# [2024-12-31 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:39:05 [end_date_ymd] => 2024-12-31 03:39:05 [RateCDR] => 1 ) [2024-12-31 03:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:39:05' and `end` < '2024-12-31 03:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:39:18] Production.INFO: count ==379 [2024-12-31 03:39:19] Production.ERROR: pbx CDR StartTime 2024-12-31 00:39:05 - End Time 2024-12-31 03:39:05 [2024-12-31 03:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140845', 'tblTempUsageDetail_20' ) start [2024-12-31 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140845', 'tblTempUsageDetail_20' ) end [2024-12-31 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140845', 'tblTempVendorCDR_20' ) start [2024-12-31 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140845', 'tblTempVendorCDR_20' ) end [2024-12-31 03:39:19] Production.INFO: ProcessCDR(1,14140845,1,1,2) [2024-12-31 03:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140845', 'tblTempUsageDetail_20' ) start [2024-12-31 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140845', 'tblTempUsageDetail_20' ) end [2024-12-31 03:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:39:22] Production.INFO: ==8269== Releasing lock... [2024-12-31 03:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:39:22] Production.INFO: 31.25 MB #Memory Used# [2024-12-31 03:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:40:05 [end_date_ymd] => 2024-12-31 03:40:05 [RateCDR] => 1 ) [2024-12-31 03:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:40:05' and `end` < '2024-12-31 03:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:40:18] Production.INFO: count ==373 [2024-12-31 03:40:18] Production.ERROR: pbx CDR StartTime 2024-12-31 00:40:05 - End Time 2024-12-31 03:40:05 [2024-12-31 03:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140850', 'tblTempUsageDetail_20' ) start [2024-12-31 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140850', 'tblTempUsageDetail_20' ) end [2024-12-31 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140850', 'tblTempVendorCDR_20' ) start [2024-12-31 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140850', 'tblTempVendorCDR_20' ) end [2024-12-31 03:40:18] Production.INFO: ProcessCDR(1,14140850,1,1,2) [2024-12-31 03:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140850', 'tblTempUsageDetail_20' ) start [2024-12-31 03:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140850', 'tblTempUsageDetail_20' ) end [2024-12-31 03:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:40:21] Production.INFO: ==8342== Releasing lock... [2024-12-31 03:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:40:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-31 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:41:05 [end_date_ymd] => 2024-12-31 03:41:05 [RateCDR] => 1 ) [2024-12-31 03:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:41:05' and `end` < '2024-12-31 03:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:41:18] Production.INFO: count ==356 [2024-12-31 03:41:18] Production.ERROR: pbx CDR StartTime 2024-12-31 00:41:05 - End Time 2024-12-31 03:41:05 [2024-12-31 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140856', 'tblTempUsageDetail_20' ) start [2024-12-31 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140856', 'tblTempUsageDetail_20' ) end [2024-12-31 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140856', 'tblTempVendorCDR_20' ) start [2024-12-31 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140856', 'tblTempVendorCDR_20' ) end [2024-12-31 03:41:18] Production.INFO: ProcessCDR(1,14140856,1,1,2) [2024-12-31 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140856', 'tblTempUsageDetail_20' ) start [2024-12-31 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140856', 'tblTempUsageDetail_20' ) end [2024-12-31 03:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:41:21] Production.INFO: ==8413== Releasing lock... [2024-12-31 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:41:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-31 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:42:05 [end_date_ymd] => 2024-12-31 03:42:05 [RateCDR] => 1 ) [2024-12-31 03:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:42:05' and `end` < '2024-12-31 03:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:42:18] Production.INFO: count ==352 [2024-12-31 03:42:18] Production.ERROR: pbx CDR StartTime 2024-12-31 00:42:05 - End Time 2024-12-31 03:42:05 [2024-12-31 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140861', 'tblTempUsageDetail_20' ) start [2024-12-31 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140861', 'tblTempUsageDetail_20' ) end [2024-12-31 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140861', 'tblTempVendorCDR_20' ) start [2024-12-31 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140861', 'tblTempVendorCDR_20' ) end [2024-12-31 03:42:18] Production.INFO: ProcessCDR(1,14140861,1,1,2) [2024-12-31 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140861', 'tblTempUsageDetail_20' ) start [2024-12-31 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140861', 'tblTempUsageDetail_20' ) end [2024-12-31 03:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:42:21] Production.INFO: ==8484== Releasing lock... [2024-12-31 03:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:42:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-31 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:43:05 [end_date_ymd] => 2024-12-31 03:43:05 [RateCDR] => 1 ) [2024-12-31 03:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:43:05' and `end` < '2024-12-31 03:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:43:17] Production.INFO: count ==352 [2024-12-31 03:43:17] Production.ERROR: pbx CDR StartTime 2024-12-31 00:43:05 - End Time 2024-12-31 03:43:05 [2024-12-31 03:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140866', 'tblTempUsageDetail_20' ) start [2024-12-31 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140866', 'tblTempUsageDetail_20' ) end [2024-12-31 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140866', 'tblTempVendorCDR_20' ) start [2024-12-31 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140866', 'tblTempVendorCDR_20' ) end [2024-12-31 03:43:17] Production.INFO: ProcessCDR(1,14140866,1,1,2) [2024-12-31 03:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140866', 'tblTempUsageDetail_20' ) start [2024-12-31 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140866', 'tblTempUsageDetail_20' ) end [2024-12-31 03:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:43:21] Production.INFO: ==8559== Releasing lock... [2024-12-31 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:43:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-31 03:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:44:04 [end_date_ymd] => 2024-12-31 03:44:04 [RateCDR] => 1 ) [2024-12-31 03:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:44:04' and `end` < '2024-12-31 03:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:44:18] Production.INFO: count ==352 [2024-12-31 03:44:18] Production.ERROR: pbx CDR StartTime 2024-12-31 00:44:04 - End Time 2024-12-31 03:44:04 [2024-12-31 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140871', 'tblTempUsageDetail_20' ) start [2024-12-31 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140871', 'tblTempUsageDetail_20' ) end [2024-12-31 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140871', 'tblTempVendorCDR_20' ) start [2024-12-31 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140871', 'tblTempVendorCDR_20' ) end [2024-12-31 03:44:18] Production.INFO: ProcessCDR(1,14140871,1,1,2) [2024-12-31 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140871', 'tblTempUsageDetail_20' ) start [2024-12-31 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140871', 'tblTempUsageDetail_20' ) end [2024-12-31 03:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:44:21] Production.INFO: ==8678== Releasing lock... [2024-12-31 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:44:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-31 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:45:05 [end_date_ymd] => 2024-12-31 03:45:05 [RateCDR] => 1 ) [2024-12-31 03:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:45:05' and `end` < '2024-12-31 03:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:45:17] Production.INFO: count ==352 [2024-12-31 03:45:17] Production.ERROR: pbx CDR StartTime 2024-12-31 00:45:05 - End Time 2024-12-31 03:45:05 [2024-12-31 03:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140876', 'tblTempUsageDetail_20' ) start [2024-12-31 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140876', 'tblTempUsageDetail_20' ) end [2024-12-31 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140876', 'tblTempVendorCDR_20' ) start [2024-12-31 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140876', 'tblTempVendorCDR_20' ) end [2024-12-31 03:45:18] Production.INFO: ProcessCDR(1,14140876,1,1,2) [2024-12-31 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140876', 'tblTempUsageDetail_20' ) start [2024-12-31 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140876', 'tblTempUsageDetail_20' ) end [2024-12-31 03:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:45:21] Production.INFO: ==8748== Releasing lock... [2024-12-31 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:45:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-31 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:46:05 [end_date_ymd] => 2024-12-31 03:46:05 [RateCDR] => 1 ) [2024-12-31 03:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:46:05' and `end` < '2024-12-31 03:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:46:18] Production.INFO: count ==350 [2024-12-31 03:46:18] Production.ERROR: pbx CDR StartTime 2024-12-31 00:46:05 - End Time 2024-12-31 03:46:05 [2024-12-31 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140881', 'tblTempUsageDetail_20' ) start [2024-12-31 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140881', 'tblTempUsageDetail_20' ) end [2024-12-31 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140881', 'tblTempVendorCDR_20' ) start [2024-12-31 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140881', 'tblTempVendorCDR_20' ) end [2024-12-31 03:46:18] Production.INFO: ProcessCDR(1,14140881,1,1,2) [2024-12-31 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140881', 'tblTempUsageDetail_20' ) start [2024-12-31 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140881', 'tblTempUsageDetail_20' ) end [2024-12-31 03:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:46:21] Production.INFO: ==8820== Releasing lock... [2024-12-31 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:46:21] Production.INFO: 31 MB #Memory Used# [2024-12-31 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:47:05 [end_date_ymd] => 2024-12-31 03:47:05 [RateCDR] => 1 ) [2024-12-31 03:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:47:05' and `end` < '2024-12-31 03:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:47:17] Production.INFO: count ==343 [2024-12-31 03:47:17] Production.ERROR: pbx CDR StartTime 2024-12-31 00:47:05 - End Time 2024-12-31 03:47:05 [2024-12-31 03:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140886', 'tblTempUsageDetail_20' ) start [2024-12-31 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140886', 'tblTempUsageDetail_20' ) end [2024-12-31 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140886', 'tblTempVendorCDR_20' ) start [2024-12-31 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140886', 'tblTempVendorCDR_20' ) end [2024-12-31 03:47:17] Production.INFO: ProcessCDR(1,14140886,1,1,2) [2024-12-31 03:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140886', 'tblTempUsageDetail_20' ) start [2024-12-31 03:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140886', 'tblTempUsageDetail_20' ) end [2024-12-31 03:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:47:20] Production.INFO: ==8890== Releasing lock... [2024-12-31 03:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:47:20] Production.INFO: 31.75 MB #Memory Used# [2024-12-31 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:48:05 [end_date_ymd] => 2024-12-31 03:48:05 [RateCDR] => 1 ) [2024-12-31 03:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:48:05' and `end` < '2024-12-31 03:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:48:18] Production.INFO: count ==342 [2024-12-31 03:48:18] Production.ERROR: pbx CDR StartTime 2024-12-31 00:48:05 - End Time 2024-12-31 03:48:05 [2024-12-31 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140891', 'tblTempUsageDetail_20' ) start [2024-12-31 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140891', 'tblTempUsageDetail_20' ) end [2024-12-31 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140891', 'tblTempVendorCDR_20' ) start [2024-12-31 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140891', 'tblTempVendorCDR_20' ) end [2024-12-31 03:48:18] Production.INFO: ProcessCDR(1,14140891,1,1,2) [2024-12-31 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140891', 'tblTempUsageDetail_20' ) start [2024-12-31 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140891', 'tblTempUsageDetail_20' ) end [2024-12-31 03:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:48:21] Production.INFO: ==8961== Releasing lock... [2024-12-31 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:48:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-31 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:49:05 [end_date_ymd] => 2024-12-31 03:49:05 [RateCDR] => 1 ) [2024-12-31 03:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:49:05' and `end` < '2024-12-31 03:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:49:17] Production.INFO: count ==342 [2024-12-31 03:49:17] Production.ERROR: pbx CDR StartTime 2024-12-31 00:49:05 - End Time 2024-12-31 03:49:05 [2024-12-31 03:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140896', 'tblTempUsageDetail_20' ) start [2024-12-31 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140896', 'tblTempUsageDetail_20' ) end [2024-12-31 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140896', 'tblTempVendorCDR_20' ) start [2024-12-31 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140896', 'tblTempVendorCDR_20' ) end [2024-12-31 03:49:17] Production.INFO: ProcessCDR(1,14140896,1,1,2) [2024-12-31 03:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140896', 'tblTempUsageDetail_20' ) start [2024-12-31 03:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140896', 'tblTempUsageDetail_20' ) end [2024-12-31 03:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:49:20] Production.INFO: ==9032== Releasing lock... [2024-12-31 03:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:49:20] Production.INFO: 31.75 MB #Memory Used# [2024-12-31 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:50:06 [end_date_ymd] => 2024-12-31 03:50:06 [RateCDR] => 1 ) [2024-12-31 03:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:50:06' and `end` < '2024-12-31 03:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:50:18] Production.INFO: count ==340 [2024-12-31 03:50:18] Production.ERROR: pbx CDR StartTime 2024-12-31 00:50:06 - End Time 2024-12-31 03:50:06 [2024-12-31 03:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140902', 'tblTempUsageDetail_20' ) start [2024-12-31 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140902', 'tblTempUsageDetail_20' ) end [2024-12-31 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140902', 'tblTempVendorCDR_20' ) start [2024-12-31 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140902', 'tblTempVendorCDR_20' ) end [2024-12-31 03:50:18] Production.INFO: ProcessCDR(1,14140902,1,1,2) [2024-12-31 03:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140902', 'tblTempUsageDetail_20' ) start [2024-12-31 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140902', 'tblTempUsageDetail_20' ) end [2024-12-31 03:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:50:22] Production.INFO: ==9116== Releasing lock... [2024-12-31 03:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:50:22] Production.INFO: 31.75 MB #Memory Used# [2024-12-31 03:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:51:04 [end_date_ymd] => 2024-12-31 03:51:04 [RateCDR] => 1 ) [2024-12-31 03:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:51:04' and `end` < '2024-12-31 03:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:51:18] Production.INFO: count ==340 [2024-12-31 03:51:18] Production.ERROR: pbx CDR StartTime 2024-12-31 00:51:04 - End Time 2024-12-31 03:51:04 [2024-12-31 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140907', 'tblTempUsageDetail_20' ) start [2024-12-31 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140907', 'tblTempUsageDetail_20' ) end [2024-12-31 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140907', 'tblTempVendorCDR_20' ) start [2024-12-31 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140907', 'tblTempVendorCDR_20' ) end [2024-12-31 03:51:18] Production.INFO: ProcessCDR(1,14140907,1,1,2) [2024-12-31 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140907', 'tblTempUsageDetail_20' ) start [2024-12-31 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140907', 'tblTempUsageDetail_20' ) end [2024-12-31 03:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:51:21] Production.INFO: ==9188== Releasing lock... [2024-12-31 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:51:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-31 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:52:05 [end_date_ymd] => 2024-12-31 03:52:05 [RateCDR] => 1 ) [2024-12-31 03:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:52:05' and `end` < '2024-12-31 03:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:52:18] Production.INFO: count ==340 [2024-12-31 03:52:18] Production.ERROR: pbx CDR StartTime 2024-12-31 00:52:05 - End Time 2024-12-31 03:52:05 [2024-12-31 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140912', 'tblTempUsageDetail_20' ) start [2024-12-31 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140912', 'tblTempUsageDetail_20' ) end [2024-12-31 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140912', 'tblTempVendorCDR_20' ) start [2024-12-31 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140912', 'tblTempVendorCDR_20' ) end [2024-12-31 03:52:18] Production.INFO: ProcessCDR(1,14140912,1,1,2) [2024-12-31 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140912', 'tblTempUsageDetail_20' ) start [2024-12-31 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140912', 'tblTempUsageDetail_20' ) end [2024-12-31 03:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:52:21] Production.INFO: ==9260== Releasing lock... [2024-12-31 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:52:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-31 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:53:05 [end_date_ymd] => 2024-12-31 03:53:05 [RateCDR] => 1 ) [2024-12-31 03:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:53:05' and `end` < '2024-12-31 03:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:53:18] Production.INFO: count ==340 [2024-12-31 03:53:18] Production.ERROR: pbx CDR StartTime 2024-12-31 00:53:05 - End Time 2024-12-31 03:53:05 [2024-12-31 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140917', 'tblTempUsageDetail_20' ) start [2024-12-31 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140917', 'tblTempUsageDetail_20' ) end [2024-12-31 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140917', 'tblTempVendorCDR_20' ) start [2024-12-31 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140917', 'tblTempVendorCDR_20' ) end [2024-12-31 03:53:18] Production.INFO: ProcessCDR(1,14140917,1,1,2) [2024-12-31 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140917', 'tblTempUsageDetail_20' ) start [2024-12-31 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140917', 'tblTempUsageDetail_20' ) end [2024-12-31 03:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:53:21] Production.INFO: ==9329== Releasing lock... [2024-12-31 03:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:53:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-31 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:54:05 [end_date_ymd] => 2024-12-31 03:54:05 [RateCDR] => 1 ) [2024-12-31 03:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:54:05' and `end` < '2024-12-31 03:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:54:18] Production.INFO: count ==339 [2024-12-31 03:54:18] Production.ERROR: pbx CDR StartTime 2024-12-31 00:54:05 - End Time 2024-12-31 03:54:05 [2024-12-31 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140922', 'tblTempUsageDetail_20' ) start [2024-12-31 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140922', 'tblTempUsageDetail_20' ) end [2024-12-31 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140922', 'tblTempVendorCDR_20' ) start [2024-12-31 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140922', 'tblTempVendorCDR_20' ) end [2024-12-31 03:54:18] Production.INFO: ProcessCDR(1,14140922,1,1,2) [2024-12-31 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140922', 'tblTempUsageDetail_20' ) start [2024-12-31 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140922', 'tblTempUsageDetail_20' ) end [2024-12-31 03:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:54:21] Production.INFO: ==9400== Releasing lock... [2024-12-31 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:54:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-31 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:55:05 [end_date_ymd] => 2024-12-31 03:55:05 [RateCDR] => 1 ) [2024-12-31 03:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:55:05' and `end` < '2024-12-31 03:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:55:17] Production.INFO: count ==339 [2024-12-31 03:55:17] Production.ERROR: pbx CDR StartTime 2024-12-31 00:55:05 - End Time 2024-12-31 03:55:05 [2024-12-31 03:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140927', 'tblTempUsageDetail_20' ) start [2024-12-31 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140927', 'tblTempUsageDetail_20' ) end [2024-12-31 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140927', 'tblTempVendorCDR_20' ) start [2024-12-31 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140927', 'tblTempVendorCDR_20' ) end [2024-12-31 03:55:17] Production.INFO: ProcessCDR(1,14140927,1,1,2) [2024-12-31 03:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140927', 'tblTempUsageDetail_20' ) start [2024-12-31 03:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140927', 'tblTempUsageDetail_20' ) end [2024-12-31 03:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:55:20] Production.INFO: ==9474== Releasing lock... [2024-12-31 03:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:55:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-31 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:56:05 [end_date_ymd] => 2024-12-31 03:56:05 [RateCDR] => 1 ) [2024-12-31 03:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:56:05' and `end` < '2024-12-31 03:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:56:19] Production.INFO: count ==339 [2024-12-31 03:56:19] Production.ERROR: pbx CDR StartTime 2024-12-31 00:56:05 - End Time 2024-12-31 03:56:05 [2024-12-31 03:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140932', 'tblTempUsageDetail_20' ) start [2024-12-31 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140932', 'tblTempUsageDetail_20' ) end [2024-12-31 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140932', 'tblTempVendorCDR_20' ) start [2024-12-31 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140932', 'tblTempVendorCDR_20' ) end [2024-12-31 03:56:19] Production.INFO: ProcessCDR(1,14140932,1,1,2) [2024-12-31 03:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140932', 'tblTempUsageDetail_20' ) start [2024-12-31 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140932', 'tblTempUsageDetail_20' ) end [2024-12-31 03:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:56:22] Production.INFO: ==9548== Releasing lock... [2024-12-31 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:56:22] Production.INFO: 31.5 MB #Memory Used# [2024-12-31 03:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:57:04 [end_date_ymd] => 2024-12-31 03:57:04 [RateCDR] => 1 ) [2024-12-31 03:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:57:04' and `end` < '2024-12-31 03:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:57:17] Production.INFO: count ==339 [2024-12-31 03:57:17] Production.ERROR: pbx CDR StartTime 2024-12-31 00:57:04 - End Time 2024-12-31 03:57:04 [2024-12-31 03:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140937', 'tblTempUsageDetail_20' ) start [2024-12-31 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140937', 'tblTempUsageDetail_20' ) end [2024-12-31 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140937', 'tblTempVendorCDR_20' ) start [2024-12-31 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140937', 'tblTempVendorCDR_20' ) end [2024-12-31 03:57:17] Production.INFO: ProcessCDR(1,14140937,1,1,2) [2024-12-31 03:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140937', 'tblTempUsageDetail_20' ) start [2024-12-31 03:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140937', 'tblTempUsageDetail_20' ) end [2024-12-31 03:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:57:20] Production.INFO: ==9617== Releasing lock... [2024-12-31 03:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:57:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-31 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:58:05 [end_date_ymd] => 2024-12-31 03:58:05 [RateCDR] => 1 ) [2024-12-31 03:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:58:05' and `end` < '2024-12-31 03:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:58:19] Production.INFO: count ==339 [2024-12-31 03:58:19] Production.ERROR: pbx CDR StartTime 2024-12-31 00:58:05 - End Time 2024-12-31 03:58:05 [2024-12-31 03:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140942', 'tblTempUsageDetail_20' ) start [2024-12-31 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140942', 'tblTempUsageDetail_20' ) end [2024-12-31 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140942', 'tblTempVendorCDR_20' ) start [2024-12-31 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140942', 'tblTempVendorCDR_20' ) end [2024-12-31 03:58:19] Production.INFO: ProcessCDR(1,14140942,1,1,2) [2024-12-31 03:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140942', 'tblTempUsageDetail_20' ) start [2024-12-31 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140942', 'tblTempUsageDetail_20' ) end [2024-12-31 03:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:58:22] Production.INFO: ==9690== Releasing lock... [2024-12-31 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:58:22] Production.INFO: 31.5 MB #Memory Used# [2024-12-31 03:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 00:59:04 [end_date_ymd] => 2024-12-31 03:59:04 [RateCDR] => 1 ) [2024-12-31 03:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 00:59:04' and `end` < '2024-12-31 03:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 03:59:18] Production.INFO: count ==337 [2024-12-31 03:59:18] Production.ERROR: pbx CDR StartTime 2024-12-31 00:59:04 - End Time 2024-12-31 03:59:04 [2024-12-31 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140947', 'tblTempUsageDetail_20' ) start [2024-12-31 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140947', 'tblTempUsageDetail_20' ) end [2024-12-31 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140947', 'tblTempVendorCDR_20' ) start [2024-12-31 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140947', 'tblTempVendorCDR_20' ) end [2024-12-31 03:59:18] Production.INFO: ProcessCDR(1,14140947,1,1,2) [2024-12-31 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140947', 'tblTempUsageDetail_20' ) start [2024-12-31 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140947', 'tblTempUsageDetail_20' ) end [2024-12-31 03:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 03:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 03:59:21] Production.INFO: ==9801== Releasing lock... [2024-12-31 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 03:59:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-31 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:00:06 [end_date_ymd] => 2024-12-31 04:00:06 [RateCDR] => 1 ) [2024-12-31 04:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:00:06' and `end` < '2024-12-31 04:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:00:19] Production.INFO: count ==335 [2024-12-31 04:00:19] Production.ERROR: pbx CDR StartTime 2024-12-31 01:00:06 - End Time 2024-12-31 04:00:06 [2024-12-31 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140954', 'tblTempUsageDetail_20' ) start [2024-12-31 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140954', 'tblTempUsageDetail_20' ) end [2024-12-31 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140954', 'tblTempVendorCDR_20' ) start [2024-12-31 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140954', 'tblTempVendorCDR_20' ) end [2024-12-31 04:00:19] Production.INFO: ProcessCDR(1,14140954,1,1,2) [2024-12-31 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140954', 'tblTempUsageDetail_20' ) start [2024-12-31 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140954', 'tblTempUsageDetail_20' ) end [2024-12-31 04:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:00:22] Production.INFO: ==9875== Releasing lock... [2024-12-31 04:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:00:22] Production.INFO: 31.25 MB #Memory Used# [2024-12-31 04:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:01:04 [end_date_ymd] => 2024-12-31 04:01:04 [RateCDR] => 1 ) [2024-12-31 04:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:01:04' and `end` < '2024-12-31 04:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:01:18] Production.INFO: count ==335 [2024-12-31 04:01:18] Production.ERROR: pbx CDR StartTime 2024-12-31 01:01:04 - End Time 2024-12-31 04:01:04 [2024-12-31 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140959', 'tblTempUsageDetail_20' ) start [2024-12-31 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140959', 'tblTempUsageDetail_20' ) end [2024-12-31 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140959', 'tblTempVendorCDR_20' ) start [2024-12-31 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140959', 'tblTempVendorCDR_20' ) end [2024-12-31 04:01:18] Production.INFO: ProcessCDR(1,14140959,1,1,2) [2024-12-31 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140959', 'tblTempUsageDetail_20' ) start [2024-12-31 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140959', 'tblTempUsageDetail_20' ) end [2024-12-31 04:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:01:21] Production.INFO: ==9965== Releasing lock... [2024-12-31 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:01:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-31 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:02:05 [end_date_ymd] => 2024-12-31 04:02:05 [RateCDR] => 1 ) [2024-12-31 04:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:02:05' and `end` < '2024-12-31 04:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:02:19] Production.INFO: count ==335 [2024-12-31 04:02:19] Production.ERROR: pbx CDR StartTime 2024-12-31 01:02:05 - End Time 2024-12-31 04:02:05 [2024-12-31 04:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140964', 'tblTempUsageDetail_20' ) start [2024-12-31 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140964', 'tblTempUsageDetail_20' ) end [2024-12-31 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140964', 'tblTempVendorCDR_20' ) start [2024-12-31 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140964', 'tblTempVendorCDR_20' ) end [2024-12-31 04:02:19] Production.INFO: ProcessCDR(1,14140964,1,1,2) [2024-12-31 04:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140964', 'tblTempUsageDetail_20' ) start [2024-12-31 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140964', 'tblTempUsageDetail_20' ) end [2024-12-31 04:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:02:22] Production.INFO: ==10038== Releasing lock... [2024-12-31 04:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:02:22] Production.INFO: 31.25 MB #Memory Used# [2024-12-31 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:03:05 [end_date_ymd] => 2024-12-31 04:03:05 [RateCDR] => 1 ) [2024-12-31 04:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:03:05' and `end` < '2024-12-31 04:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:03:17] Production.INFO: count ==335 [2024-12-31 04:03:17] Production.ERROR: pbx CDR StartTime 2024-12-31 01:03:05 - End Time 2024-12-31 04:03:05 [2024-12-31 04:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140969', 'tblTempUsageDetail_20' ) start [2024-12-31 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140969', 'tblTempUsageDetail_20' ) end [2024-12-31 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140969', 'tblTempVendorCDR_20' ) start [2024-12-31 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140969', 'tblTempVendorCDR_20' ) end [2024-12-31 04:03:17] Production.INFO: ProcessCDR(1,14140969,1,1,2) [2024-12-31 04:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140969', 'tblTempUsageDetail_20' ) start [2024-12-31 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140969', 'tblTempUsageDetail_20' ) end [2024-12-31 04:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:03:20] Production.INFO: ==10107== Releasing lock... [2024-12-31 04:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:03:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-31 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:04:05 [end_date_ymd] => 2024-12-31 04:04:05 [RateCDR] => 1 ) [2024-12-31 04:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:04:05' and `end` < '2024-12-31 04:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:04:17] Production.INFO: count ==335 [2024-12-31 04:04:17] Production.ERROR: pbx CDR StartTime 2024-12-31 01:04:05 - End Time 2024-12-31 04:04:05 [2024-12-31 04:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140974', 'tblTempUsageDetail_20' ) start [2024-12-31 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140974', 'tblTempUsageDetail_20' ) end [2024-12-31 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140974', 'tblTempVendorCDR_20' ) start [2024-12-31 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140974', 'tblTempVendorCDR_20' ) end [2024-12-31 04:04:17] Production.INFO: ProcessCDR(1,14140974,1,1,2) [2024-12-31 04:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140974', 'tblTempUsageDetail_20' ) start [2024-12-31 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140974', 'tblTempUsageDetail_20' ) end [2024-12-31 04:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:04:21] Production.INFO: ==10180== Releasing lock... [2024-12-31 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:04:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-31 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:05:05 [end_date_ymd] => 2024-12-31 04:05:05 [RateCDR] => 1 ) [2024-12-31 04:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:05:05' and `end` < '2024-12-31 04:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:05:17] Production.INFO: count ==335 [2024-12-31 04:05:17] Production.ERROR: pbx CDR StartTime 2024-12-31 01:05:05 - End Time 2024-12-31 04:05:05 [2024-12-31 04:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140979', 'tblTempUsageDetail_20' ) start [2024-12-31 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140979', 'tblTempUsageDetail_20' ) end [2024-12-31 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140979', 'tblTempVendorCDR_20' ) start [2024-12-31 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140979', 'tblTempVendorCDR_20' ) end [2024-12-31 04:05:17] Production.INFO: ProcessCDR(1,14140979,1,1,2) [2024-12-31 04:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140979', 'tblTempUsageDetail_20' ) start [2024-12-31 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140979', 'tblTempUsageDetail_20' ) end [2024-12-31 04:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:05:21] Production.INFO: ==10252== Releasing lock... [2024-12-31 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:05:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-31 04:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:06:04 [end_date_ymd] => 2024-12-31 04:06:04 [RateCDR] => 1 ) [2024-12-31 04:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:06:04' and `end` < '2024-12-31 04:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:06:17] Production.INFO: count ==335 [2024-12-31 04:06:17] Production.ERROR: pbx CDR StartTime 2024-12-31 01:06:04 - End Time 2024-12-31 04:06:04 [2024-12-31 04:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140984', 'tblTempUsageDetail_20' ) start [2024-12-31 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140984', 'tblTempUsageDetail_20' ) end [2024-12-31 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140984', 'tblTempVendorCDR_20' ) start [2024-12-31 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140984', 'tblTempVendorCDR_20' ) end [2024-12-31 04:06:17] Production.INFO: ProcessCDR(1,14140984,1,1,2) [2024-12-31 04:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140984', 'tblTempUsageDetail_20' ) start [2024-12-31 04:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140984', 'tblTempUsageDetail_20' ) end [2024-12-31 04:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:06:20] Production.INFO: ==10323== Releasing lock... [2024-12-31 04:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:06:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-31 04:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:07:04 [end_date_ymd] => 2024-12-31 04:07:04 [RateCDR] => 1 ) [2024-12-31 04:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:07:04' and `end` < '2024-12-31 04:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:07:17] Production.INFO: count ==335 [2024-12-31 04:07:17] Production.ERROR: pbx CDR StartTime 2024-12-31 01:07:04 - End Time 2024-12-31 04:07:04 [2024-12-31 04:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140989', 'tblTempUsageDetail_20' ) start [2024-12-31 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140989', 'tblTempUsageDetail_20' ) end [2024-12-31 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140989', 'tblTempVendorCDR_20' ) start [2024-12-31 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140989', 'tblTempVendorCDR_20' ) end [2024-12-31 04:07:17] Production.INFO: ProcessCDR(1,14140989,1,1,2) [2024-12-31 04:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140989', 'tblTempUsageDetail_20' ) start [2024-12-31 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140989', 'tblTempUsageDetail_20' ) end [2024-12-31 04:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:07:20] Production.INFO: ==10393== Releasing lock... [2024-12-31 04:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:07:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-31 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:08:05 [end_date_ymd] => 2024-12-31 04:08:05 [RateCDR] => 1 ) [2024-12-31 04:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:08:05' and `end` < '2024-12-31 04:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:08:17] Production.INFO: count ==335 [2024-12-31 04:08:17] Production.ERROR: pbx CDR StartTime 2024-12-31 01:08:05 - End Time 2024-12-31 04:08:05 [2024-12-31 04:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140994', 'tblTempUsageDetail_20' ) start [2024-12-31 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140994', 'tblTempUsageDetail_20' ) end [2024-12-31 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140994', 'tblTempVendorCDR_20' ) start [2024-12-31 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140994', 'tblTempVendorCDR_20' ) end [2024-12-31 04:08:17] Production.INFO: ProcessCDR(1,14140994,1,1,2) [2024-12-31 04:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140994', 'tblTempUsageDetail_20' ) start [2024-12-31 04:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140994', 'tblTempUsageDetail_20' ) end [2024-12-31 04:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:08:20] Production.INFO: ==10463== Releasing lock... [2024-12-31 04:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:08:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-31 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:09:05 [end_date_ymd] => 2024-12-31 04:09:05 [RateCDR] => 1 ) [2024-12-31 04:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:09:05' and `end` < '2024-12-31 04:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:09:17] Production.INFO: count ==334 [2024-12-31 04:09:18] Production.ERROR: pbx CDR StartTime 2024-12-31 01:09:05 - End Time 2024-12-31 04:09:05 [2024-12-31 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140999', 'tblTempUsageDetail_20' ) start [2024-12-31 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14140999', 'tblTempUsageDetail_20' ) end [2024-12-31 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140999', 'tblTempVendorCDR_20' ) start [2024-12-31 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14140999', 'tblTempVendorCDR_20' ) end [2024-12-31 04:09:18] Production.INFO: ProcessCDR(1,14140999,1,1,2) [2024-12-31 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14140999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14140999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14140999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14140999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140999', 'tblTempUsageDetail_20' ) start [2024-12-31 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14140999', 'tblTempUsageDetail_20' ) end [2024-12-31 04:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:09:21] Production.INFO: ==10536== Releasing lock... [2024-12-31 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:09:21] Production.INFO: 31 MB #Memory Used# [2024-12-31 04:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:10:05 [end_date_ymd] => 2024-12-31 04:10:05 [RateCDR] => 1 ) [2024-12-31 04:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:10:05' and `end` < '2024-12-31 04:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:10:17] Production.INFO: count ==328 [2024-12-31 04:10:17] Production.ERROR: pbx CDR StartTime 2024-12-31 01:10:05 - End Time 2024-12-31 04:10:05 [2024-12-31 04:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141005', 'tblTempUsageDetail_20' ) start [2024-12-31 04:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141005', 'tblTempUsageDetail_20' ) end [2024-12-31 04:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141005', 'tblTempVendorCDR_20' ) start [2024-12-31 04:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141005', 'tblTempVendorCDR_20' ) end [2024-12-31 04:10:17] Production.INFO: ProcessCDR(1,14141005,1,1,2) [2024-12-31 04:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141005', 'tblTempUsageDetail_20' ) start [2024-12-31 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141005', 'tblTempUsageDetail_20' ) end [2024-12-31 04:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:10:21] Production.INFO: ==10610== Releasing lock... [2024-12-31 04:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:10:21] Production.INFO: 31 MB #Memory Used# [2024-12-31 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:11:05 [end_date_ymd] => 2024-12-31 04:11:05 [RateCDR] => 1 ) [2024-12-31 04:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:11:05' and `end` < '2024-12-31 04:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:11:18] Production.INFO: count ==322 [2024-12-31 04:11:18] Production.ERROR: pbx CDR StartTime 2024-12-31 01:11:05 - End Time 2024-12-31 04:11:05 [2024-12-31 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141010', 'tblTempUsageDetail_20' ) start [2024-12-31 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141010', 'tblTempUsageDetail_20' ) end [2024-12-31 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141010', 'tblTempVendorCDR_20' ) start [2024-12-31 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141010', 'tblTempVendorCDR_20' ) end [2024-12-31 04:11:18] Production.INFO: ProcessCDR(1,14141010,1,1,2) [2024-12-31 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141010', 'tblTempUsageDetail_20' ) start [2024-12-31 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141010', 'tblTempUsageDetail_20' ) end [2024-12-31 04:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:11:21] Production.INFO: ==10682== Releasing lock... [2024-12-31 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:11:21] Production.INFO: 31 MB #Memory Used# [2024-12-31 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:12:05 [end_date_ymd] => 2024-12-31 04:12:05 [RateCDR] => 1 ) [2024-12-31 04:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:12:05' and `end` < '2024-12-31 04:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:12:18] Production.INFO: count ==322 [2024-12-31 04:12:18] Production.ERROR: pbx CDR StartTime 2024-12-31 01:12:05 - End Time 2024-12-31 04:12:05 [2024-12-31 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141015', 'tblTempUsageDetail_20' ) start [2024-12-31 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141015', 'tblTempUsageDetail_20' ) end [2024-12-31 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141015', 'tblTempVendorCDR_20' ) start [2024-12-31 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141015', 'tblTempVendorCDR_20' ) end [2024-12-31 04:12:18] Production.INFO: ProcessCDR(1,14141015,1,1,2) [2024-12-31 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141015', 'tblTempUsageDetail_20' ) start [2024-12-31 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141015', 'tblTempUsageDetail_20' ) end [2024-12-31 04:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:12:21] Production.INFO: ==10754== Releasing lock... [2024-12-31 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:12:21] Production.INFO: 31 MB #Memory Used# [2024-12-31 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:13:05 [end_date_ymd] => 2024-12-31 04:13:05 [RateCDR] => 1 ) [2024-12-31 04:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:13:05' and `end` < '2024-12-31 04:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:13:18] Production.INFO: count ==322 [2024-12-31 04:13:18] Production.ERROR: pbx CDR StartTime 2024-12-31 01:13:05 - End Time 2024-12-31 04:13:05 [2024-12-31 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141020', 'tblTempUsageDetail_20' ) start [2024-12-31 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141020', 'tblTempUsageDetail_20' ) end [2024-12-31 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141020', 'tblTempVendorCDR_20' ) start [2024-12-31 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141020', 'tblTempVendorCDR_20' ) end [2024-12-31 04:13:18] Production.INFO: ProcessCDR(1,14141020,1,1,2) [2024-12-31 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141020', 'tblTempUsageDetail_20' ) start [2024-12-31 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141020', 'tblTempUsageDetail_20' ) end [2024-12-31 04:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:13:21] Production.INFO: ==10825== Releasing lock... [2024-12-31 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:13:21] Production.INFO: 31 MB #Memory Used# [2024-12-31 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:14:05 [end_date_ymd] => 2024-12-31 04:14:05 [RateCDR] => 1 ) [2024-12-31 04:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:14:05' and `end` < '2024-12-31 04:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:14:18] Production.INFO: count ==322 [2024-12-31 04:14:18] Production.ERROR: pbx CDR StartTime 2024-12-31 01:14:05 - End Time 2024-12-31 04:14:05 [2024-12-31 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141025', 'tblTempUsageDetail_20' ) start [2024-12-31 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141025', 'tblTempUsageDetail_20' ) end [2024-12-31 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141025', 'tblTempVendorCDR_20' ) start [2024-12-31 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141025', 'tblTempVendorCDR_20' ) end [2024-12-31 04:14:18] Production.INFO: ProcessCDR(1,14141025,1,1,2) [2024-12-31 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141025', 'tblTempUsageDetail_20' ) start [2024-12-31 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141025', 'tblTempUsageDetail_20' ) end [2024-12-31 04:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:14:21] Production.INFO: ==10901== Releasing lock... [2024-12-31 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:14:21] Production.INFO: 31 MB #Memory Used# [2024-12-31 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:15:05 [end_date_ymd] => 2024-12-31 04:15:05 [RateCDR] => 1 ) [2024-12-31 04:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:15:05' and `end` < '2024-12-31 04:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:15:17] Production.INFO: count ==322 [2024-12-31 04:15:17] Production.ERROR: pbx CDR StartTime 2024-12-31 01:15:05 - End Time 2024-12-31 04:15:05 [2024-12-31 04:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141030', 'tblTempUsageDetail_20' ) start [2024-12-31 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141030', 'tblTempUsageDetail_20' ) end [2024-12-31 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141030', 'tblTempVendorCDR_20' ) start [2024-12-31 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141030', 'tblTempVendorCDR_20' ) end [2024-12-31 04:15:17] Production.INFO: ProcessCDR(1,14141030,1,1,2) [2024-12-31 04:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141030', 'tblTempUsageDetail_20' ) start [2024-12-31 04:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141030', 'tblTempUsageDetail_20' ) end [2024-12-31 04:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:15:20] Production.INFO: ==11012== Releasing lock... [2024-12-31 04:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:15:20] Production.INFO: 31 MB #Memory Used# [2024-12-31 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:16:05 [end_date_ymd] => 2024-12-31 04:16:05 [RateCDR] => 1 ) [2024-12-31 04:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:16:05' and `end` < '2024-12-31 04:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:16:18] Production.INFO: count ==322 [2024-12-31 04:16:18] Production.ERROR: pbx CDR StartTime 2024-12-31 01:16:05 - End Time 2024-12-31 04:16:05 [2024-12-31 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141035', 'tblTempUsageDetail_20' ) start [2024-12-31 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141035', 'tblTempUsageDetail_20' ) end [2024-12-31 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141035', 'tblTempVendorCDR_20' ) start [2024-12-31 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141035', 'tblTempVendorCDR_20' ) end [2024-12-31 04:16:18] Production.INFO: ProcessCDR(1,14141035,1,1,2) [2024-12-31 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141035', 'tblTempUsageDetail_20' ) start [2024-12-31 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141035', 'tblTempUsageDetail_20' ) end [2024-12-31 04:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:16:21] Production.INFO: ==11085== Releasing lock... [2024-12-31 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:16:21] Production.INFO: 31 MB #Memory Used# [2024-12-31 04:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:17:04 [end_date_ymd] => 2024-12-31 04:17:04 [RateCDR] => 1 ) [2024-12-31 04:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:17:04' and `end` < '2024-12-31 04:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:17:18] Production.INFO: count ==322 [2024-12-31 04:17:18] Production.ERROR: pbx CDR StartTime 2024-12-31 01:17:04 - End Time 2024-12-31 04:17:04 [2024-12-31 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141040', 'tblTempUsageDetail_20' ) start [2024-12-31 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141040', 'tblTempUsageDetail_20' ) end [2024-12-31 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141040', 'tblTempVendorCDR_20' ) start [2024-12-31 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141040', 'tblTempVendorCDR_20' ) end [2024-12-31 04:17:18] Production.INFO: ProcessCDR(1,14141040,1,1,2) [2024-12-31 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141040', 'tblTempUsageDetail_20' ) start [2024-12-31 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141040', 'tblTempUsageDetail_20' ) end [2024-12-31 04:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:17:21] Production.INFO: ==11165== Releasing lock... [2024-12-31 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:17:21] Production.INFO: 31 MB #Memory Used# [2024-12-31 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:18:05 [end_date_ymd] => 2024-12-31 04:18:05 [RateCDR] => 1 ) [2024-12-31 04:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:18:05' and `end` < '2024-12-31 04:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:18:18] Production.INFO: count ==321 [2024-12-31 04:18:18] Production.ERROR: pbx CDR StartTime 2024-12-31 01:18:05 - End Time 2024-12-31 04:18:05 [2024-12-31 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141045', 'tblTempUsageDetail_20' ) start [2024-12-31 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141045', 'tblTempUsageDetail_20' ) end [2024-12-31 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141045', 'tblTempVendorCDR_20' ) start [2024-12-31 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141045', 'tblTempVendorCDR_20' ) end [2024-12-31 04:18:18] Production.INFO: ProcessCDR(1,14141045,1,1,2) [2024-12-31 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141045', 'tblTempUsageDetail_20' ) start [2024-12-31 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141045', 'tblTempUsageDetail_20' ) end [2024-12-31 04:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:18:21] Production.INFO: ==11236== Releasing lock... [2024-12-31 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:18:21] Production.INFO: 31 MB #Memory Used# [2024-12-31 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:19:05 [end_date_ymd] => 2024-12-31 04:19:05 [RateCDR] => 1 ) [2024-12-31 04:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:19:05' and `end` < '2024-12-31 04:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:19:18] Production.INFO: count ==321 [2024-12-31 04:19:18] Production.ERROR: pbx CDR StartTime 2024-12-31 01:19:05 - End Time 2024-12-31 04:19:05 [2024-12-31 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141050', 'tblTempUsageDetail_20' ) start [2024-12-31 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141050', 'tblTempUsageDetail_20' ) end [2024-12-31 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141050', 'tblTempVendorCDR_20' ) start [2024-12-31 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141050', 'tblTempVendorCDR_20' ) end [2024-12-31 04:19:18] Production.INFO: ProcessCDR(1,14141050,1,1,2) [2024-12-31 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141050', 'tblTempUsageDetail_20' ) start [2024-12-31 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141050', 'tblTempUsageDetail_20' ) end [2024-12-31 04:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:19:21] Production.INFO: ==11308== Releasing lock... [2024-12-31 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:19:21] Production.INFO: 31 MB #Memory Used# [2024-12-31 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:20:06 [end_date_ymd] => 2024-12-31 04:20:06 [RateCDR] => 1 ) [2024-12-31 04:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:20:06' and `end` < '2024-12-31 04:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:20:18] Production.INFO: count ==313 [2024-12-31 04:20:19] Production.ERROR: pbx CDR StartTime 2024-12-31 01:20:06 - End Time 2024-12-31 04:20:06 [2024-12-31 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141056', 'tblTempUsageDetail_20' ) start [2024-12-31 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141056', 'tblTempUsageDetail_20' ) end [2024-12-31 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141056', 'tblTempVendorCDR_20' ) start [2024-12-31 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141056', 'tblTempVendorCDR_20' ) end [2024-12-31 04:20:19] Production.INFO: ProcessCDR(1,14141056,1,1,2) [2024-12-31 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141056', 'tblTempUsageDetail_20' ) start [2024-12-31 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141056', 'tblTempUsageDetail_20' ) end [2024-12-31 04:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:20:22] Production.INFO: ==11381== Releasing lock... [2024-12-31 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:20:22] Production.INFO: 30.75 MB #Memory Used# [2024-12-31 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:21:05 [end_date_ymd] => 2024-12-31 04:21:05 [RateCDR] => 1 ) [2024-12-31 04:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:21:05' and `end` < '2024-12-31 04:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:21:17] Production.INFO: count ==309 [2024-12-31 04:21:17] Production.ERROR: pbx CDR StartTime 2024-12-31 01:21:05 - End Time 2024-12-31 04:21:05 [2024-12-31 04:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141061', 'tblTempUsageDetail_20' ) start [2024-12-31 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141061', 'tblTempUsageDetail_20' ) end [2024-12-31 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141061', 'tblTempVendorCDR_20' ) start [2024-12-31 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141061', 'tblTempVendorCDR_20' ) end [2024-12-31 04:21:17] Production.INFO: ProcessCDR(1,14141061,1,1,2) [2024-12-31 04:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141061', 'tblTempUsageDetail_20' ) start [2024-12-31 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141061', 'tblTempUsageDetail_20' ) end [2024-12-31 04:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:21:20] Production.INFO: ==11453== Releasing lock... [2024-12-31 04:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:21:20] Production.INFO: 31 MB #Memory Used# [2024-12-31 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:22:05 [end_date_ymd] => 2024-12-31 04:22:05 [RateCDR] => 1 ) [2024-12-31 04:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:22:05' and `end` < '2024-12-31 04:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:22:18] Production.INFO: count ==309 [2024-12-31 04:22:18] Production.ERROR: pbx CDR StartTime 2024-12-31 01:22:05 - End Time 2024-12-31 04:22:05 [2024-12-31 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141066', 'tblTempUsageDetail_20' ) start [2024-12-31 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141066', 'tblTempUsageDetail_20' ) end [2024-12-31 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141066', 'tblTempVendorCDR_20' ) start [2024-12-31 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141066', 'tblTempVendorCDR_20' ) end [2024-12-31 04:22:18] Production.INFO: ProcessCDR(1,14141066,1,1,2) [2024-12-31 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141066', 'tblTempUsageDetail_20' ) start [2024-12-31 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141066', 'tblTempUsageDetail_20' ) end [2024-12-31 04:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:22:21] Production.INFO: ==11526== Releasing lock... [2024-12-31 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:22:21] Production.INFO: 31 MB #Memory Used# [2024-12-31 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:23:05 [end_date_ymd] => 2024-12-31 04:23:05 [RateCDR] => 1 ) [2024-12-31 04:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:23:05' and `end` < '2024-12-31 04:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:23:17] Production.INFO: count ==309 [2024-12-31 04:23:17] Production.ERROR: pbx CDR StartTime 2024-12-31 01:23:05 - End Time 2024-12-31 04:23:05 [2024-12-31 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141071', 'tblTempUsageDetail_20' ) start [2024-12-31 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141071', 'tblTempUsageDetail_20' ) end [2024-12-31 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141071', 'tblTempVendorCDR_20' ) start [2024-12-31 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141071', 'tblTempVendorCDR_20' ) end [2024-12-31 04:23:17] Production.INFO: ProcessCDR(1,14141071,1,1,2) [2024-12-31 04:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141071', 'tblTempUsageDetail_20' ) start [2024-12-31 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141071', 'tblTempUsageDetail_20' ) end [2024-12-31 04:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:23:20] Production.INFO: ==11598== Releasing lock... [2024-12-31 04:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:23:20] Production.INFO: 31 MB #Memory Used# [2024-12-31 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:24:05 [end_date_ymd] => 2024-12-31 04:24:05 [RateCDR] => 1 ) [2024-12-31 04:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:24:05' and `end` < '2024-12-31 04:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:24:18] Production.INFO: count ==309 [2024-12-31 04:24:18] Production.ERROR: pbx CDR StartTime 2024-12-31 01:24:05 - End Time 2024-12-31 04:24:05 [2024-12-31 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141076', 'tblTempUsageDetail_20' ) start [2024-12-31 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141076', 'tblTempUsageDetail_20' ) end [2024-12-31 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141076', 'tblTempVendorCDR_20' ) start [2024-12-31 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141076', 'tblTempVendorCDR_20' ) end [2024-12-31 04:24:18] Production.INFO: ProcessCDR(1,14141076,1,1,2) [2024-12-31 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141076', 'tblTempUsageDetail_20' ) start [2024-12-31 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141076', 'tblTempUsageDetail_20' ) end [2024-12-31 04:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:24:21] Production.INFO: ==11669== Releasing lock... [2024-12-31 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:24:21] Production.INFO: 31 MB #Memory Used# [2024-12-31 04:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:25:04 [end_date_ymd] => 2024-12-31 04:25:04 [RateCDR] => 1 ) [2024-12-31 04:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:25:04' and `end` < '2024-12-31 04:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:25:17] Production.INFO: count ==309 [2024-12-31 04:25:17] Production.ERROR: pbx CDR StartTime 2024-12-31 01:25:04 - End Time 2024-12-31 04:25:04 [2024-12-31 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141081', 'tblTempUsageDetail_20' ) start [2024-12-31 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141081', 'tblTempUsageDetail_20' ) end [2024-12-31 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141081', 'tblTempVendorCDR_20' ) start [2024-12-31 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141081', 'tblTempVendorCDR_20' ) end [2024-12-31 04:25:17] Production.INFO: ProcessCDR(1,14141081,1,1,2) [2024-12-31 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141081', 'tblTempUsageDetail_20' ) start [2024-12-31 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141081', 'tblTempUsageDetail_20' ) end [2024-12-31 04:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:25:20] Production.INFO: ==11739== Releasing lock... [2024-12-31 04:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:25:20] Production.INFO: 31 MB #Memory Used# [2024-12-31 04:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:26:04 [end_date_ymd] => 2024-12-31 04:26:04 [RateCDR] => 1 ) [2024-12-31 04:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:26:04' and `end` < '2024-12-31 04:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:26:18] Production.INFO: count ==308 [2024-12-31 04:26:18] Production.ERROR: pbx CDR StartTime 2024-12-31 01:26:04 - End Time 2024-12-31 04:26:04 [2024-12-31 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141086', 'tblTempUsageDetail_20' ) start [2024-12-31 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141086', 'tblTempUsageDetail_20' ) end [2024-12-31 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141086', 'tblTempVendorCDR_20' ) start [2024-12-31 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141086', 'tblTempVendorCDR_20' ) end [2024-12-31 04:26:18] Production.INFO: ProcessCDR(1,14141086,1,1,2) [2024-12-31 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141086', 'tblTempUsageDetail_20' ) start [2024-12-31 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141086', 'tblTempUsageDetail_20' ) end [2024-12-31 04:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:26:21] Production.INFO: ==11815== Releasing lock... [2024-12-31 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:26:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-31 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:27:05 [end_date_ymd] => 2024-12-31 04:27:05 [RateCDR] => 1 ) [2024-12-31 04:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:27:05' and `end` < '2024-12-31 04:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:27:18] Production.INFO: count ==308 [2024-12-31 04:27:18] Production.ERROR: pbx CDR StartTime 2024-12-31 01:27:05 - End Time 2024-12-31 04:27:05 [2024-12-31 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141091', 'tblTempUsageDetail_20' ) start [2024-12-31 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141091', 'tblTempUsageDetail_20' ) end [2024-12-31 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141091', 'tblTempVendorCDR_20' ) start [2024-12-31 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141091', 'tblTempVendorCDR_20' ) end [2024-12-31 04:27:18] Production.INFO: ProcessCDR(1,14141091,1,1,2) [2024-12-31 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141091', 'tblTempUsageDetail_20' ) start [2024-12-31 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141091', 'tblTempUsageDetail_20' ) end [2024-12-31 04:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:27:21] Production.INFO: ==11887== Releasing lock... [2024-12-31 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:27:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-31 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:28:05 [end_date_ymd] => 2024-12-31 04:28:05 [RateCDR] => 1 ) [2024-12-31 04:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:28:05' and `end` < '2024-12-31 04:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:28:18] Production.INFO: count ==308 [2024-12-31 04:28:18] Production.ERROR: pbx CDR StartTime 2024-12-31 01:28:05 - End Time 2024-12-31 04:28:05 [2024-12-31 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141096', 'tblTempUsageDetail_20' ) start [2024-12-31 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141096', 'tblTempUsageDetail_20' ) end [2024-12-31 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141096', 'tblTempVendorCDR_20' ) start [2024-12-31 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141096', 'tblTempVendorCDR_20' ) end [2024-12-31 04:28:18] Production.INFO: ProcessCDR(1,14141096,1,1,2) [2024-12-31 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141096', 'tblTempUsageDetail_20' ) start [2024-12-31 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141096', 'tblTempUsageDetail_20' ) end [2024-12-31 04:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:28:21] Production.INFO: ==11962== Releasing lock... [2024-12-31 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:28:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-31 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:29:05 [end_date_ymd] => 2024-12-31 04:29:05 [RateCDR] => 1 ) [2024-12-31 04:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:29:05' and `end` < '2024-12-31 04:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:29:18] Production.INFO: count ==308 [2024-12-31 04:29:18] Production.ERROR: pbx CDR StartTime 2024-12-31 01:29:05 - End Time 2024-12-31 04:29:05 [2024-12-31 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141101', 'tblTempUsageDetail_20' ) start [2024-12-31 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141101', 'tblTempUsageDetail_20' ) end [2024-12-31 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141101', 'tblTempVendorCDR_20' ) start [2024-12-31 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141101', 'tblTempVendorCDR_20' ) end [2024-12-31 04:29:18] Production.INFO: ProcessCDR(1,14141101,1,1,2) [2024-12-31 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141101', 'tblTempUsageDetail_20' ) start [2024-12-31 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141101', 'tblTempUsageDetail_20' ) end [2024-12-31 04:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:29:21] Production.INFO: ==12032== Releasing lock... [2024-12-31 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:29:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-31 04:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:30:05 [end_date_ymd] => 2024-12-31 04:30:05 [RateCDR] => 1 ) [2024-12-31 04:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:30:05' and `end` < '2024-12-31 04:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:30:18] Production.INFO: count ==303 [2024-12-31 04:30:18] Production.ERROR: pbx CDR StartTime 2024-12-31 01:30:05 - End Time 2024-12-31 04:30:05 [2024-12-31 04:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141108', 'tblTempUsageDetail_20' ) start [2024-12-31 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141108', 'tblTempUsageDetail_20' ) end [2024-12-31 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141108', 'tblTempVendorCDR_20' ) start [2024-12-31 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141108', 'tblTempVendorCDR_20' ) end [2024-12-31 04:30:18] Production.INFO: ProcessCDR(1,14141108,1,1,2) [2024-12-31 04:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141108', 'tblTempUsageDetail_20' ) start [2024-12-31 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141108', 'tblTempUsageDetail_20' ) end [2024-12-31 04:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:30:21] Production.INFO: ==12108== Releasing lock... [2024-12-31 04:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:30:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-31 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:31:05 [end_date_ymd] => 2024-12-31 04:31:05 [RateCDR] => 1 ) [2024-12-31 04:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:31:05' and `end` < '2024-12-31 04:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:31:17] Production.INFO: count ==283 [2024-12-31 04:31:17] Production.ERROR: pbx CDR StartTime 2024-12-31 01:31:05 - End Time 2024-12-31 04:31:05 [2024-12-31 04:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141113', 'tblTempUsageDetail_20' ) start [2024-12-31 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141113', 'tblTempUsageDetail_20' ) end [2024-12-31 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141113', 'tblTempVendorCDR_20' ) start [2024-12-31 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141113', 'tblTempVendorCDR_20' ) end [2024-12-31 04:31:17] Production.INFO: ProcessCDR(1,14141113,1,1,2) [2024-12-31 04:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141113', 'tblTempUsageDetail_20' ) start [2024-12-31 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141113', 'tblTempUsageDetail_20' ) end [2024-12-31 04:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:31:21] Production.INFO: ==12251== Releasing lock... [2024-12-31 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:31:21] Production.INFO: 30.5 MB #Memory Used# [2024-12-31 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:32:05 [end_date_ymd] => 2024-12-31 04:32:05 [RateCDR] => 1 ) [2024-12-31 04:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:32:05' and `end` < '2024-12-31 04:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:32:18] Production.INFO: count ==283 [2024-12-31 04:32:18] Production.ERROR: pbx CDR StartTime 2024-12-31 01:32:05 - End Time 2024-12-31 04:32:05 [2024-12-31 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141118', 'tblTempUsageDetail_20' ) start [2024-12-31 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141118', 'tblTempUsageDetail_20' ) end [2024-12-31 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141118', 'tblTempVendorCDR_20' ) start [2024-12-31 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141118', 'tblTempVendorCDR_20' ) end [2024-12-31 04:32:18] Production.INFO: ProcessCDR(1,14141118,1,1,2) [2024-12-31 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141118', 'tblTempUsageDetail_20' ) start [2024-12-31 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141118', 'tblTempUsageDetail_20' ) end [2024-12-31 04:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:32:21] Production.INFO: ==12322== Releasing lock... [2024-12-31 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:32:21] Production.INFO: 30.5 MB #Memory Used# [2024-12-31 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:33:05 [end_date_ymd] => 2024-12-31 04:33:05 [RateCDR] => 1 ) [2024-12-31 04:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:33:05' and `end` < '2024-12-31 04:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:33:18] Production.INFO: count ==282 [2024-12-31 04:33:18] Production.ERROR: pbx CDR StartTime 2024-12-31 01:33:05 - End Time 2024-12-31 04:33:05 [2024-12-31 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141123', 'tblTempUsageDetail_20' ) start [2024-12-31 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141123', 'tblTempUsageDetail_20' ) end [2024-12-31 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141123', 'tblTempVendorCDR_20' ) start [2024-12-31 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141123', 'tblTempVendorCDR_20' ) end [2024-12-31 04:33:18] Production.INFO: ProcessCDR(1,14141123,1,1,2) [2024-12-31 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141123', 'tblTempUsageDetail_20' ) start [2024-12-31 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141123', 'tblTempUsageDetail_20' ) end [2024-12-31 04:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:33:21] Production.INFO: ==12393== Releasing lock... [2024-12-31 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:33:21] Production.INFO: 30.5 MB #Memory Used# [2024-12-31 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:34:05 [end_date_ymd] => 2024-12-31 04:34:05 [RateCDR] => 1 ) [2024-12-31 04:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:34:05' and `end` < '2024-12-31 04:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:34:18] Production.INFO: count ==282 [2024-12-31 04:34:18] Production.ERROR: pbx CDR StartTime 2024-12-31 01:34:05 - End Time 2024-12-31 04:34:05 [2024-12-31 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141128', 'tblTempUsageDetail_20' ) start [2024-12-31 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141128', 'tblTempUsageDetail_20' ) end [2024-12-31 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141128', 'tblTempVendorCDR_20' ) start [2024-12-31 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141128', 'tblTempVendorCDR_20' ) end [2024-12-31 04:34:18] Production.INFO: ProcessCDR(1,14141128,1,1,2) [2024-12-31 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141128', 'tblTempUsageDetail_20' ) start [2024-12-31 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141128', 'tblTempUsageDetail_20' ) end [2024-12-31 04:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:34:21] Production.INFO: ==12463== Releasing lock... [2024-12-31 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:34:21] Production.INFO: 30.5 MB #Memory Used# [2024-12-31 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:35:05 [end_date_ymd] => 2024-12-31 04:35:05 [RateCDR] => 1 ) [2024-12-31 04:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:35:05' and `end` < '2024-12-31 04:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:35:18] Production.INFO: count ==281 [2024-12-31 04:35:18] Production.ERROR: pbx CDR StartTime 2024-12-31 01:35:05 - End Time 2024-12-31 04:35:05 [2024-12-31 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141133', 'tblTempUsageDetail_20' ) start [2024-12-31 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141133', 'tblTempUsageDetail_20' ) end [2024-12-31 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141133', 'tblTempVendorCDR_20' ) start [2024-12-31 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141133', 'tblTempVendorCDR_20' ) end [2024-12-31 04:35:18] Production.INFO: ProcessCDR(1,14141133,1,1,2) [2024-12-31 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141133', 'tblTempUsageDetail_20' ) start [2024-12-31 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141133', 'tblTempUsageDetail_20' ) end [2024-12-31 04:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:35:21] Production.INFO: ==12534== Releasing lock... [2024-12-31 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:35:21] Production.INFO: 30.5 MB #Memory Used# [2024-12-31 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:36:05 [end_date_ymd] => 2024-12-31 04:36:05 [RateCDR] => 1 ) [2024-12-31 04:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:36:05' and `end` < '2024-12-31 04:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:36:18] Production.INFO: count ==246 [2024-12-31 04:36:18] Production.ERROR: pbx CDR StartTime 2024-12-31 01:36:05 - End Time 2024-12-31 04:36:05 [2024-12-31 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141138', 'tblTempUsageDetail_20' ) start [2024-12-31 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141138', 'tblTempUsageDetail_20' ) end [2024-12-31 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141138', 'tblTempVendorCDR_20' ) start [2024-12-31 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141138', 'tblTempVendorCDR_20' ) end [2024-12-31 04:36:18] Production.INFO: ProcessCDR(1,14141138,1,1,2) [2024-12-31 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141138', 'tblTempUsageDetail_20' ) start [2024-12-31 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141138', 'tblTempUsageDetail_20' ) end [2024-12-31 04:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:36:21] Production.INFO: ==12606== Releasing lock... [2024-12-31 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:36:21] Production.INFO: 30.5 MB #Memory Used# [2024-12-31 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:37:05 [end_date_ymd] => 2024-12-31 04:37:05 [RateCDR] => 1 ) [2024-12-31 04:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:37:05' and `end` < '2024-12-31 04:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:37:18] Production.INFO: count ==116 [2024-12-31 04:37:18] Production.ERROR: pbx CDR StartTime 2024-12-31 01:37:05 - End Time 2024-12-31 04:37:05 [2024-12-31 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141143', 'tblTempUsageDetail_20' ) start [2024-12-31 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141143', 'tblTempUsageDetail_20' ) end [2024-12-31 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141143', 'tblTempVendorCDR_20' ) start [2024-12-31 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141143', 'tblTempVendorCDR_20' ) end [2024-12-31 04:37:18] Production.INFO: ProcessCDR(1,14141143,1,1,2) [2024-12-31 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141143', 'tblTempUsageDetail_20' ) start [2024-12-31 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141143', 'tblTempUsageDetail_20' ) end [2024-12-31 04:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:37:21] Production.INFO: ==12683== Releasing lock... [2024-12-31 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:37:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-31 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:38:05 [end_date_ymd] => 2024-12-31 04:38:05 [RateCDR] => 1 ) [2024-12-31 04:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:38:05' and `end` < '2024-12-31 04:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:38:19] Production.INFO: count ==63 [2024-12-31 04:38:19] Production.ERROR: pbx CDR StartTime 2024-12-31 01:38:05 - End Time 2024-12-31 04:38:05 [2024-12-31 04:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141148', 'tblTempUsageDetail_20' ) start [2024-12-31 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141148', 'tblTempUsageDetail_20' ) end [2024-12-31 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141148', 'tblTempVendorCDR_20' ) start [2024-12-31 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141148', 'tblTempVendorCDR_20' ) end [2024-12-31 04:38:19] Production.INFO: ProcessCDR(1,14141148,1,1,2) [2024-12-31 04:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141148', 'tblTempUsageDetail_20' ) start [2024-12-31 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141148', 'tblTempUsageDetail_20' ) end [2024-12-31 04:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:38:22] Production.INFO: ==12755== Releasing lock... [2024-12-31 04:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:38:22] Production.INFO: 28 MB #Memory Used# [2024-12-31 04:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:39:04 [end_date_ymd] => 2024-12-31 04:39:04 [RateCDR] => 1 ) [2024-12-31 04:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:39:04' and `end` < '2024-12-31 04:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:39:18] Production.INFO: count ==63 [2024-12-31 04:39:18] Production.ERROR: pbx CDR StartTime 2024-12-31 01:39:04 - End Time 2024-12-31 04:39:04 [2024-12-31 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141153', 'tblTempUsageDetail_20' ) start [2024-12-31 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141153', 'tblTempUsageDetail_20' ) end [2024-12-31 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141153', 'tblTempVendorCDR_20' ) start [2024-12-31 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141153', 'tblTempVendorCDR_20' ) end [2024-12-31 04:39:18] Production.INFO: ProcessCDR(1,14141153,1,1,2) [2024-12-31 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141153', 'tblTempUsageDetail_20' ) start [2024-12-31 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141153', 'tblTempUsageDetail_20' ) end [2024-12-31 04:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:39:21] Production.INFO: ==12834== Releasing lock... [2024-12-31 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:39:21] Production.INFO: 28 MB #Memory Used# [2024-12-31 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:40:06 [end_date_ymd] => 2024-12-31 04:40:06 [RateCDR] => 1 ) [2024-12-31 04:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:40:06' and `end` < '2024-12-31 04:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:40:18] Production.INFO: count ==54 [2024-12-31 04:40:18] Production.ERROR: pbx CDR StartTime 2024-12-31 01:40:06 - End Time 2024-12-31 04:40:06 [2024-12-31 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141158', 'tblTempUsageDetail_20' ) start [2024-12-31 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141158', 'tblTempUsageDetail_20' ) end [2024-12-31 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141158', 'tblTempVendorCDR_20' ) start [2024-12-31 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141158', 'tblTempVendorCDR_20' ) end [2024-12-31 04:40:18] Production.INFO: ProcessCDR(1,14141158,1,1,2) [2024-12-31 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141158', 'tblTempUsageDetail_20' ) start [2024-12-31 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141158', 'tblTempUsageDetail_20' ) end [2024-12-31 04:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:40:21] Production.INFO: ==12920== Releasing lock... [2024-12-31 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:40:21] Production.INFO: 28 MB #Memory Used# [2024-12-31 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:41:05 [end_date_ymd] => 2024-12-31 04:41:05 [RateCDR] => 1 ) [2024-12-31 04:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:41:05' and `end` < '2024-12-31 04:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:41:17] Production.INFO: count ==47 [2024-12-31 04:41:17] Production.ERROR: pbx CDR StartTime 2024-12-31 01:41:05 - End Time 2024-12-31 04:41:05 [2024-12-31 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141164', 'tblTempUsageDetail_20' ) start [2024-12-31 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141164', 'tblTempUsageDetail_20' ) end [2024-12-31 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141164', 'tblTempVendorCDR_20' ) start [2024-12-31 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141164', 'tblTempVendorCDR_20' ) end [2024-12-31 04:41:17] Production.INFO: ProcessCDR(1,14141164,1,1,2) [2024-12-31 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141164', 'tblTempUsageDetail_20' ) start [2024-12-31 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141164', 'tblTempUsageDetail_20' ) end [2024-12-31 04:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:41:20] Production.INFO: ==13005== Releasing lock... [2024-12-31 04:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:41:20] Production.INFO: 28 MB #Memory Used# [2024-12-31 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:42:05 [end_date_ymd] => 2024-12-31 04:42:05 [RateCDR] => 1 ) [2024-12-31 04:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:42:05' and `end` < '2024-12-31 04:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:42:19] Production.INFO: count ==47 [2024-12-31 04:42:19] Production.ERROR: pbx CDR StartTime 2024-12-31 01:42:05 - End Time 2024-12-31 04:42:05 [2024-12-31 04:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141169', 'tblTempUsageDetail_20' ) start [2024-12-31 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141169', 'tblTempUsageDetail_20' ) end [2024-12-31 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141169', 'tblTempVendorCDR_20' ) start [2024-12-31 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141169', 'tblTempVendorCDR_20' ) end [2024-12-31 04:42:19] Production.INFO: ProcessCDR(1,14141169,1,1,2) [2024-12-31 04:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141169', 'tblTempUsageDetail_20' ) start [2024-12-31 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141169', 'tblTempUsageDetail_20' ) end [2024-12-31 04:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:42:22] Production.INFO: ==13089== Releasing lock... [2024-12-31 04:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:42:22] Production.INFO: 28 MB #Memory Used# [2024-12-31 04:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:43:04 [end_date_ymd] => 2024-12-31 04:43:04 [RateCDR] => 1 ) [2024-12-31 04:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:43:04' and `end` < '2024-12-31 04:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:43:17] Production.INFO: count ==47 [2024-12-31 04:43:17] Production.ERROR: pbx CDR StartTime 2024-12-31 01:43:04 - End Time 2024-12-31 04:43:04 [2024-12-31 04:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141174', 'tblTempUsageDetail_20' ) start [2024-12-31 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141174', 'tblTempUsageDetail_20' ) end [2024-12-31 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141174', 'tblTempVendorCDR_20' ) start [2024-12-31 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141174', 'tblTempVendorCDR_20' ) end [2024-12-31 04:43:17] Production.INFO: ProcessCDR(1,14141174,1,1,2) [2024-12-31 04:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141174', 'tblTempUsageDetail_20' ) start [2024-12-31 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141174', 'tblTempUsageDetail_20' ) end [2024-12-31 04:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:43:20] Production.INFO: ==13170== Releasing lock... [2024-12-31 04:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:43:20] Production.INFO: 28 MB #Memory Used# [2024-12-31 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:44:05 [end_date_ymd] => 2024-12-31 04:44:05 [RateCDR] => 1 ) [2024-12-31 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:44:05' and `end` < '2024-12-31 04:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:44:18] Production.INFO: count ==47 [2024-12-31 04:44:18] Production.ERROR: pbx CDR StartTime 2024-12-31 01:44:05 - End Time 2024-12-31 04:44:05 [2024-12-31 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141179', 'tblTempUsageDetail_20' ) start [2024-12-31 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141179', 'tblTempUsageDetail_20' ) end [2024-12-31 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141179', 'tblTempVendorCDR_20' ) start [2024-12-31 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141179', 'tblTempVendorCDR_20' ) end [2024-12-31 04:44:18] Production.INFO: ProcessCDR(1,14141179,1,1,2) [2024-12-31 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141179', 'tblTempUsageDetail_20' ) start [2024-12-31 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141179', 'tblTempUsageDetail_20' ) end [2024-12-31 04:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:44:21] Production.INFO: ==13255== Releasing lock... [2024-12-31 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:44:21] Production.INFO: 28 MB #Memory Used# [2024-12-31 04:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:45:04 [end_date_ymd] => 2024-12-31 04:45:04 [RateCDR] => 1 ) [2024-12-31 04:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:45:04' and `end` < '2024-12-31 04:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:45:17] Production.INFO: count ==47 [2024-12-31 04:45:17] Production.ERROR: pbx CDR StartTime 2024-12-31 01:45:04 - End Time 2024-12-31 04:45:04 [2024-12-31 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141184', 'tblTempUsageDetail_20' ) start [2024-12-31 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141184', 'tblTempUsageDetail_20' ) end [2024-12-31 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141184', 'tblTempVendorCDR_20' ) start [2024-12-31 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141184', 'tblTempVendorCDR_20' ) end [2024-12-31 04:45:17] Production.INFO: ProcessCDR(1,14141184,1,1,2) [2024-12-31 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141184', 'tblTempUsageDetail_20' ) start [2024-12-31 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141184', 'tblTempUsageDetail_20' ) end [2024-12-31 04:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:45:20] Production.INFO: ==13336== Releasing lock... [2024-12-31 04:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:45:20] Production.INFO: 28 MB #Memory Used# [2024-12-31 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:46:05 [end_date_ymd] => 2024-12-31 04:46:05 [RateCDR] => 1 ) [2024-12-31 04:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:46:05' and `end` < '2024-12-31 04:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:46:20] Production.INFO: count ==47 [2024-12-31 04:46:20] Production.ERROR: pbx CDR StartTime 2024-12-31 01:46:05 - End Time 2024-12-31 04:46:05 [2024-12-31 04:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141189', 'tblTempUsageDetail_20' ) start [2024-12-31 04:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141189', 'tblTempUsageDetail_20' ) end [2024-12-31 04:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141189', 'tblTempVendorCDR_20' ) start [2024-12-31 04:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141189', 'tblTempVendorCDR_20' ) end [2024-12-31 04:46:20] Production.INFO: ProcessCDR(1,14141189,1,1,2) [2024-12-31 04:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141189', 'tblTempUsageDetail_20' ) start [2024-12-31 04:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141189', 'tblTempUsageDetail_20' ) end [2024-12-31 04:46:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:46:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:46:23] Production.INFO: ==13461== Releasing lock... [2024-12-31 04:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:46:23] Production.INFO: 28 MB #Memory Used# [2024-12-31 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:47:05 [end_date_ymd] => 2024-12-31 04:47:05 [RateCDR] => 1 ) [2024-12-31 04:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:47:05' and `end` < '2024-12-31 04:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:47:20] Production.INFO: count ==47 [2024-12-31 04:47:20] Production.ERROR: pbx CDR StartTime 2024-12-31 01:47:05 - End Time 2024-12-31 04:47:05 [2024-12-31 04:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141194', 'tblTempUsageDetail_20' ) start [2024-12-31 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141194', 'tblTempUsageDetail_20' ) end [2024-12-31 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141194', 'tblTempVendorCDR_20' ) start [2024-12-31 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141194', 'tblTempVendorCDR_20' ) end [2024-12-31 04:47:20] Production.INFO: ProcessCDR(1,14141194,1,1,2) [2024-12-31 04:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141194', 'tblTempUsageDetail_20' ) start [2024-12-31 04:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141194', 'tblTempUsageDetail_20' ) end [2024-12-31 04:47:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:47:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:47:23] Production.INFO: ==13545== Releasing lock... [2024-12-31 04:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:47:23] Production.INFO: 28 MB #Memory Used# [2024-12-31 04:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:48:04 [end_date_ymd] => 2024-12-31 04:48:04 [RateCDR] => 1 ) [2024-12-31 04:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:48:04' and `end` < '2024-12-31 04:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:48:19] Production.INFO: count ==47 [2024-12-31 04:48:19] Production.ERROR: pbx CDR StartTime 2024-12-31 01:48:04 - End Time 2024-12-31 04:48:04 [2024-12-31 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141199', 'tblTempUsageDetail_20' ) start [2024-12-31 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141199', 'tblTempUsageDetail_20' ) end [2024-12-31 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141199', 'tblTempVendorCDR_20' ) start [2024-12-31 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141199', 'tblTempVendorCDR_20' ) end [2024-12-31 04:48:19] Production.INFO: ProcessCDR(1,14141199,1,1,2) [2024-12-31 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141199', 'tblTempUsageDetail_20' ) start [2024-12-31 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141199', 'tblTempUsageDetail_20' ) end [2024-12-31 04:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:48:22] Production.INFO: ==13629== Releasing lock... [2024-12-31 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:48:22] Production.INFO: 28 MB #Memory Used# [2024-12-31 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:49:05 [end_date_ymd] => 2024-12-31 04:49:05 [RateCDR] => 1 ) [2024-12-31 04:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:49:05' and `end` < '2024-12-31 04:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:49:19] Production.INFO: count ==47 [2024-12-31 04:49:19] Production.ERROR: pbx CDR StartTime 2024-12-31 01:49:05 - End Time 2024-12-31 04:49:05 [2024-12-31 04:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141204', 'tblTempUsageDetail_20' ) start [2024-12-31 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141204', 'tblTempUsageDetail_20' ) end [2024-12-31 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141204', 'tblTempVendorCDR_20' ) start [2024-12-31 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141204', 'tblTempVendorCDR_20' ) end [2024-12-31 04:49:19] Production.INFO: ProcessCDR(1,14141204,1,1,2) [2024-12-31 04:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141204', 'tblTempUsageDetail_20' ) start [2024-12-31 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141204', 'tblTempUsageDetail_20' ) end [2024-12-31 04:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:49:22] Production.INFO: ==13716== Releasing lock... [2024-12-31 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:49:22] Production.INFO: 28 MB #Memory Used# [2024-12-31 04:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:50:05 [end_date_ymd] => 2024-12-31 04:50:05 [RateCDR] => 1 ) [2024-12-31 04:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:50:05' and `end` < '2024-12-31 04:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:50:19] Production.INFO: count ==43 [2024-12-31 04:50:19] Production.ERROR: pbx CDR StartTime 2024-12-31 01:50:05 - End Time 2024-12-31 04:50:05 [2024-12-31 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141209', 'tblTempUsageDetail_20' ) start [2024-12-31 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141209', 'tblTempUsageDetail_20' ) end [2024-12-31 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141209', 'tblTempVendorCDR_20' ) start [2024-12-31 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141209', 'tblTempVendorCDR_20' ) end [2024-12-31 04:50:19] Production.INFO: ProcessCDR(1,14141209,1,1,2) [2024-12-31 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141209', 'tblTempUsageDetail_20' ) start [2024-12-31 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141209', 'tblTempUsageDetail_20' ) end [2024-12-31 04:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:50:22] Production.INFO: ==13802== Releasing lock... [2024-12-31 04:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:50:22] Production.INFO: 28 MB #Memory Used# [2024-12-31 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:51:05 [end_date_ymd] => 2024-12-31 04:51:05 [RateCDR] => 1 ) [2024-12-31 04:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:51:05' and `end` < '2024-12-31 04:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:51:20] Production.INFO: count ==43 [2024-12-31 04:51:20] Production.ERROR: pbx CDR StartTime 2024-12-31 01:51:05 - End Time 2024-12-31 04:51:05 [2024-12-31 04:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141215', 'tblTempUsageDetail_20' ) start [2024-12-31 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141215', 'tblTempUsageDetail_20' ) end [2024-12-31 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141215', 'tblTempVendorCDR_20' ) start [2024-12-31 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141215', 'tblTempVendorCDR_20' ) end [2024-12-31 04:51:20] Production.INFO: ProcessCDR(1,14141215,1,1,2) [2024-12-31 04:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141215', 'tblTempUsageDetail_20' ) start [2024-12-31 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141215', 'tblTempUsageDetail_20' ) end [2024-12-31 04:51:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:51:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:51:23] Production.INFO: ==13883== Releasing lock... [2024-12-31 04:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:51:23] Production.INFO: 28 MB #Memory Used# [2024-12-31 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:52:05 [end_date_ymd] => 2024-12-31 04:52:05 [RateCDR] => 1 ) [2024-12-31 04:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:52:05' and `end` < '2024-12-31 04:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:52:19] Production.INFO: count ==43 [2024-12-31 04:52:19] Production.ERROR: pbx CDR StartTime 2024-12-31 01:52:05 - End Time 2024-12-31 04:52:05 [2024-12-31 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141220', 'tblTempUsageDetail_20' ) start [2024-12-31 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141220', 'tblTempUsageDetail_20' ) end [2024-12-31 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141220', 'tblTempVendorCDR_20' ) start [2024-12-31 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141220', 'tblTempVendorCDR_20' ) end [2024-12-31 04:52:19] Production.INFO: ProcessCDR(1,14141220,1,1,2) [2024-12-31 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141220', 'tblTempUsageDetail_20' ) start [2024-12-31 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141220', 'tblTempUsageDetail_20' ) end [2024-12-31 04:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:52:22] Production.INFO: ==13972== Releasing lock... [2024-12-31 04:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:52:22] Production.INFO: 28 MB #Memory Used# [2024-12-31 04:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:53:04 [end_date_ymd] => 2024-12-31 04:53:04 [RateCDR] => 1 ) [2024-12-31 04:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:53:04' and `end` < '2024-12-31 04:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:53:20] Production.INFO: count ==43 [2024-12-31 04:53:20] Production.ERROR: pbx CDR StartTime 2024-12-31 01:53:04 - End Time 2024-12-31 04:53:04 [2024-12-31 04:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141225', 'tblTempUsageDetail_20' ) start [2024-12-31 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141225', 'tblTempUsageDetail_20' ) end [2024-12-31 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141225', 'tblTempVendorCDR_20' ) start [2024-12-31 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141225', 'tblTempVendorCDR_20' ) end [2024-12-31 04:53:20] Production.INFO: ProcessCDR(1,14141225,1,1,2) [2024-12-31 04:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141225', 'tblTempUsageDetail_20' ) start [2024-12-31 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141225', 'tblTempUsageDetail_20' ) end [2024-12-31 04:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:53:22] Production.INFO: ==14059== Releasing lock... [2024-12-31 04:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:53:22] Production.INFO: 28 MB #Memory Used# [2024-12-31 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:54:05 [end_date_ymd] => 2024-12-31 04:54:05 [RateCDR] => 1 ) [2024-12-31 04:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:54:05' and `end` < '2024-12-31 04:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:54:21] Production.INFO: count ==43 [2024-12-31 04:54:21] Production.ERROR: pbx CDR StartTime 2024-12-31 01:54:05 - End Time 2024-12-31 04:54:05 [2024-12-31 04:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141230', 'tblTempUsageDetail_20' ) start [2024-12-31 04:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141230', 'tblTempUsageDetail_20' ) end [2024-12-31 04:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141230', 'tblTempVendorCDR_20' ) start [2024-12-31 04:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141230', 'tblTempVendorCDR_20' ) end [2024-12-31 04:54:21] Production.INFO: ProcessCDR(1,14141230,1,1,2) [2024-12-31 04:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141230', 'tblTempUsageDetail_20' ) start [2024-12-31 04:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141230', 'tblTempUsageDetail_20' ) end [2024-12-31 04:54:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:54:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:54:24] Production.INFO: ==14146== Releasing lock... [2024-12-31 04:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:54:24] Production.INFO: 28 MB #Memory Used# [2024-12-31 04:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:55:04 [end_date_ymd] => 2024-12-31 04:55:04 [RateCDR] => 1 ) [2024-12-31 04:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:55:04' and `end` < '2024-12-31 04:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:55:19] Production.INFO: count ==42 [2024-12-31 04:55:19] Production.ERROR: pbx CDR StartTime 2024-12-31 01:55:04 - End Time 2024-12-31 04:55:04 [2024-12-31 04:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141235', 'tblTempUsageDetail_20' ) start [2024-12-31 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141235', 'tblTempUsageDetail_20' ) end [2024-12-31 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141235', 'tblTempVendorCDR_20' ) start [2024-12-31 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141235', 'tblTempVendorCDR_20' ) end [2024-12-31 04:55:19] Production.INFO: ProcessCDR(1,14141235,1,1,2) [2024-12-31 04:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141235', 'tblTempUsageDetail_20' ) start [2024-12-31 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141235', 'tblTempUsageDetail_20' ) end [2024-12-31 04:55:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:55:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:55:23] Production.INFO: ==14234== Releasing lock... [2024-12-31 04:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:55:23] Production.INFO: 28 MB #Memory Used# [2024-12-31 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:56:05 [end_date_ymd] => 2024-12-31 04:56:05 [RateCDR] => 1 ) [2024-12-31 04:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:56:05' and `end` < '2024-12-31 04:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:56:19] Production.INFO: count ==42 [2024-12-31 04:56:19] Production.ERROR: pbx CDR StartTime 2024-12-31 01:56:05 - End Time 2024-12-31 04:56:05 [2024-12-31 04:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141240', 'tblTempUsageDetail_20' ) start [2024-12-31 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141240', 'tblTempUsageDetail_20' ) end [2024-12-31 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141240', 'tblTempVendorCDR_20' ) start [2024-12-31 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141240', 'tblTempVendorCDR_20' ) end [2024-12-31 04:56:19] Production.INFO: ProcessCDR(1,14141240,1,1,2) [2024-12-31 04:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141240', 'tblTempUsageDetail_20' ) start [2024-12-31 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141240', 'tblTempUsageDetail_20' ) end [2024-12-31 04:56:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:56:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:56:23] Production.INFO: ==14321== Releasing lock... [2024-12-31 04:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:56:23] Production.INFO: 28 MB #Memory Used# [2024-12-31 04:57:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:57:06 [end_date_ymd] => 2024-12-31 04:57:06 [RateCDR] => 1 ) [2024-12-31 04:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:57:06' and `end` < '2024-12-31 04:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:57:21] Production.INFO: count ==42 [2024-12-31 04:57:21] Production.ERROR: pbx CDR StartTime 2024-12-31 01:57:06 - End Time 2024-12-31 04:57:06 [2024-12-31 04:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141245', 'tblTempUsageDetail_20' ) start [2024-12-31 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141245', 'tblTempUsageDetail_20' ) end [2024-12-31 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141245', 'tblTempVendorCDR_20' ) start [2024-12-31 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141245', 'tblTempVendorCDR_20' ) end [2024-12-31 04:57:21] Production.INFO: ProcessCDR(1,14141245,1,1,2) [2024-12-31 04:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141245', 'tblTempUsageDetail_20' ) start [2024-12-31 04:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141245', 'tblTempUsageDetail_20' ) end [2024-12-31 04:57:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:57:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:57:24] Production.INFO: ==14406== Releasing lock... [2024-12-31 04:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:57:24] Production.INFO: 28 MB #Memory Used# [2024-12-31 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:58:05 [end_date_ymd] => 2024-12-31 04:58:05 [RateCDR] => 1 ) [2024-12-31 04:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:58:05' and `end` < '2024-12-31 04:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:58:20] Production.INFO: count ==42 [2024-12-31 04:58:20] Production.ERROR: pbx CDR StartTime 2024-12-31 01:58:05 - End Time 2024-12-31 04:58:05 [2024-12-31 04:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141250', 'tblTempUsageDetail_20' ) start [2024-12-31 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141250', 'tblTempUsageDetail_20' ) end [2024-12-31 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141250', 'tblTempVendorCDR_20' ) start [2024-12-31 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141250', 'tblTempVendorCDR_20' ) end [2024-12-31 04:58:20] Production.INFO: ProcessCDR(1,14141250,1,1,2) [2024-12-31 04:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141250', 'tblTempUsageDetail_20' ) start [2024-12-31 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141250', 'tblTempUsageDetail_20' ) end [2024-12-31 04:58:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:58:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:58:23] Production.INFO: ==14490== Releasing lock... [2024-12-31 04:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:58:23] Production.INFO: 28 MB #Memory Used# [2024-12-31 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 01:59:05 [end_date_ymd] => 2024-12-31 04:59:05 [RateCDR] => 1 ) [2024-12-31 04:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 01:59:05' and `end` < '2024-12-31 04:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 04:59:23] Production.INFO: count ==42 [2024-12-31 04:59:23] Production.ERROR: pbx CDR StartTime 2024-12-31 01:59:05 - End Time 2024-12-31 04:59:05 [2024-12-31 04:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 04:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141255', 'tblTempUsageDetail_20' ) start [2024-12-31 04:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141255', 'tblTempUsageDetail_20' ) end [2024-12-31 04:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141255', 'tblTempVendorCDR_20' ) start [2024-12-31 04:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141255', 'tblTempVendorCDR_20' ) end [2024-12-31 04:59:23] Production.INFO: ProcessCDR(1,14141255,1,1,2) [2024-12-31 04:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 04:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 04:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141255', 'tblTempUsageDetail_20' ) start [2024-12-31 04:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141255', 'tblTempUsageDetail_20' ) end [2024-12-31 04:59:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 04:59:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 04:59:26] Production.INFO: ==14568== Releasing lock... [2024-12-31 04:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 04:59:26] Production.INFO: 28 MB #Memory Used# [2024-12-31 05:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:00:05 [end_date_ymd] => 2024-12-31 05:00:05 [RateCDR] => 1 ) [2024-12-31 05:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:00:05' and `end` < '2024-12-31 05:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:00:23] Production.INFO: count ==38 [2024-12-31 05:00:23] Production.ERROR: pbx CDR StartTime 2024-12-31 02:00:05 - End Time 2024-12-31 05:00:05 [2024-12-31 05:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141260', 'tblTempUsageDetail_20' ) start [2024-12-31 05:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141260', 'tblTempUsageDetail_20' ) end [2024-12-31 05:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141260', 'tblTempVendorCDR_20' ) start [2024-12-31 05:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141260', 'tblTempVendorCDR_20' ) end [2024-12-31 05:00:23] Production.INFO: ProcessCDR(1,14141260,1,1,2) [2024-12-31 05:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141260', 'tblTempUsageDetail_20' ) start [2024-12-31 05:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141260', 'tblTempUsageDetail_20' ) end [2024-12-31 05:00:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:00:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:00:26] Production.INFO: ==14653== Releasing lock... [2024-12-31 05:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:00:26] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:01:05 [end_date_ymd] => 2024-12-31 05:01:05 [RateCDR] => 1 ) [2024-12-31 05:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:01:05' and `end` < '2024-12-31 05:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:01:21] Production.INFO: count ==38 [2024-12-31 05:01:21] Production.ERROR: pbx CDR StartTime 2024-12-31 02:01:05 - End Time 2024-12-31 05:01:05 [2024-12-31 05:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141266', 'tblTempUsageDetail_20' ) start [2024-12-31 05:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141266', 'tblTempUsageDetail_20' ) end [2024-12-31 05:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141266', 'tblTempVendorCDR_20' ) start [2024-12-31 05:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141266', 'tblTempVendorCDR_20' ) end [2024-12-31 05:01:21] Production.INFO: ProcessCDR(1,14141266,1,1,2) [2024-12-31 05:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141266', 'tblTempUsageDetail_20' ) start [2024-12-31 05:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141266', 'tblTempUsageDetail_20' ) end [2024-12-31 05:01:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:01:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:01:24] Production.INFO: ==14747== Releasing lock... [2024-12-31 05:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:01:24] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:02:05 [end_date_ymd] => 2024-12-31 05:02:05 [RateCDR] => 1 ) [2024-12-31 05:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:02:05' and `end` < '2024-12-31 05:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:02:21] Production.INFO: count ==38 [2024-12-31 05:02:21] Production.ERROR: pbx CDR StartTime 2024-12-31 02:02:05 - End Time 2024-12-31 05:02:05 [2024-12-31 05:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141271', 'tblTempUsageDetail_20' ) start [2024-12-31 05:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141271', 'tblTempUsageDetail_20' ) end [2024-12-31 05:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141271', 'tblTempVendorCDR_20' ) start [2024-12-31 05:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141271', 'tblTempVendorCDR_20' ) end [2024-12-31 05:02:21] Production.INFO: ProcessCDR(1,14141271,1,1,2) [2024-12-31 05:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141271', 'tblTempUsageDetail_20' ) start [2024-12-31 05:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141271', 'tblTempUsageDetail_20' ) end [2024-12-31 05:02:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:02:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:02:25] Production.INFO: ==14862== Releasing lock... [2024-12-31 05:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:02:25] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:03:05 [end_date_ymd] => 2024-12-31 05:03:05 [RateCDR] => 1 ) [2024-12-31 05:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:03:05' and `end` < '2024-12-31 05:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:03:20] Production.INFO: count ==38 [2024-12-31 05:03:20] Production.ERROR: pbx CDR StartTime 2024-12-31 02:03:05 - End Time 2024-12-31 05:03:05 [2024-12-31 05:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141276', 'tblTempUsageDetail_20' ) start [2024-12-31 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141276', 'tblTempUsageDetail_20' ) end [2024-12-31 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141276', 'tblTempVendorCDR_20' ) start [2024-12-31 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141276', 'tblTempVendorCDR_20' ) end [2024-12-31 05:03:20] Production.INFO: ProcessCDR(1,14141276,1,1,2) [2024-12-31 05:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141276', 'tblTempUsageDetail_20' ) start [2024-12-31 05:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141276', 'tblTempUsageDetail_20' ) end [2024-12-31 05:03:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:03:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:03:23] Production.INFO: ==14936== Releasing lock... [2024-12-31 05:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:03:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:04:04 [end_date_ymd] => 2024-12-31 05:04:04 [RateCDR] => 1 ) [2024-12-31 05:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:04:04' and `end` < '2024-12-31 05:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:04:17] Production.INFO: count ==38 [2024-12-31 05:04:17] Production.ERROR: pbx CDR StartTime 2024-12-31 02:04:04 - End Time 2024-12-31 05:04:04 [2024-12-31 05:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141281', 'tblTempUsageDetail_20' ) start [2024-12-31 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141281', 'tblTempUsageDetail_20' ) end [2024-12-31 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141281', 'tblTempVendorCDR_20' ) start [2024-12-31 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141281', 'tblTempVendorCDR_20' ) end [2024-12-31 05:04:17] Production.INFO: ProcessCDR(1,14141281,1,1,2) [2024-12-31 05:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141281', 'tblTempUsageDetail_20' ) start [2024-12-31 05:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141281', 'tblTempUsageDetail_20' ) end [2024-12-31 05:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:04:20] Production.INFO: ==15010== Releasing lock... [2024-12-31 05:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:04:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:05:05 [end_date_ymd] => 2024-12-31 05:05:05 [RateCDR] => 1 ) [2024-12-31 05:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:05:05' and `end` < '2024-12-31 05:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:05:17] Production.INFO: count ==38 [2024-12-31 05:05:17] Production.ERROR: pbx CDR StartTime 2024-12-31 02:05:05 - End Time 2024-12-31 05:05:05 [2024-12-31 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141286', 'tblTempUsageDetail_20' ) start [2024-12-31 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141286', 'tblTempUsageDetail_20' ) end [2024-12-31 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141286', 'tblTempVendorCDR_20' ) start [2024-12-31 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141286', 'tblTempVendorCDR_20' ) end [2024-12-31 05:05:17] Production.INFO: ProcessCDR(1,14141286,1,1,2) [2024-12-31 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141286', 'tblTempUsageDetail_20' ) start [2024-12-31 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141286', 'tblTempUsageDetail_20' ) end [2024-12-31 05:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:05:20] Production.INFO: ==15084== Releasing lock... [2024-12-31 05:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:05:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:06:05 [end_date_ymd] => 2024-12-31 05:06:05 [RateCDR] => 1 ) [2024-12-31 05:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:06:05' and `end` < '2024-12-31 05:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:06:22] Production.INFO: count ==38 [2024-12-31 05:06:22] Production.ERROR: pbx CDR StartTime 2024-12-31 02:06:05 - End Time 2024-12-31 05:06:05 [2024-12-31 05:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141291', 'tblTempUsageDetail_20' ) start [2024-12-31 05:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141291', 'tblTempUsageDetail_20' ) end [2024-12-31 05:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141291', 'tblTempVendorCDR_20' ) start [2024-12-31 05:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141291', 'tblTempVendorCDR_20' ) end [2024-12-31 05:06:22] Production.INFO: ProcessCDR(1,14141291,1,1,2) [2024-12-31 05:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141291', 'tblTempUsageDetail_20' ) start [2024-12-31 05:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141291', 'tblTempUsageDetail_20' ) end [2024-12-31 05:06:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:06:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:06:25] Production.INFO: ==15161== Releasing lock... [2024-12-31 05:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:06:25] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:07:04 [end_date_ymd] => 2024-12-31 05:07:04 [RateCDR] => 1 ) [2024-12-31 05:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:07:04' and `end` < '2024-12-31 05:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:07:17] Production.INFO: count ==38 [2024-12-31 05:07:17] Production.ERROR: pbx CDR StartTime 2024-12-31 02:07:04 - End Time 2024-12-31 05:07:04 [2024-12-31 05:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141296', 'tblTempUsageDetail_20' ) start [2024-12-31 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141296', 'tblTempUsageDetail_20' ) end [2024-12-31 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141296', 'tblTempVendorCDR_20' ) start [2024-12-31 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141296', 'tblTempVendorCDR_20' ) end [2024-12-31 05:07:17] Production.INFO: ProcessCDR(1,14141296,1,1,2) [2024-12-31 05:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141296', 'tblTempUsageDetail_20' ) start [2024-12-31 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141296', 'tblTempUsageDetail_20' ) end [2024-12-31 05:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:07:21] Production.INFO: ==15233== Releasing lock... [2024-12-31 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:07:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:08:05 [end_date_ymd] => 2024-12-31 05:08:05 [RateCDR] => 1 ) [2024-12-31 05:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:08:05' and `end` < '2024-12-31 05:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:08:19] Production.INFO: count ==38 [2024-12-31 05:08:19] Production.ERROR: pbx CDR StartTime 2024-12-31 02:08:05 - End Time 2024-12-31 05:08:05 [2024-12-31 05:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141301', 'tblTempUsageDetail_20' ) start [2024-12-31 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141301', 'tblTempUsageDetail_20' ) end [2024-12-31 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141301', 'tblTempVendorCDR_20' ) start [2024-12-31 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141301', 'tblTempVendorCDR_20' ) end [2024-12-31 05:08:19] Production.INFO: ProcessCDR(1,14141301,1,1,2) [2024-12-31 05:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141301', 'tblTempUsageDetail_20' ) start [2024-12-31 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141301', 'tblTempUsageDetail_20' ) end [2024-12-31 05:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:08:22] Production.INFO: ==15307== Releasing lock... [2024-12-31 05:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:08:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:09:05 [end_date_ymd] => 2024-12-31 05:09:05 [RateCDR] => 1 ) [2024-12-31 05:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:09:05' and `end` < '2024-12-31 05:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:09:17] Production.INFO: count ==38 [2024-12-31 05:09:17] Production.ERROR: pbx CDR StartTime 2024-12-31 02:09:05 - End Time 2024-12-31 05:09:05 [2024-12-31 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141306', 'tblTempUsageDetail_20' ) start [2024-12-31 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141306', 'tblTempUsageDetail_20' ) end [2024-12-31 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141306', 'tblTempVendorCDR_20' ) start [2024-12-31 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141306', 'tblTempVendorCDR_20' ) end [2024-12-31 05:09:17] Production.INFO: ProcessCDR(1,14141306,1,1,2) [2024-12-31 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141306', 'tblTempUsageDetail_20' ) start [2024-12-31 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141306', 'tblTempUsageDetail_20' ) end [2024-12-31 05:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:09:20] Production.INFO: ==15378== Releasing lock... [2024-12-31 05:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:09:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:10:05 [end_date_ymd] => 2024-12-31 05:10:05 [RateCDR] => 1 ) [2024-12-31 05:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:10:05' and `end` < '2024-12-31 05:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:10:18] Production.INFO: count ==32 [2024-12-31 05:10:18] Production.ERROR: pbx CDR StartTime 2024-12-31 02:10:05 - End Time 2024-12-31 05:10:05 [2024-12-31 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141311', 'tblTempUsageDetail_20' ) start [2024-12-31 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141311', 'tblTempUsageDetail_20' ) end [2024-12-31 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141311', 'tblTempVendorCDR_20' ) start [2024-12-31 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141311', 'tblTempVendorCDR_20' ) end [2024-12-31 05:10:18] Production.INFO: ProcessCDR(1,14141311,1,1,2) [2024-12-31 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141311', 'tblTempUsageDetail_20' ) start [2024-12-31 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141311', 'tblTempUsageDetail_20' ) end [2024-12-31 05:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:10:21] Production.INFO: ==15455== Releasing lock... [2024-12-31 05:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:10:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:11:05 [end_date_ymd] => 2024-12-31 05:11:05 [RateCDR] => 1 ) [2024-12-31 05:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:11:05' and `end` < '2024-12-31 05:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:11:18] Production.INFO: count ==27 [2024-12-31 05:11:18] Production.ERROR: pbx CDR StartTime 2024-12-31 02:11:05 - End Time 2024-12-31 05:11:05 [2024-12-31 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141317', 'tblTempUsageDetail_20' ) start [2024-12-31 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141317', 'tblTempUsageDetail_20' ) end [2024-12-31 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141317', 'tblTempVendorCDR_20' ) start [2024-12-31 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141317', 'tblTempVendorCDR_20' ) end [2024-12-31 05:11:18] Production.INFO: ProcessCDR(1,14141317,1,1,2) [2024-12-31 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141317', 'tblTempUsageDetail_20' ) start [2024-12-31 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141317', 'tblTempUsageDetail_20' ) end [2024-12-31 05:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:11:21] Production.INFO: ==15529== Releasing lock... [2024-12-31 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:11:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:12:05 [end_date_ymd] => 2024-12-31 05:12:05 [RateCDR] => 1 ) [2024-12-31 05:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:12:05' and `end` < '2024-12-31 05:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:12:18] Production.INFO: count ==27 [2024-12-31 05:12:18] Production.ERROR: pbx CDR StartTime 2024-12-31 02:12:05 - End Time 2024-12-31 05:12:05 [2024-12-31 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141322', 'tblTempUsageDetail_20' ) start [2024-12-31 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141322', 'tblTempUsageDetail_20' ) end [2024-12-31 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141322', 'tblTempVendorCDR_20' ) start [2024-12-31 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141322', 'tblTempVendorCDR_20' ) end [2024-12-31 05:12:18] Production.INFO: ProcessCDR(1,14141322,1,1,2) [2024-12-31 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141322', 'tblTempUsageDetail_20' ) start [2024-12-31 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141322', 'tblTempUsageDetail_20' ) end [2024-12-31 05:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:12:21] Production.INFO: ==15600== Releasing lock... [2024-12-31 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:12:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:13:05 [end_date_ymd] => 2024-12-31 05:13:05 [RateCDR] => 1 ) [2024-12-31 05:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:13:05' and `end` < '2024-12-31 05:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:13:17] Production.INFO: count ==27 [2024-12-31 05:13:17] Production.ERROR: pbx CDR StartTime 2024-12-31 02:13:05 - End Time 2024-12-31 05:13:05 [2024-12-31 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141327', 'tblTempUsageDetail_20' ) start [2024-12-31 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141327', 'tblTempUsageDetail_20' ) end [2024-12-31 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141327', 'tblTempVendorCDR_20' ) start [2024-12-31 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141327', 'tblTempVendorCDR_20' ) end [2024-12-31 05:13:17] Production.INFO: ProcessCDR(1,14141327,1,1,2) [2024-12-31 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141327', 'tblTempUsageDetail_20' ) start [2024-12-31 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141327', 'tblTempUsageDetail_20' ) end [2024-12-31 05:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:13:20] Production.INFO: ==15676== Releasing lock... [2024-12-31 05:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:13:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:14:05 [end_date_ymd] => 2024-12-31 05:14:05 [RateCDR] => 1 ) [2024-12-31 05:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:14:05' and `end` < '2024-12-31 05:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:14:18] Production.INFO: count ==27 [2024-12-31 05:14:18] Production.ERROR: pbx CDR StartTime 2024-12-31 02:14:05 - End Time 2024-12-31 05:14:05 [2024-12-31 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141332', 'tblTempUsageDetail_20' ) start [2024-12-31 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141332', 'tblTempUsageDetail_20' ) end [2024-12-31 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141332', 'tblTempVendorCDR_20' ) start [2024-12-31 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141332', 'tblTempVendorCDR_20' ) end [2024-12-31 05:14:18] Production.INFO: ProcessCDR(1,14141332,1,1,2) [2024-12-31 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141332', 'tblTempUsageDetail_20' ) start [2024-12-31 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141332', 'tblTempUsageDetail_20' ) end [2024-12-31 05:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:14:21] Production.INFO: ==15748== Releasing lock... [2024-12-31 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:14:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:15:05 [end_date_ymd] => 2024-12-31 05:15:05 [RateCDR] => 1 ) [2024-12-31 05:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:15:05' and `end` < '2024-12-31 05:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:15:17] Production.INFO: count ==27 [2024-12-31 05:15:17] Production.ERROR: pbx CDR StartTime 2024-12-31 02:15:05 - End Time 2024-12-31 05:15:05 [2024-12-31 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141337', 'tblTempUsageDetail_20' ) start [2024-12-31 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141337', 'tblTempUsageDetail_20' ) end [2024-12-31 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141337', 'tblTempVendorCDR_20' ) start [2024-12-31 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141337', 'tblTempVendorCDR_20' ) end [2024-12-31 05:15:17] Production.INFO: ProcessCDR(1,14141337,1,1,2) [2024-12-31 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141337', 'tblTempUsageDetail_20' ) start [2024-12-31 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141337', 'tblTempUsageDetail_20' ) end [2024-12-31 05:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:15:20] Production.INFO: ==15820== Releasing lock... [2024-12-31 05:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:15:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:16:05 [end_date_ymd] => 2024-12-31 05:16:05 [RateCDR] => 1 ) [2024-12-31 05:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:16:05' and `end` < '2024-12-31 05:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:16:18] Production.INFO: count ==27 [2024-12-31 05:16:18] Production.ERROR: pbx CDR StartTime 2024-12-31 02:16:05 - End Time 2024-12-31 05:16:05 [2024-12-31 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141342', 'tblTempUsageDetail_20' ) start [2024-12-31 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141342', 'tblTempUsageDetail_20' ) end [2024-12-31 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141342', 'tblTempVendorCDR_20' ) start [2024-12-31 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141342', 'tblTempVendorCDR_20' ) end [2024-12-31 05:16:18] Production.INFO: ProcessCDR(1,14141342,1,1,2) [2024-12-31 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141342', 'tblTempUsageDetail_20' ) start [2024-12-31 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141342', 'tblTempUsageDetail_20' ) end [2024-12-31 05:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:16:21] Production.INFO: ==15890== Releasing lock... [2024-12-31 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:16:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:17:05 [end_date_ymd] => 2024-12-31 05:17:05 [RateCDR] => 1 ) [2024-12-31 05:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:17:05' and `end` < '2024-12-31 05:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:17:18] Production.INFO: count ==27 [2024-12-31 05:17:18] Production.ERROR: pbx CDR StartTime 2024-12-31 02:17:05 - End Time 2024-12-31 05:17:05 [2024-12-31 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141347', 'tblTempUsageDetail_20' ) start [2024-12-31 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141347', 'tblTempUsageDetail_20' ) end [2024-12-31 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141347', 'tblTempVendorCDR_20' ) start [2024-12-31 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141347', 'tblTempVendorCDR_20' ) end [2024-12-31 05:17:18] Production.INFO: ProcessCDR(1,14141347,1,1,2) [2024-12-31 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141347', 'tblTempUsageDetail_20' ) start [2024-12-31 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141347', 'tblTempUsageDetail_20' ) end [2024-12-31 05:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:17:21] Production.INFO: ==15971== Releasing lock... [2024-12-31 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:17:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:18:05 [end_date_ymd] => 2024-12-31 05:18:05 [RateCDR] => 1 ) [2024-12-31 05:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:18:05' and `end` < '2024-12-31 05:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:18:18] Production.INFO: count ==27 [2024-12-31 05:18:18] Production.ERROR: pbx CDR StartTime 2024-12-31 02:18:05 - End Time 2024-12-31 05:18:05 [2024-12-31 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141352', 'tblTempUsageDetail_20' ) start [2024-12-31 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141352', 'tblTempUsageDetail_20' ) end [2024-12-31 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141352', 'tblTempVendorCDR_20' ) start [2024-12-31 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141352', 'tblTempVendorCDR_20' ) end [2024-12-31 05:18:18] Production.INFO: ProcessCDR(1,14141352,1,1,2) [2024-12-31 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141352', 'tblTempUsageDetail_20' ) start [2024-12-31 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141352', 'tblTempUsageDetail_20' ) end [2024-12-31 05:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:18:21] Production.INFO: ==16081== Releasing lock... [2024-12-31 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:18:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:19:05 [end_date_ymd] => 2024-12-31 05:19:05 [RateCDR] => 1 ) [2024-12-31 05:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:19:05' and `end` < '2024-12-31 05:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:19:19] Production.INFO: count ==27 [2024-12-31 05:19:19] Production.ERROR: pbx CDR StartTime 2024-12-31 02:19:05 - End Time 2024-12-31 05:19:05 [2024-12-31 05:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141357', 'tblTempUsageDetail_20' ) start [2024-12-31 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141357', 'tblTempUsageDetail_20' ) end [2024-12-31 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141357', 'tblTempVendorCDR_20' ) start [2024-12-31 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141357', 'tblTempVendorCDR_20' ) end [2024-12-31 05:19:19] Production.INFO: ProcessCDR(1,14141357,1,1,2) [2024-12-31 05:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141357', 'tblTempUsageDetail_20' ) start [2024-12-31 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141357', 'tblTempUsageDetail_20' ) end [2024-12-31 05:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:19:22] Production.INFO: ==16155== Releasing lock... [2024-12-31 05:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:19:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:20:05 [end_date_ymd] => 2024-12-31 05:20:05 [RateCDR] => 1 ) [2024-12-31 05:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:20:05' and `end` < '2024-12-31 05:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:20:17] Production.INFO: count ==25 [2024-12-31 05:20:17] Production.ERROR: pbx CDR StartTime 2024-12-31 02:20:05 - End Time 2024-12-31 05:20:05 [2024-12-31 05:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141363', 'tblTempUsageDetail_20' ) start [2024-12-31 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141363', 'tblTempUsageDetail_20' ) end [2024-12-31 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141363', 'tblTempVendorCDR_20' ) start [2024-12-31 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141363', 'tblTempVendorCDR_20' ) end [2024-12-31 05:20:17] Production.INFO: ProcessCDR(1,14141363,1,1,2) [2024-12-31 05:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141363', 'tblTempUsageDetail_20' ) start [2024-12-31 05:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141363', 'tblTempUsageDetail_20' ) end [2024-12-31 05:20:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:20:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:20:20] Production.INFO: ==16229== Releasing lock... [2024-12-31 05:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:20:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:21:05 [end_date_ymd] => 2024-12-31 05:21:05 [RateCDR] => 1 ) [2024-12-31 05:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:21:05' and `end` < '2024-12-31 05:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:21:18] Production.INFO: count ==25 [2024-12-31 05:21:18] Production.ERROR: pbx CDR StartTime 2024-12-31 02:21:05 - End Time 2024-12-31 05:21:05 [2024-12-31 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141368', 'tblTempUsageDetail_20' ) start [2024-12-31 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141368', 'tblTempUsageDetail_20' ) end [2024-12-31 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141368', 'tblTempVendorCDR_20' ) start [2024-12-31 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141368', 'tblTempVendorCDR_20' ) end [2024-12-31 05:21:18] Production.INFO: ProcessCDR(1,14141368,1,1,2) [2024-12-31 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141368', 'tblTempUsageDetail_20' ) start [2024-12-31 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141368', 'tblTempUsageDetail_20' ) end [2024-12-31 05:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:21:21] Production.INFO: ==16301== Releasing lock... [2024-12-31 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:21:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:22:05 [end_date_ymd] => 2024-12-31 05:22:05 [RateCDR] => 1 ) [2024-12-31 05:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:22:05' and `end` < '2024-12-31 05:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:22:18] Production.INFO: count ==25 [2024-12-31 05:22:18] Production.ERROR: pbx CDR StartTime 2024-12-31 02:22:05 - End Time 2024-12-31 05:22:05 [2024-12-31 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141373', 'tblTempUsageDetail_20' ) start [2024-12-31 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141373', 'tblTempUsageDetail_20' ) end [2024-12-31 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141373', 'tblTempVendorCDR_20' ) start [2024-12-31 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141373', 'tblTempVendorCDR_20' ) end [2024-12-31 05:22:18] Production.INFO: ProcessCDR(1,14141373,1,1,2) [2024-12-31 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141373', 'tblTempUsageDetail_20' ) start [2024-12-31 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141373', 'tblTempUsageDetail_20' ) end [2024-12-31 05:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:22:21] Production.INFO: ==16375== Releasing lock... [2024-12-31 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:22:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:23:04 [end_date_ymd] => 2024-12-31 05:23:04 [RateCDR] => 1 ) [2024-12-31 05:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:23:04' and `end` < '2024-12-31 05:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:23:19] Production.INFO: count ==25 [2024-12-31 05:23:19] Production.ERROR: pbx CDR StartTime 2024-12-31 02:23:04 - End Time 2024-12-31 05:23:04 [2024-12-31 05:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141378', 'tblTempUsageDetail_20' ) start [2024-12-31 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141378', 'tblTempUsageDetail_20' ) end [2024-12-31 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141378', 'tblTempVendorCDR_20' ) start [2024-12-31 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141378', 'tblTempVendorCDR_20' ) end [2024-12-31 05:23:19] Production.INFO: ProcessCDR(1,14141378,1,1,2) [2024-12-31 05:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141378', 'tblTempUsageDetail_20' ) start [2024-12-31 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141378', 'tblTempUsageDetail_20' ) end [2024-12-31 05:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:23:22] Production.INFO: ==16445== Releasing lock... [2024-12-31 05:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:23:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:24:05 [end_date_ymd] => 2024-12-31 05:24:05 [RateCDR] => 1 ) [2024-12-31 05:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:24:05' and `end` < '2024-12-31 05:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:24:19] Production.INFO: count ==25 [2024-12-31 05:24:19] Production.ERROR: pbx CDR StartTime 2024-12-31 02:24:05 - End Time 2024-12-31 05:24:05 [2024-12-31 05:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141383', 'tblTempUsageDetail_20' ) start [2024-12-31 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141383', 'tblTempUsageDetail_20' ) end [2024-12-31 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141383', 'tblTempVendorCDR_20' ) start [2024-12-31 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141383', 'tblTempVendorCDR_20' ) end [2024-12-31 05:24:19] Production.INFO: ProcessCDR(1,14141383,1,1,2) [2024-12-31 05:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141383', 'tblTempUsageDetail_20' ) start [2024-12-31 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141383', 'tblTempUsageDetail_20' ) end [2024-12-31 05:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:24:22] Production.INFO: ==16515== Releasing lock... [2024-12-31 05:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:24:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:25:05 [end_date_ymd] => 2024-12-31 05:25:05 [RateCDR] => 1 ) [2024-12-31 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:25:05' and `end` < '2024-12-31 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:25:17] Production.INFO: count ==25 [2024-12-31 05:25:17] Production.ERROR: pbx CDR StartTime 2024-12-31 02:25:05 - End Time 2024-12-31 05:25:05 [2024-12-31 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141388', 'tblTempUsageDetail_20' ) start [2024-12-31 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141388', 'tblTempUsageDetail_20' ) end [2024-12-31 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141388', 'tblTempVendorCDR_20' ) start [2024-12-31 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141388', 'tblTempVendorCDR_20' ) end [2024-12-31 05:25:17] Production.INFO: ProcessCDR(1,14141388,1,1,2) [2024-12-31 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141388', 'tblTempUsageDetail_20' ) start [2024-12-31 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141388', 'tblTempUsageDetail_20' ) end [2024-12-31 05:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:25:20] Production.INFO: ==16588== Releasing lock... [2024-12-31 05:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:25:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:26:05 [end_date_ymd] => 2024-12-31 05:26:05 [RateCDR] => 1 ) [2024-12-31 05:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:26:05' and `end` < '2024-12-31 05:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:26:18] Production.INFO: count ==25 [2024-12-31 05:26:18] Production.ERROR: pbx CDR StartTime 2024-12-31 02:26:05 - End Time 2024-12-31 05:26:05 [2024-12-31 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141393', 'tblTempUsageDetail_20' ) start [2024-12-31 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141393', 'tblTempUsageDetail_20' ) end [2024-12-31 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141393', 'tblTempVendorCDR_20' ) start [2024-12-31 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141393', 'tblTempVendorCDR_20' ) end [2024-12-31 05:26:18] Production.INFO: ProcessCDR(1,14141393,1,1,2) [2024-12-31 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141393', 'tblTempUsageDetail_20' ) start [2024-12-31 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141393', 'tblTempUsageDetail_20' ) end [2024-12-31 05:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:26:22] Production.INFO: ==16663== Releasing lock... [2024-12-31 05:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:26:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:27:04 [end_date_ymd] => 2024-12-31 05:27:04 [RateCDR] => 1 ) [2024-12-31 05:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:27:04' and `end` < '2024-12-31 05:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:27:17] Production.INFO: count ==25 [2024-12-31 05:27:17] Production.ERROR: pbx CDR StartTime 2024-12-31 02:27:04 - End Time 2024-12-31 05:27:04 [2024-12-31 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141398', 'tblTempUsageDetail_20' ) start [2024-12-31 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141398', 'tblTempUsageDetail_20' ) end [2024-12-31 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141398', 'tblTempVendorCDR_20' ) start [2024-12-31 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141398', 'tblTempVendorCDR_20' ) end [2024-12-31 05:27:17] Production.INFO: ProcessCDR(1,14141398,1,1,2) [2024-12-31 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141398', 'tblTempUsageDetail_20' ) start [2024-12-31 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141398', 'tblTempUsageDetail_20' ) end [2024-12-31 05:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:27:20] Production.INFO: ==16737== Releasing lock... [2024-12-31 05:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:27:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:28:05 [end_date_ymd] => 2024-12-31 05:28:05 [RateCDR] => 1 ) [2024-12-31 05:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:28:05' and `end` < '2024-12-31 05:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:28:18] Production.INFO: count ==25 [2024-12-31 05:28:18] Production.ERROR: pbx CDR StartTime 2024-12-31 02:28:05 - End Time 2024-12-31 05:28:05 [2024-12-31 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141403', 'tblTempUsageDetail_20' ) start [2024-12-31 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141403', 'tblTempUsageDetail_20' ) end [2024-12-31 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141403', 'tblTempVendorCDR_20' ) start [2024-12-31 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141403', 'tblTempVendorCDR_20' ) end [2024-12-31 05:28:18] Production.INFO: ProcessCDR(1,14141403,1,1,2) [2024-12-31 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141403', 'tblTempUsageDetail_20' ) start [2024-12-31 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141403', 'tblTempUsageDetail_20' ) end [2024-12-31 05:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:28:21] Production.INFO: ==16811== Releasing lock... [2024-12-31 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:28:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:29:04 [end_date_ymd] => 2024-12-31 05:29:04 [RateCDR] => 1 ) [2024-12-31 05:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:29:04' and `end` < '2024-12-31 05:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:29:18] Production.INFO: count ==25 [2024-12-31 05:29:18] Production.ERROR: pbx CDR StartTime 2024-12-31 02:29:04 - End Time 2024-12-31 05:29:04 [2024-12-31 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141408', 'tblTempUsageDetail_20' ) start [2024-12-31 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141408', 'tblTempUsageDetail_20' ) end [2024-12-31 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141408', 'tblTempVendorCDR_20' ) start [2024-12-31 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141408', 'tblTempVendorCDR_20' ) end [2024-12-31 05:29:18] Production.INFO: ProcessCDR(1,14141408,1,1,2) [2024-12-31 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141408', 'tblTempUsageDetail_20' ) start [2024-12-31 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141408', 'tblTempUsageDetail_20' ) end [2024-12-31 05:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:29:21] Production.INFO: ==16880== Releasing lock... [2024-12-31 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:29:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:30:06 [end_date_ymd] => 2024-12-31 05:30:06 [RateCDR] => 1 ) [2024-12-31 05:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:30:06' and `end` < '2024-12-31 05:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:30:18] Production.INFO: count ==22 [2024-12-31 05:30:18] Production.ERROR: pbx CDR StartTime 2024-12-31 02:30:06 - End Time 2024-12-31 05:30:06 [2024-12-31 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141414', 'tblTempUsageDetail_20' ) start [2024-12-31 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141414', 'tblTempUsageDetail_20' ) end [2024-12-31 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141414', 'tblTempVendorCDR_20' ) start [2024-12-31 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141414', 'tblTempVendorCDR_20' ) end [2024-12-31 05:30:18] Production.INFO: ProcessCDR(1,14141414,1,1,2) [2024-12-31 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141414', 'tblTempUsageDetail_20' ) start [2024-12-31 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141414', 'tblTempUsageDetail_20' ) end [2024-12-31 05:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:30:21] Production.INFO: ==16956== Releasing lock... [2024-12-31 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:30:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:31:05 [end_date_ymd] => 2024-12-31 05:31:05 [RateCDR] => 1 ) [2024-12-31 05:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:31:05' and `end` < '2024-12-31 05:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:31:19] Production.INFO: count ==22 [2024-12-31 05:31:19] Production.ERROR: pbx CDR StartTime 2024-12-31 02:31:05 - End Time 2024-12-31 05:31:05 [2024-12-31 05:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141419', 'tblTempUsageDetail_20' ) start [2024-12-31 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141419', 'tblTempUsageDetail_20' ) end [2024-12-31 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141419', 'tblTempVendorCDR_20' ) start [2024-12-31 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141419', 'tblTempVendorCDR_20' ) end [2024-12-31 05:31:19] Production.INFO: ProcessCDR(1,14141419,1,1,2) [2024-12-31 05:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141419', 'tblTempUsageDetail_20' ) start [2024-12-31 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141419', 'tblTempUsageDetail_20' ) end [2024-12-31 05:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:31:22] Production.INFO: ==17028== Releasing lock... [2024-12-31 05:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:31:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:32:04 [end_date_ymd] => 2024-12-31 05:32:04 [RateCDR] => 1 ) [2024-12-31 05:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:32:04' and `end` < '2024-12-31 05:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:32:18] Production.INFO: count ==22 [2024-12-31 05:32:18] Production.ERROR: pbx CDR StartTime 2024-12-31 02:32:04 - End Time 2024-12-31 05:32:04 [2024-12-31 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141424', 'tblTempUsageDetail_20' ) start [2024-12-31 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141424', 'tblTempUsageDetail_20' ) end [2024-12-31 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141424', 'tblTempVendorCDR_20' ) start [2024-12-31 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141424', 'tblTempVendorCDR_20' ) end [2024-12-31 05:32:18] Production.INFO: ProcessCDR(1,14141424,1,1,2) [2024-12-31 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141424', 'tblTempUsageDetail_20' ) start [2024-12-31 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141424', 'tblTempUsageDetail_20' ) end [2024-12-31 05:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:32:21] Production.INFO: ==17100== Releasing lock... [2024-12-31 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:32:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:33:05 [end_date_ymd] => 2024-12-31 05:33:05 [RateCDR] => 1 ) [2024-12-31 05:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:33:05' and `end` < '2024-12-31 05:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:33:18] Production.INFO: count ==22 [2024-12-31 05:33:18] Production.ERROR: pbx CDR StartTime 2024-12-31 02:33:05 - End Time 2024-12-31 05:33:05 [2024-12-31 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141429', 'tblTempUsageDetail_20' ) start [2024-12-31 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141429', 'tblTempUsageDetail_20' ) end [2024-12-31 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141429', 'tblTempVendorCDR_20' ) start [2024-12-31 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141429', 'tblTempVendorCDR_20' ) end [2024-12-31 05:33:18] Production.INFO: ProcessCDR(1,14141429,1,1,2) [2024-12-31 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141429', 'tblTempUsageDetail_20' ) start [2024-12-31 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141429', 'tblTempUsageDetail_20' ) end [2024-12-31 05:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:33:21] Production.INFO: ==17210== Releasing lock... [2024-12-31 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:33:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:34:05 [end_date_ymd] => 2024-12-31 05:34:05 [RateCDR] => 1 ) [2024-12-31 05:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:34:05' and `end` < '2024-12-31 05:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:34:18] Production.INFO: count ==22 [2024-12-31 05:34:18] Production.ERROR: pbx CDR StartTime 2024-12-31 02:34:05 - End Time 2024-12-31 05:34:05 [2024-12-31 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141434', 'tblTempUsageDetail_20' ) start [2024-12-31 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141434', 'tblTempUsageDetail_20' ) end [2024-12-31 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141434', 'tblTempVendorCDR_20' ) start [2024-12-31 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141434', 'tblTempVendorCDR_20' ) end [2024-12-31 05:34:18] Production.INFO: ProcessCDR(1,14141434,1,1,2) [2024-12-31 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141434', 'tblTempUsageDetail_20' ) start [2024-12-31 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141434', 'tblTempUsageDetail_20' ) end [2024-12-31 05:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:34:21] Production.INFO: ==17281== Releasing lock... [2024-12-31 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:34:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:35:05 [end_date_ymd] => 2024-12-31 05:35:05 [RateCDR] => 1 ) [2024-12-31 05:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:35:05' and `end` < '2024-12-31 05:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:35:18] Production.INFO: count ==22 [2024-12-31 05:35:18] Production.ERROR: pbx CDR StartTime 2024-12-31 02:35:05 - End Time 2024-12-31 05:35:05 [2024-12-31 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141439', 'tblTempUsageDetail_20' ) start [2024-12-31 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141439', 'tblTempUsageDetail_20' ) end [2024-12-31 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141439', 'tblTempVendorCDR_20' ) start [2024-12-31 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141439', 'tblTempVendorCDR_20' ) end [2024-12-31 05:35:18] Production.INFO: ProcessCDR(1,14141439,1,1,2) [2024-12-31 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141439', 'tblTempUsageDetail_20' ) start [2024-12-31 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141439', 'tblTempUsageDetail_20' ) end [2024-12-31 05:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:35:21] Production.INFO: ==17352== Releasing lock... [2024-12-31 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:35:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:36:04 [end_date_ymd] => 2024-12-31 05:36:04 [RateCDR] => 1 ) [2024-12-31 05:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:36:04' and `end` < '2024-12-31 05:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:36:18] Production.INFO: count ==22 [2024-12-31 05:36:18] Production.ERROR: pbx CDR StartTime 2024-12-31 02:36:04 - End Time 2024-12-31 05:36:04 [2024-12-31 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141444', 'tblTempUsageDetail_20' ) start [2024-12-31 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141444', 'tblTempUsageDetail_20' ) end [2024-12-31 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141444', 'tblTempVendorCDR_20' ) start [2024-12-31 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141444', 'tblTempVendorCDR_20' ) end [2024-12-31 05:36:18] Production.INFO: ProcessCDR(1,14141444,1,1,2) [2024-12-31 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141444', 'tblTempUsageDetail_20' ) start [2024-12-31 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141444', 'tblTempUsageDetail_20' ) end [2024-12-31 05:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:36:21] Production.INFO: ==17422== Releasing lock... [2024-12-31 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:36:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:37:05 [end_date_ymd] => 2024-12-31 05:37:05 [RateCDR] => 1 ) [2024-12-31 05:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:37:05' and `end` < '2024-12-31 05:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:37:17] Production.INFO: count ==22 [2024-12-31 05:37:17] Production.ERROR: pbx CDR StartTime 2024-12-31 02:37:05 - End Time 2024-12-31 05:37:05 [2024-12-31 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141449', 'tblTempUsageDetail_20' ) start [2024-12-31 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141449', 'tblTempUsageDetail_20' ) end [2024-12-31 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141449', 'tblTempVendorCDR_20' ) start [2024-12-31 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141449', 'tblTempVendorCDR_20' ) end [2024-12-31 05:37:17] Production.INFO: ProcessCDR(1,14141449,1,1,2) [2024-12-31 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141449', 'tblTempUsageDetail_20' ) start [2024-12-31 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141449', 'tblTempUsageDetail_20' ) end [2024-12-31 05:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:37:20] Production.INFO: ==17493== Releasing lock... [2024-12-31 05:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:37:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:38:05 [end_date_ymd] => 2024-12-31 05:38:05 [RateCDR] => 1 ) [2024-12-31 05:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:38:05' and `end` < '2024-12-31 05:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:38:19] Production.INFO: count ==22 [2024-12-31 05:38:19] Production.ERROR: pbx CDR StartTime 2024-12-31 02:38:05 - End Time 2024-12-31 05:38:05 [2024-12-31 05:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141454', 'tblTempUsageDetail_20' ) start [2024-12-31 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141454', 'tblTempUsageDetail_20' ) end [2024-12-31 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141454', 'tblTempVendorCDR_20' ) start [2024-12-31 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141454', 'tblTempVendorCDR_20' ) end [2024-12-31 05:38:19] Production.INFO: ProcessCDR(1,14141454,1,1,2) [2024-12-31 05:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141454', 'tblTempUsageDetail_20' ) start [2024-12-31 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141454', 'tblTempUsageDetail_20' ) end [2024-12-31 05:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:38:21] Production.INFO: ==17564== Releasing lock... [2024-12-31 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:38:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:39:05 [end_date_ymd] => 2024-12-31 05:39:05 [RateCDR] => 1 ) [2024-12-31 05:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:39:05' and `end` < '2024-12-31 05:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:39:17] Production.INFO: count ==20 [2024-12-31 05:39:17] Production.ERROR: pbx CDR StartTime 2024-12-31 02:39:05 - End Time 2024-12-31 05:39:05 [2024-12-31 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141459', 'tblTempUsageDetail_20' ) start [2024-12-31 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141459', 'tblTempUsageDetail_20' ) end [2024-12-31 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141459', 'tblTempVendorCDR_20' ) start [2024-12-31 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141459', 'tblTempVendorCDR_20' ) end [2024-12-31 05:39:17] Production.INFO: ProcessCDR(1,14141459,1,1,2) [2024-12-31 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141459', 'tblTempUsageDetail_20' ) start [2024-12-31 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141459', 'tblTempUsageDetail_20' ) end [2024-12-31 05:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:39:20] Production.INFO: ==17637== Releasing lock... [2024-12-31 05:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:39:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:40:06 [end_date_ymd] => 2024-12-31 05:40:06 [RateCDR] => 1 ) [2024-12-31 05:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:40:06' and `end` < '2024-12-31 05:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:40:18] Production.INFO: count ==10 [2024-12-31 05:40:18] Production.ERROR: pbx CDR StartTime 2024-12-31 02:40:06 - End Time 2024-12-31 05:40:06 [2024-12-31 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141465', 'tblTempUsageDetail_20' ) start [2024-12-31 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141465', 'tblTempUsageDetail_20' ) end [2024-12-31 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141465', 'tblTempVendorCDR_20' ) start [2024-12-31 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141465', 'tblTempVendorCDR_20' ) end [2024-12-31 05:40:18] Production.INFO: ProcessCDR(1,14141465,1,1,2) [2024-12-31 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141465', 'tblTempUsageDetail_20' ) start [2024-12-31 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141465', 'tblTempUsageDetail_20' ) end [2024-12-31 05:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:40:21] Production.INFO: ==17714== Releasing lock... [2024-12-31 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:40:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:41:05 [end_date_ymd] => 2024-12-31 05:41:05 [RateCDR] => 1 ) [2024-12-31 05:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:41:05' and `end` < '2024-12-31 05:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:41:18] Production.INFO: count ==8 [2024-12-31 05:41:18] Production.ERROR: pbx CDR StartTime 2024-12-31 02:41:05 - End Time 2024-12-31 05:41:05 [2024-12-31 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141470', 'tblTempUsageDetail_20' ) start [2024-12-31 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141470', 'tblTempUsageDetail_20' ) end [2024-12-31 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141470', 'tblTempVendorCDR_20' ) start [2024-12-31 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141470', 'tblTempVendorCDR_20' ) end [2024-12-31 05:41:18] Production.INFO: ProcessCDR(1,14141470,1,1,2) [2024-12-31 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141470', 'tblTempUsageDetail_20' ) start [2024-12-31 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141470', 'tblTempUsageDetail_20' ) end [2024-12-31 05:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:41:21] Production.INFO: ==17792== Releasing lock... [2024-12-31 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:41:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:42:05 [end_date_ymd] => 2024-12-31 05:42:05 [RateCDR] => 1 ) [2024-12-31 05:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:42:05' and `end` < '2024-12-31 05:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:42:18] Production.INFO: count ==8 [2024-12-31 05:42:18] Production.ERROR: pbx CDR StartTime 2024-12-31 02:42:05 - End Time 2024-12-31 05:42:05 [2024-12-31 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141475', 'tblTempUsageDetail_20' ) start [2024-12-31 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141475', 'tblTempUsageDetail_20' ) end [2024-12-31 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141475', 'tblTempVendorCDR_20' ) start [2024-12-31 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141475', 'tblTempVendorCDR_20' ) end [2024-12-31 05:42:18] Production.INFO: ProcessCDR(1,14141475,1,1,2) [2024-12-31 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141475', 'tblTempUsageDetail_20' ) start [2024-12-31 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141475', 'tblTempUsageDetail_20' ) end [2024-12-31 05:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:42:21] Production.INFO: ==17870== Releasing lock... [2024-12-31 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:42:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:43:04 [end_date_ymd] => 2024-12-31 05:43:04 [RateCDR] => 1 ) [2024-12-31 05:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:43:04' and `end` < '2024-12-31 05:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:43:17] Production.INFO: count ==8 [2024-12-31 05:43:17] Production.ERROR: pbx CDR StartTime 2024-12-31 02:43:04 - End Time 2024-12-31 05:43:04 [2024-12-31 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141480', 'tblTempUsageDetail_20' ) start [2024-12-31 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141480', 'tblTempUsageDetail_20' ) end [2024-12-31 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141480', 'tblTempVendorCDR_20' ) start [2024-12-31 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141480', 'tblTempVendorCDR_20' ) end [2024-12-31 05:43:17] Production.INFO: ProcessCDR(1,14141480,1,1,2) [2024-12-31 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141480', 'tblTempUsageDetail_20' ) start [2024-12-31 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141480', 'tblTempUsageDetail_20' ) end [2024-12-31 05:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:43:20] Production.INFO: ==17952== Releasing lock... [2024-12-31 05:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:43:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:44:05 [end_date_ymd] => 2024-12-31 05:44:05 [RateCDR] => 1 ) [2024-12-31 05:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:44:05' and `end` < '2024-12-31 05:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:44:18] Production.INFO: count ==8 [2024-12-31 05:44:18] Production.ERROR: pbx CDR StartTime 2024-12-31 02:44:05 - End Time 2024-12-31 05:44:05 [2024-12-31 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141485', 'tblTempUsageDetail_20' ) start [2024-12-31 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141485', 'tblTempUsageDetail_20' ) end [2024-12-31 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141485', 'tblTempVendorCDR_20' ) start [2024-12-31 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141485', 'tblTempVendorCDR_20' ) end [2024-12-31 05:44:18] Production.INFO: ProcessCDR(1,14141485,1,1,2) [2024-12-31 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141485', 'tblTempUsageDetail_20' ) start [2024-12-31 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141485', 'tblTempUsageDetail_20' ) end [2024-12-31 05:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:44:21] Production.INFO: ==18027== Releasing lock... [2024-12-31 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:44:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:45:05 [end_date_ymd] => 2024-12-31 05:45:05 [RateCDR] => 1 ) [2024-12-31 05:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:45:05' and `end` < '2024-12-31 05:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:45:17] Production.INFO: count ==8 [2024-12-31 05:45:17] Production.ERROR: pbx CDR StartTime 2024-12-31 02:45:05 - End Time 2024-12-31 05:45:05 [2024-12-31 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141490', 'tblTempUsageDetail_20' ) start [2024-12-31 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141490', 'tblTempUsageDetail_20' ) end [2024-12-31 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141490', 'tblTempVendorCDR_20' ) start [2024-12-31 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141490', 'tblTempVendorCDR_20' ) end [2024-12-31 05:45:17] Production.INFO: ProcessCDR(1,14141490,1,1,2) [2024-12-31 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141490', 'tblTempUsageDetail_20' ) start [2024-12-31 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141490', 'tblTempUsageDetail_20' ) end [2024-12-31 05:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:45:20] Production.INFO: ==18107== Releasing lock... [2024-12-31 05:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:45:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:46:04 [end_date_ymd] => 2024-12-31 05:46:04 [RateCDR] => 1 ) [2024-12-31 05:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:46:04' and `end` < '2024-12-31 05:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:46:18] Production.INFO: count ==8 [2024-12-31 05:46:18] Production.ERROR: pbx CDR StartTime 2024-12-31 02:46:04 - End Time 2024-12-31 05:46:04 [2024-12-31 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141495', 'tblTempUsageDetail_20' ) start [2024-12-31 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141495', 'tblTempUsageDetail_20' ) end [2024-12-31 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141495', 'tblTempVendorCDR_20' ) start [2024-12-31 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141495', 'tblTempVendorCDR_20' ) end [2024-12-31 05:46:18] Production.INFO: ProcessCDR(1,14141495,1,1,2) [2024-12-31 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141495', 'tblTempUsageDetail_20' ) start [2024-12-31 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141495', 'tblTempUsageDetail_20' ) end [2024-12-31 05:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:46:21] Production.INFO: ==18181== Releasing lock... [2024-12-31 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:46:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:47:05 [end_date_ymd] => 2024-12-31 05:47:05 [RateCDR] => 1 ) [2024-12-31 05:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:47:05' and `end` < '2024-12-31 05:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:47:19] Production.INFO: count ==8 [2024-12-31 05:47:19] Production.ERROR: pbx CDR StartTime 2024-12-31 02:47:05 - End Time 2024-12-31 05:47:05 [2024-12-31 05:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141500', 'tblTempUsageDetail_20' ) start [2024-12-31 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141500', 'tblTempUsageDetail_20' ) end [2024-12-31 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141500', 'tblTempVendorCDR_20' ) start [2024-12-31 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141500', 'tblTempVendorCDR_20' ) end [2024-12-31 05:47:19] Production.INFO: ProcessCDR(1,14141500,1,1,2) [2024-12-31 05:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141500', 'tblTempUsageDetail_20' ) start [2024-12-31 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141500', 'tblTempUsageDetail_20' ) end [2024-12-31 05:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:47:22] Production.INFO: ==18263== Releasing lock... [2024-12-31 05:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:47:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:48:04 [end_date_ymd] => 2024-12-31 05:48:04 [RateCDR] => 1 ) [2024-12-31 05:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:48:04' and `end` < '2024-12-31 05:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:48:18] Production.INFO: count ==8 [2024-12-31 05:48:18] Production.ERROR: pbx CDR StartTime 2024-12-31 02:48:04 - End Time 2024-12-31 05:48:04 [2024-12-31 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141505', 'tblTempUsageDetail_20' ) start [2024-12-31 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141505', 'tblTempUsageDetail_20' ) end [2024-12-31 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141505', 'tblTempVendorCDR_20' ) start [2024-12-31 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141505', 'tblTempVendorCDR_20' ) end [2024-12-31 05:48:18] Production.INFO: ProcessCDR(1,14141505,1,1,2) [2024-12-31 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141505', 'tblTempUsageDetail_20' ) start [2024-12-31 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141505', 'tblTempUsageDetail_20' ) end [2024-12-31 05:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:48:21] Production.INFO: ==18342== Releasing lock... [2024-12-31 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:48:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:49:05 [end_date_ymd] => 2024-12-31 05:49:05 [RateCDR] => 1 ) [2024-12-31 05:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:49:05' and `end` < '2024-12-31 05:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:49:17] Production.INFO: count ==8 [2024-12-31 05:49:17] Production.ERROR: pbx CDR StartTime 2024-12-31 02:49:05 - End Time 2024-12-31 05:49:05 [2024-12-31 05:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141510', 'tblTempUsageDetail_20' ) start [2024-12-31 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141510', 'tblTempUsageDetail_20' ) end [2024-12-31 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141510', 'tblTempVendorCDR_20' ) start [2024-12-31 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141510', 'tblTempVendorCDR_20' ) end [2024-12-31 05:49:17] Production.INFO: ProcessCDR(1,14141510,1,1,2) [2024-12-31 05:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141510', 'tblTempUsageDetail_20' ) start [2024-12-31 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141510', 'tblTempUsageDetail_20' ) end [2024-12-31 05:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:49:20] Production.INFO: ==18458== Releasing lock... [2024-12-31 05:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:49:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:50:06 [end_date_ymd] => 2024-12-31 05:50:06 [RateCDR] => 1 ) [2024-12-31 05:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:50:06' and `end` < '2024-12-31 05:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:50:18] Production.INFO: count ==8 [2024-12-31 05:50:18] Production.ERROR: pbx CDR StartTime 2024-12-31 02:50:06 - End Time 2024-12-31 05:50:06 [2024-12-31 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141515', 'tblTempUsageDetail_20' ) start [2024-12-31 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141515', 'tblTempUsageDetail_20' ) end [2024-12-31 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141515', 'tblTempVendorCDR_20' ) start [2024-12-31 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141515', 'tblTempVendorCDR_20' ) end [2024-12-31 05:50:18] Production.INFO: ProcessCDR(1,14141515,1,1,2) [2024-12-31 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141515', 'tblTempUsageDetail_20' ) start [2024-12-31 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141515', 'tblTempUsageDetail_20' ) end [2024-12-31 05:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:50:21] Production.INFO: ==18534== Releasing lock... [2024-12-31 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:50:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:51:05 [end_date_ymd] => 2024-12-31 05:51:05 [RateCDR] => 1 ) [2024-12-31 05:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:51:05' and `end` < '2024-12-31 05:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:51:17] Production.INFO: count ==8 [2024-12-31 05:51:17] Production.ERROR: pbx CDR StartTime 2024-12-31 02:51:05 - End Time 2024-12-31 05:51:05 [2024-12-31 05:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141521', 'tblTempUsageDetail_20' ) start [2024-12-31 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141521', 'tblTempUsageDetail_20' ) end [2024-12-31 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141521', 'tblTempVendorCDR_20' ) start [2024-12-31 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141521', 'tblTempVendorCDR_20' ) end [2024-12-31 05:51:17] Production.INFO: ProcessCDR(1,14141521,1,1,2) [2024-12-31 05:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141521', 'tblTempUsageDetail_20' ) start [2024-12-31 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141521', 'tblTempUsageDetail_20' ) end [2024-12-31 05:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:51:20] Production.INFO: ==18614== Releasing lock... [2024-12-31 05:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:51:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:52:05 [end_date_ymd] => 2024-12-31 05:52:05 [RateCDR] => 1 ) [2024-12-31 05:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:52:05' and `end` < '2024-12-31 05:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:52:18] Production.INFO: count ==8 [2024-12-31 05:52:18] Production.ERROR: pbx CDR StartTime 2024-12-31 02:52:05 - End Time 2024-12-31 05:52:05 [2024-12-31 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141526', 'tblTempUsageDetail_20' ) start [2024-12-31 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141526', 'tblTempUsageDetail_20' ) end [2024-12-31 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141526', 'tblTempVendorCDR_20' ) start [2024-12-31 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141526', 'tblTempVendorCDR_20' ) end [2024-12-31 05:52:18] Production.INFO: ProcessCDR(1,14141526,1,1,2) [2024-12-31 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141526', 'tblTempUsageDetail_20' ) start [2024-12-31 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141526', 'tblTempUsageDetail_20' ) end [2024-12-31 05:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:52:21] Production.INFO: ==18690== Releasing lock... [2024-12-31 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:52:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:53:05 [end_date_ymd] => 2024-12-31 05:53:05 [RateCDR] => 1 ) [2024-12-31 05:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:53:05' and `end` < '2024-12-31 05:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:53:18] Production.INFO: count ==8 [2024-12-31 05:53:18] Production.ERROR: pbx CDR StartTime 2024-12-31 02:53:05 - End Time 2024-12-31 05:53:05 [2024-12-31 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141531', 'tblTempUsageDetail_20' ) start [2024-12-31 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141531', 'tblTempUsageDetail_20' ) end [2024-12-31 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141531', 'tblTempVendorCDR_20' ) start [2024-12-31 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141531', 'tblTempVendorCDR_20' ) end [2024-12-31 05:53:18] Production.INFO: ProcessCDR(1,14141531,1,1,2) [2024-12-31 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141531', 'tblTempUsageDetail_20' ) start [2024-12-31 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141531', 'tblTempUsageDetail_20' ) end [2024-12-31 05:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:53:21] Production.INFO: ==18768== Releasing lock... [2024-12-31 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:53:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:54:05 [end_date_ymd] => 2024-12-31 05:54:05 [RateCDR] => 1 ) [2024-12-31 05:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:54:05' and `end` < '2024-12-31 05:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:54:17] Production.INFO: count ==8 [2024-12-31 05:54:17] Production.ERROR: pbx CDR StartTime 2024-12-31 02:54:05 - End Time 2024-12-31 05:54:05 [2024-12-31 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141536', 'tblTempUsageDetail_20' ) start [2024-12-31 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141536', 'tblTempUsageDetail_20' ) end [2024-12-31 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141536', 'tblTempVendorCDR_20' ) start [2024-12-31 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141536', 'tblTempVendorCDR_20' ) end [2024-12-31 05:54:17] Production.INFO: ProcessCDR(1,14141536,1,1,2) [2024-12-31 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141536', 'tblTempUsageDetail_20' ) start [2024-12-31 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141536', 'tblTempUsageDetail_20' ) end [2024-12-31 05:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:54:21] Production.INFO: ==18842== Releasing lock... [2024-12-31 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:54:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:55:04 [end_date_ymd] => 2024-12-31 05:55:04 [RateCDR] => 1 ) [2024-12-31 05:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:55:04' and `end` < '2024-12-31 05:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:55:17] Production.INFO: count ==8 [2024-12-31 05:55:17] Production.ERROR: pbx CDR StartTime 2024-12-31 02:55:04 - End Time 2024-12-31 05:55:04 [2024-12-31 05:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141541', 'tblTempUsageDetail_20' ) start [2024-12-31 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141541', 'tblTempUsageDetail_20' ) end [2024-12-31 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141541', 'tblTempVendorCDR_20' ) start [2024-12-31 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141541', 'tblTempVendorCDR_20' ) end [2024-12-31 05:55:17] Production.INFO: ProcessCDR(1,14141541,1,1,2) [2024-12-31 05:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141541', 'tblTempUsageDetail_20' ) start [2024-12-31 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141541', 'tblTempUsageDetail_20' ) end [2024-12-31 05:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:55:20] Production.INFO: ==18920== Releasing lock... [2024-12-31 05:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:55:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:56:04 [end_date_ymd] => 2024-12-31 05:56:04 [RateCDR] => 1 ) [2024-12-31 05:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:56:04' and `end` < '2024-12-31 05:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:56:17] Production.INFO: count ==8 [2024-12-31 05:56:17] Production.ERROR: pbx CDR StartTime 2024-12-31 02:56:04 - End Time 2024-12-31 05:56:04 [2024-12-31 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141546', 'tblTempUsageDetail_20' ) start [2024-12-31 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141546', 'tblTempUsageDetail_20' ) end [2024-12-31 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141546', 'tblTempVendorCDR_20' ) start [2024-12-31 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141546', 'tblTempVendorCDR_20' ) end [2024-12-31 05:56:17] Production.INFO: ProcessCDR(1,14141546,1,1,2) [2024-12-31 05:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141546', 'tblTempUsageDetail_20' ) start [2024-12-31 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141546', 'tblTempUsageDetail_20' ) end [2024-12-31 05:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:56:20] Production.INFO: ==18996== Releasing lock... [2024-12-31 05:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:56:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:57:05 [end_date_ymd] => 2024-12-31 05:57:05 [RateCDR] => 1 ) [2024-12-31 05:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:57:05' and `end` < '2024-12-31 05:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:57:18] Production.INFO: count ==8 [2024-12-31 05:57:18] Production.ERROR: pbx CDR StartTime 2024-12-31 02:57:05 - End Time 2024-12-31 05:57:05 [2024-12-31 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141551', 'tblTempUsageDetail_20' ) start [2024-12-31 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141551', 'tblTempUsageDetail_20' ) end [2024-12-31 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141551', 'tblTempVendorCDR_20' ) start [2024-12-31 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141551', 'tblTempVendorCDR_20' ) end [2024-12-31 05:57:18] Production.INFO: ProcessCDR(1,14141551,1,1,2) [2024-12-31 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141551', 'tblTempUsageDetail_20' ) start [2024-12-31 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141551', 'tblTempUsageDetail_20' ) end [2024-12-31 05:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:57:21] Production.INFO: ==19070== Releasing lock... [2024-12-31 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:57:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:58:05 [end_date_ymd] => 2024-12-31 05:58:05 [RateCDR] => 1 ) [2024-12-31 05:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:58:05' and `end` < '2024-12-31 05:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:58:17] Production.INFO: count ==8 [2024-12-31 05:58:17] Production.ERROR: pbx CDR StartTime 2024-12-31 02:58:05 - End Time 2024-12-31 05:58:05 [2024-12-31 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141556', 'tblTempUsageDetail_20' ) start [2024-12-31 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141556', 'tblTempUsageDetail_20' ) end [2024-12-31 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141556', 'tblTempVendorCDR_20' ) start [2024-12-31 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141556', 'tblTempVendorCDR_20' ) end [2024-12-31 05:58:17] Production.INFO: ProcessCDR(1,14141556,1,1,2) [2024-12-31 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141556', 'tblTempUsageDetail_20' ) start [2024-12-31 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141556', 'tblTempUsageDetail_20' ) end [2024-12-31 05:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:58:20] Production.INFO: ==19147== Releasing lock... [2024-12-31 05:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:58:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 02:59:05 [end_date_ymd] => 2024-12-31 05:59:05 [RateCDR] => 1 ) [2024-12-31 05:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 02:59:05' and `end` < '2024-12-31 05:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 05:59:18] Production.INFO: count ==8 [2024-12-31 05:59:18] Production.ERROR: pbx CDR StartTime 2024-12-31 02:59:05 - End Time 2024-12-31 05:59:05 [2024-12-31 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141561', 'tblTempUsageDetail_20' ) start [2024-12-31 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141561', 'tblTempUsageDetail_20' ) end [2024-12-31 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141561', 'tblTempVendorCDR_20' ) start [2024-12-31 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141561', 'tblTempVendorCDR_20' ) end [2024-12-31 05:59:19] Production.INFO: ProcessCDR(1,14141561,1,1,2) [2024-12-31 05:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141561', 'tblTempUsageDetail_20' ) start [2024-12-31 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141561', 'tblTempUsageDetail_20' ) end [2024-12-31 05:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 05:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 05:59:22] Production.INFO: ==19231== Releasing lock... [2024-12-31 05:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 05:59:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 06:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:00:05 [end_date_ymd] => 2024-12-31 06:00:05 [RateCDR] => 1 ) [2024-12-31 06:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:00:05' and `end` < '2024-12-31 06:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:00:18] Production.INFO: count ==5 [2024-12-31 06:00:18] Production.ERROR: pbx CDR StartTime 2024-12-31 03:00:05 - End Time 2024-12-31 06:00:05 [2024-12-31 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141567', 'tblTempUsageDetail_20' ) start [2024-12-31 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141567', 'tblTempUsageDetail_20' ) end [2024-12-31 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141567', 'tblTempVendorCDR_20' ) start [2024-12-31 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141567', 'tblTempVendorCDR_20' ) end [2024-12-31 06:00:18] Production.INFO: ProcessCDR(1,14141567,1,1,2) [2024-12-31 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141567', 'tblTempUsageDetail_20' ) start [2024-12-31 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141567', 'tblTempUsageDetail_20' ) end [2024-12-31 06:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:00:21] Production.INFO: ==19316== Releasing lock... [2024-12-31 06:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:00:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:01:05 [end_date_ymd] => 2024-12-31 06:01:05 [RateCDR] => 1 ) [2024-12-31 06:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:01:05' and `end` < '2024-12-31 06:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:01:18] Production.INFO: count ==5 [2024-12-31 06:01:18] Production.ERROR: pbx CDR StartTime 2024-12-31 03:01:05 - End Time 2024-12-31 06:01:05 [2024-12-31 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141572', 'tblTempUsageDetail_20' ) start [2024-12-31 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141572', 'tblTempUsageDetail_20' ) end [2024-12-31 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141572', 'tblTempVendorCDR_20' ) start [2024-12-31 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141572', 'tblTempVendorCDR_20' ) end [2024-12-31 06:01:18] Production.INFO: ProcessCDR(1,14141572,1,1,2) [2024-12-31 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141572', 'tblTempUsageDetail_20' ) start [2024-12-31 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141572', 'tblTempUsageDetail_20' ) end [2024-12-31 06:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:01:21] Production.INFO: ==19408== Releasing lock... [2024-12-31 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:01:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:02:05 [end_date_ymd] => 2024-12-31 06:02:05 [RateCDR] => 1 ) [2024-12-31 06:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:02:05' and `end` < '2024-12-31 06:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:02:18] Production.INFO: count ==5 [2024-12-31 06:02:18] Production.ERROR: pbx CDR StartTime 2024-12-31 03:02:05 - End Time 2024-12-31 06:02:05 [2024-12-31 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141577', 'tblTempUsageDetail_20' ) start [2024-12-31 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141577', 'tblTempUsageDetail_20' ) end [2024-12-31 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141577', 'tblTempVendorCDR_20' ) start [2024-12-31 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141577', 'tblTempVendorCDR_20' ) end [2024-12-31 06:02:18] Production.INFO: ProcessCDR(1,14141577,1,1,2) [2024-12-31 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141577', 'tblTempUsageDetail_20' ) start [2024-12-31 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141577', 'tblTempUsageDetail_20' ) end [2024-12-31 06:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:02:21] Production.INFO: ==19482== Releasing lock... [2024-12-31 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:02:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:03:05 [end_date_ymd] => 2024-12-31 06:03:05 [RateCDR] => 1 ) [2024-12-31 06:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:03:05' and `end` < '2024-12-31 06:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:03:17] Production.INFO: count ==5 [2024-12-31 06:03:17] Production.ERROR: pbx CDR StartTime 2024-12-31 03:03:05 - End Time 2024-12-31 06:03:05 [2024-12-31 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141582', 'tblTempUsageDetail_20' ) start [2024-12-31 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141582', 'tblTempUsageDetail_20' ) end [2024-12-31 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141582', 'tblTempVendorCDR_20' ) start [2024-12-31 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141582', 'tblTempVendorCDR_20' ) end [2024-12-31 06:03:17] Production.INFO: ProcessCDR(1,14141582,1,1,2) [2024-12-31 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141582', 'tblTempUsageDetail_20' ) start [2024-12-31 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141582', 'tblTempUsageDetail_20' ) end [2024-12-31 06:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:03:20] Production.INFO: ==19561== Releasing lock... [2024-12-31 06:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:03:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:04:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:04:06 [end_date_ymd] => 2024-12-31 06:04:06 [RateCDR] => 1 ) [2024-12-31 06:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:04:06' and `end` < '2024-12-31 06:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:04:18] Production.INFO: count ==5 [2024-12-31 06:04:18] Production.ERROR: pbx CDR StartTime 2024-12-31 03:04:06 - End Time 2024-12-31 06:04:06 [2024-12-31 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141587', 'tblTempUsageDetail_20' ) start [2024-12-31 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141587', 'tblTempUsageDetail_20' ) end [2024-12-31 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141587', 'tblTempVendorCDR_20' ) start [2024-12-31 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141587', 'tblTempVendorCDR_20' ) end [2024-12-31 06:04:18] Production.INFO: ProcessCDR(1,14141587,1,1,2) [2024-12-31 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141587', 'tblTempUsageDetail_20' ) start [2024-12-31 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141587', 'tblTempUsageDetail_20' ) end [2024-12-31 06:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:04:21] Production.INFO: ==19643== Releasing lock... [2024-12-31 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:04:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:05:05 [end_date_ymd] => 2024-12-31 06:05:05 [RateCDR] => 1 ) [2024-12-31 06:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:05:05' and `end` < '2024-12-31 06:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:05:18] Production.INFO: count ==5 [2024-12-31 06:05:18] Production.ERROR: pbx CDR StartTime 2024-12-31 03:05:05 - End Time 2024-12-31 06:05:05 [2024-12-31 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141592', 'tblTempUsageDetail_20' ) start [2024-12-31 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141592', 'tblTempUsageDetail_20' ) end [2024-12-31 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141592', 'tblTempVendorCDR_20' ) start [2024-12-31 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141592', 'tblTempVendorCDR_20' ) end [2024-12-31 06:05:18] Production.INFO: ProcessCDR(1,14141592,1,1,2) [2024-12-31 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141592', 'tblTempUsageDetail_20' ) start [2024-12-31 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141592', 'tblTempUsageDetail_20' ) end [2024-12-31 06:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:05:21] Production.INFO: ==19760== Releasing lock... [2024-12-31 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:05:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:06:05 [end_date_ymd] => 2024-12-31 06:06:05 [RateCDR] => 1 ) [2024-12-31 06:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:06:05' and `end` < '2024-12-31 06:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:06:18] Production.INFO: count ==5 [2024-12-31 06:06:18] Production.ERROR: pbx CDR StartTime 2024-12-31 03:06:05 - End Time 2024-12-31 06:06:05 [2024-12-31 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141597', 'tblTempUsageDetail_20' ) start [2024-12-31 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141597', 'tblTempUsageDetail_20' ) end [2024-12-31 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141597', 'tblTempVendorCDR_20' ) start [2024-12-31 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141597', 'tblTempVendorCDR_20' ) end [2024-12-31 06:06:18] Production.INFO: ProcessCDR(1,14141597,1,1,2) [2024-12-31 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141597', 'tblTempUsageDetail_20' ) start [2024-12-31 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141597', 'tblTempUsageDetail_20' ) end [2024-12-31 06:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:06:21] Production.INFO: ==19836== Releasing lock... [2024-12-31 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:06:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:07:05 [end_date_ymd] => 2024-12-31 06:07:05 [RateCDR] => 1 ) [2024-12-31 06:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:07:05' and `end` < '2024-12-31 06:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:07:17] Production.INFO: count ==5 [2024-12-31 06:07:17] Production.ERROR: pbx CDR StartTime 2024-12-31 03:07:05 - End Time 2024-12-31 06:07:05 [2024-12-31 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141602', 'tblTempUsageDetail_20' ) start [2024-12-31 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141602', 'tblTempUsageDetail_20' ) end [2024-12-31 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141602', 'tblTempVendorCDR_20' ) start [2024-12-31 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141602', 'tblTempVendorCDR_20' ) end [2024-12-31 06:07:17] Production.INFO: ProcessCDR(1,14141602,1,1,2) [2024-12-31 06:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141602', 'tblTempUsageDetail_20' ) start [2024-12-31 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141602', 'tblTempUsageDetail_20' ) end [2024-12-31 06:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:07:20] Production.INFO: ==19912== Releasing lock... [2024-12-31 06:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:07:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:08:04 [end_date_ymd] => 2024-12-31 06:08:04 [RateCDR] => 1 ) [2024-12-31 06:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:08:04' and `end` < '2024-12-31 06:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:08:18] Production.INFO: count ==5 [2024-12-31 06:08:18] Production.ERROR: pbx CDR StartTime 2024-12-31 03:08:04 - End Time 2024-12-31 06:08:04 [2024-12-31 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141607', 'tblTempUsageDetail_20' ) start [2024-12-31 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141607', 'tblTempUsageDetail_20' ) end [2024-12-31 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141607', 'tblTempVendorCDR_20' ) start [2024-12-31 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141607', 'tblTempVendorCDR_20' ) end [2024-12-31 06:08:18] Production.INFO: ProcessCDR(1,14141607,1,1,2) [2024-12-31 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141607', 'tblTempUsageDetail_20' ) start [2024-12-31 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141607', 'tblTempUsageDetail_20' ) end [2024-12-31 06:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:08:21] Production.INFO: ==19994== Releasing lock... [2024-12-31 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:08:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:09:05 [end_date_ymd] => 2024-12-31 06:09:05 [RateCDR] => 1 ) [2024-12-31 06:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:09:05' and `end` < '2024-12-31 06:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:09:17] Production.INFO: count ==5 [2024-12-31 06:09:17] Production.ERROR: pbx CDR StartTime 2024-12-31 03:09:05 - End Time 2024-12-31 06:09:05 [2024-12-31 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141612', 'tblTempUsageDetail_20' ) start [2024-12-31 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141612', 'tblTempUsageDetail_20' ) end [2024-12-31 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141612', 'tblTempVendorCDR_20' ) start [2024-12-31 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141612', 'tblTempVendorCDR_20' ) end [2024-12-31 06:09:17] Production.INFO: ProcessCDR(1,14141612,1,1,2) [2024-12-31 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141612', 'tblTempUsageDetail_20' ) start [2024-12-31 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141612', 'tblTempUsageDetail_20' ) end [2024-12-31 06:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:09:20] Production.INFO: ==20076== Releasing lock... [2024-12-31 06:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:09:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:10:06 [end_date_ymd] => 2024-12-31 06:10:06 [RateCDR] => 1 ) [2024-12-31 06:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:10:06' and `end` < '2024-12-31 06:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:10:18] Production.INFO: count ==5 [2024-12-31 06:10:18] Production.ERROR: pbx CDR StartTime 2024-12-31 03:10:06 - End Time 2024-12-31 06:10:06 [2024-12-31 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141618', 'tblTempUsageDetail_20' ) start [2024-12-31 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141618', 'tblTempUsageDetail_20' ) end [2024-12-31 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141618', 'tblTempVendorCDR_20' ) start [2024-12-31 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141618', 'tblTempVendorCDR_20' ) end [2024-12-31 06:10:18] Production.INFO: ProcessCDR(1,14141618,1,1,2) [2024-12-31 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141618', 'tblTempUsageDetail_20' ) start [2024-12-31 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141618', 'tblTempUsageDetail_20' ) end [2024-12-31 06:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:10:21] Production.INFO: ==20156== Releasing lock... [2024-12-31 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:10:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:11:04 [end_date_ymd] => 2024-12-31 06:11:04 [RateCDR] => 1 ) [2024-12-31 06:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:11:04' and `end` < '2024-12-31 06:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:11:18] Production.INFO: count ==5 [2024-12-31 06:11:18] Production.ERROR: pbx CDR StartTime 2024-12-31 03:11:04 - End Time 2024-12-31 06:11:04 [2024-12-31 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141623', 'tblTempUsageDetail_20' ) start [2024-12-31 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141623', 'tblTempUsageDetail_20' ) end [2024-12-31 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141623', 'tblTempVendorCDR_20' ) start [2024-12-31 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141623', 'tblTempVendorCDR_20' ) end [2024-12-31 06:11:18] Production.INFO: ProcessCDR(1,14141623,1,1,2) [2024-12-31 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141623', 'tblTempUsageDetail_20' ) start [2024-12-31 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141623', 'tblTempUsageDetail_20' ) end [2024-12-31 06:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:11:21] Production.INFO: ==20246== Releasing lock... [2024-12-31 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:11:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:12:05 [end_date_ymd] => 2024-12-31 06:12:05 [RateCDR] => 1 ) [2024-12-31 06:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:12:05' and `end` < '2024-12-31 06:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:12:18] Production.INFO: count ==5 [2024-12-31 06:12:18] Production.ERROR: pbx CDR StartTime 2024-12-31 03:12:05 - End Time 2024-12-31 06:12:05 [2024-12-31 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141628', 'tblTempUsageDetail_20' ) start [2024-12-31 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141628', 'tblTempUsageDetail_20' ) end [2024-12-31 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141628', 'tblTempVendorCDR_20' ) start [2024-12-31 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141628', 'tblTempVendorCDR_20' ) end [2024-12-31 06:12:18] Production.INFO: ProcessCDR(1,14141628,1,1,2) [2024-12-31 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141628', 'tblTempUsageDetail_20' ) start [2024-12-31 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141628', 'tblTempUsageDetail_20' ) end [2024-12-31 06:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:12:21] Production.INFO: ==20330== Releasing lock... [2024-12-31 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:12:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:13:04 [end_date_ymd] => 2024-12-31 06:13:04 [RateCDR] => 1 ) [2024-12-31 06:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:13:04' and `end` < '2024-12-31 06:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:13:17] Production.INFO: count ==5 [2024-12-31 06:13:17] Production.ERROR: pbx CDR StartTime 2024-12-31 03:13:04 - End Time 2024-12-31 06:13:04 [2024-12-31 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141633', 'tblTempUsageDetail_20' ) start [2024-12-31 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141633', 'tblTempUsageDetail_20' ) end [2024-12-31 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141633', 'tblTempVendorCDR_20' ) start [2024-12-31 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141633', 'tblTempVendorCDR_20' ) end [2024-12-31 06:13:17] Production.INFO: ProcessCDR(1,14141633,1,1,2) [2024-12-31 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141633', 'tblTempUsageDetail_20' ) start [2024-12-31 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141633', 'tblTempUsageDetail_20' ) end [2024-12-31 06:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:13:20] Production.INFO: ==20420== Releasing lock... [2024-12-31 06:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:13:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:14:05 [end_date_ymd] => 2024-12-31 06:14:05 [RateCDR] => 1 ) [2024-12-31 06:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:14:05' and `end` < '2024-12-31 06:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:14:18] Production.INFO: count ==5 [2024-12-31 06:14:18] Production.ERROR: pbx CDR StartTime 2024-12-31 03:14:05 - End Time 2024-12-31 06:14:05 [2024-12-31 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141638', 'tblTempUsageDetail_20' ) start [2024-12-31 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141638', 'tblTempUsageDetail_20' ) end [2024-12-31 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141638', 'tblTempVendorCDR_20' ) start [2024-12-31 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141638', 'tblTempVendorCDR_20' ) end [2024-12-31 06:14:18] Production.INFO: ProcessCDR(1,14141638,1,1,2) [2024-12-31 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141638', 'tblTempUsageDetail_20' ) start [2024-12-31 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141638', 'tblTempUsageDetail_20' ) end [2024-12-31 06:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:14:21] Production.INFO: ==20510== Releasing lock... [2024-12-31 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:14:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:15:05 [end_date_ymd] => 2024-12-31 06:15:05 [RateCDR] => 1 ) [2024-12-31 06:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:15:05' and `end` < '2024-12-31 06:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:15:19] Production.INFO: count ==5 [2024-12-31 06:15:19] Production.ERROR: pbx CDR StartTime 2024-12-31 03:15:05 - End Time 2024-12-31 06:15:05 [2024-12-31 06:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141643', 'tblTempUsageDetail_20' ) start [2024-12-31 06:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141643', 'tblTempUsageDetail_20' ) end [2024-12-31 06:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141643', 'tblTempVendorCDR_20' ) start [2024-12-31 06:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141643', 'tblTempVendorCDR_20' ) end [2024-12-31 06:15:19] Production.INFO: ProcessCDR(1,14141643,1,1,2) [2024-12-31 06:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141643', 'tblTempUsageDetail_20' ) start [2024-12-31 06:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141643', 'tblTempUsageDetail_20' ) end [2024-12-31 06:15:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:15:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:15:22] Production.INFO: ==20613== Releasing lock... [2024-12-31 06:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:15:22] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:16:05 [end_date_ymd] => 2024-12-31 06:16:05 [RateCDR] => 1 ) [2024-12-31 06:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:16:05' and `end` < '2024-12-31 06:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:16:17] Production.INFO: count ==5 [2024-12-31 06:16:17] Production.ERROR: pbx CDR StartTime 2024-12-31 03:16:05 - End Time 2024-12-31 06:16:05 [2024-12-31 06:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141648', 'tblTempUsageDetail_20' ) start [2024-12-31 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141648', 'tblTempUsageDetail_20' ) end [2024-12-31 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141648', 'tblTempVendorCDR_20' ) start [2024-12-31 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141648', 'tblTempVendorCDR_20' ) end [2024-12-31 06:16:17] Production.INFO: ProcessCDR(1,14141648,1,1,2) [2024-12-31 06:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141648', 'tblTempUsageDetail_20' ) start [2024-12-31 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141648', 'tblTempUsageDetail_20' ) end [2024-12-31 06:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:16:20] Production.INFO: ==20698== Releasing lock... [2024-12-31 06:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:16:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:17:05 [end_date_ymd] => 2024-12-31 06:17:05 [RateCDR] => 1 ) [2024-12-31 06:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:17:05' and `end` < '2024-12-31 06:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:17:18] Production.INFO: count ==5 [2024-12-31 06:17:18] Production.ERROR: pbx CDR StartTime 2024-12-31 03:17:05 - End Time 2024-12-31 06:17:05 [2024-12-31 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141653', 'tblTempUsageDetail_20' ) start [2024-12-31 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141653', 'tblTempUsageDetail_20' ) end [2024-12-31 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141653', 'tblTempVendorCDR_20' ) start [2024-12-31 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141653', 'tblTempVendorCDR_20' ) end [2024-12-31 06:17:18] Production.INFO: ProcessCDR(1,14141653,1,1,2) [2024-12-31 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141653', 'tblTempUsageDetail_20' ) start [2024-12-31 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141653', 'tblTempUsageDetail_20' ) end [2024-12-31 06:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:17:21] Production.INFO: ==20791== Releasing lock... [2024-12-31 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:17:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:18:05 [end_date_ymd] => 2024-12-31 06:18:05 [RateCDR] => 1 ) [2024-12-31 06:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:18:05' and `end` < '2024-12-31 06:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:18:18] Production.INFO: count ==5 [2024-12-31 06:18:18] Production.ERROR: pbx CDR StartTime 2024-12-31 03:18:05 - End Time 2024-12-31 06:18:05 [2024-12-31 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141658', 'tblTempUsageDetail_20' ) start [2024-12-31 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141658', 'tblTempUsageDetail_20' ) end [2024-12-31 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141658', 'tblTempVendorCDR_20' ) start [2024-12-31 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141658', 'tblTempVendorCDR_20' ) end [2024-12-31 06:18:18] Production.INFO: ProcessCDR(1,14141658,1,1,2) [2024-12-31 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141658', 'tblTempUsageDetail_20' ) start [2024-12-31 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141658', 'tblTempUsageDetail_20' ) end [2024-12-31 06:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:18:21] Production.INFO: ==20874== Releasing lock... [2024-12-31 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:18:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:19:05 [end_date_ymd] => 2024-12-31 06:19:05 [RateCDR] => 1 ) [2024-12-31 06:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:19:05' and `end` < '2024-12-31 06:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:19:18] Production.INFO: count ==5 [2024-12-31 06:19:18] Production.ERROR: pbx CDR StartTime 2024-12-31 03:19:05 - End Time 2024-12-31 06:19:05 [2024-12-31 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141663', 'tblTempUsageDetail_20' ) start [2024-12-31 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141663', 'tblTempUsageDetail_20' ) end [2024-12-31 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141663', 'tblTempVendorCDR_20' ) start [2024-12-31 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141663', 'tblTempVendorCDR_20' ) end [2024-12-31 06:19:18] Production.INFO: ProcessCDR(1,14141663,1,1,2) [2024-12-31 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141663', 'tblTempUsageDetail_20' ) start [2024-12-31 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141663', 'tblTempUsageDetail_20' ) end [2024-12-31 06:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:19:21] Production.INFO: ==20957== Releasing lock... [2024-12-31 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:19:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:20:06 [end_date_ymd] => 2024-12-31 06:20:06 [RateCDR] => 1 ) [2024-12-31 06:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:20:06' and `end` < '2024-12-31 06:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:20:18] Production.INFO: count ==5 [2024-12-31 06:20:18] Production.ERROR: pbx CDR StartTime 2024-12-31 03:20:06 - End Time 2024-12-31 06:20:06 [2024-12-31 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141669', 'tblTempUsageDetail_20' ) start [2024-12-31 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141669', 'tblTempUsageDetail_20' ) end [2024-12-31 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141669', 'tblTempVendorCDR_20' ) start [2024-12-31 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141669', 'tblTempVendorCDR_20' ) end [2024-12-31 06:20:18] Production.INFO: ProcessCDR(1,14141669,1,1,2) [2024-12-31 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141669', 'tblTempUsageDetail_20' ) start [2024-12-31 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141669', 'tblTempUsageDetail_20' ) end [2024-12-31 06:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:20:21] Production.INFO: ==21082== Releasing lock... [2024-12-31 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:20:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:21:05 [end_date_ymd] => 2024-12-31 06:21:05 [RateCDR] => 1 ) [2024-12-31 06:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:21:05' and `end` < '2024-12-31 06:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:21:18] Production.INFO: count ==5 [2024-12-31 06:21:18] Production.ERROR: pbx CDR StartTime 2024-12-31 03:21:05 - End Time 2024-12-31 06:21:05 [2024-12-31 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141674', 'tblTempUsageDetail_20' ) start [2024-12-31 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141674', 'tblTempUsageDetail_20' ) end [2024-12-31 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141674', 'tblTempVendorCDR_20' ) start [2024-12-31 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141674', 'tblTempVendorCDR_20' ) end [2024-12-31 06:21:18] Production.INFO: ProcessCDR(1,14141674,1,1,2) [2024-12-31 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141674', 'tblTempUsageDetail_20' ) start [2024-12-31 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141674', 'tblTempUsageDetail_20' ) end [2024-12-31 06:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:21:21] Production.INFO: ==21168== Releasing lock... [2024-12-31 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:21:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:22:05 [end_date_ymd] => 2024-12-31 06:22:05 [RateCDR] => 1 ) [2024-12-31 06:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:22:05' and `end` < '2024-12-31 06:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:22:17] Production.INFO: count ==5 [2024-12-31 06:22:17] Production.ERROR: pbx CDR StartTime 2024-12-31 03:22:05 - End Time 2024-12-31 06:22:05 [2024-12-31 06:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141679', 'tblTempUsageDetail_20' ) start [2024-12-31 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141679', 'tblTempUsageDetail_20' ) end [2024-12-31 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141679', 'tblTempVendorCDR_20' ) start [2024-12-31 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141679', 'tblTempVendorCDR_20' ) end [2024-12-31 06:22:17] Production.INFO: ProcessCDR(1,14141679,1,1,2) [2024-12-31 06:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141679', 'tblTempUsageDetail_20' ) start [2024-12-31 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141679', 'tblTempUsageDetail_20' ) end [2024-12-31 06:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:22:20] Production.INFO: ==21245== Releasing lock... [2024-12-31 06:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:22:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:23:05 [end_date_ymd] => 2024-12-31 06:23:05 [RateCDR] => 1 ) [2024-12-31 06:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:23:05' and `end` < '2024-12-31 06:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:23:18] Production.INFO: count ==5 [2024-12-31 06:23:18] Production.ERROR: pbx CDR StartTime 2024-12-31 03:23:05 - End Time 2024-12-31 06:23:05 [2024-12-31 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141684', 'tblTempUsageDetail_20' ) start [2024-12-31 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141684', 'tblTempUsageDetail_20' ) end [2024-12-31 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141684', 'tblTempVendorCDR_20' ) start [2024-12-31 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141684', 'tblTempVendorCDR_20' ) end [2024-12-31 06:23:18] Production.INFO: ProcessCDR(1,14141684,1,1,2) [2024-12-31 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141684', 'tblTempUsageDetail_20' ) start [2024-12-31 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141684', 'tblTempUsageDetail_20' ) end [2024-12-31 06:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:23:22] Production.INFO: ==21326== Releasing lock... [2024-12-31 06:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:23:22] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:24:05 [end_date_ymd] => 2024-12-31 06:24:05 [RateCDR] => 1 ) [2024-12-31 06:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:24:05' and `end` < '2024-12-31 06:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:24:17] Production.INFO: count ==5 [2024-12-31 06:24:17] Production.ERROR: pbx CDR StartTime 2024-12-31 03:24:05 - End Time 2024-12-31 06:24:05 [2024-12-31 06:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141689', 'tblTempUsageDetail_20' ) start [2024-12-31 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141689', 'tblTempUsageDetail_20' ) end [2024-12-31 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141689', 'tblTempVendorCDR_20' ) start [2024-12-31 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141689', 'tblTempVendorCDR_20' ) end [2024-12-31 06:24:17] Production.INFO: ProcessCDR(1,14141689,1,1,2) [2024-12-31 06:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141689', 'tblTempUsageDetail_20' ) start [2024-12-31 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141689', 'tblTempUsageDetail_20' ) end [2024-12-31 06:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:24:20] Production.INFO: ==21405== Releasing lock... [2024-12-31 06:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:24:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:25:05 [end_date_ymd] => 2024-12-31 06:25:05 [RateCDR] => 1 ) [2024-12-31 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:25:05' and `end` < '2024-12-31 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:25:17] Production.INFO: count ==5 [2024-12-31 06:25:17] Production.ERROR: pbx CDR StartTime 2024-12-31 03:25:05 - End Time 2024-12-31 06:25:05 [2024-12-31 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141694', 'tblTempUsageDetail_20' ) start [2024-12-31 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141694', 'tblTempUsageDetail_20' ) end [2024-12-31 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141694', 'tblTempVendorCDR_20' ) start [2024-12-31 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141694', 'tblTempVendorCDR_20' ) end [2024-12-31 06:25:17] Production.INFO: ProcessCDR(1,14141694,1,1,2) [2024-12-31 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141694', 'tblTempUsageDetail_20' ) start [2024-12-31 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141694', 'tblTempUsageDetail_20' ) end [2024-12-31 06:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:25:20] Production.INFO: ==21484== Releasing lock... [2024-12-31 06:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:25:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:26:05 [end_date_ymd] => 2024-12-31 06:26:05 [RateCDR] => 1 ) [2024-12-31 06:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:26:05' and `end` < '2024-12-31 06:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:26:18] Production.INFO: count ==5 [2024-12-31 06:26:18] Production.ERROR: pbx CDR StartTime 2024-12-31 03:26:05 - End Time 2024-12-31 06:26:05 [2024-12-31 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141699', 'tblTempUsageDetail_20' ) start [2024-12-31 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141699', 'tblTempUsageDetail_20' ) end [2024-12-31 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141699', 'tblTempVendorCDR_20' ) start [2024-12-31 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141699', 'tblTempVendorCDR_20' ) end [2024-12-31 06:26:18] Production.INFO: ProcessCDR(1,14141699,1,1,2) [2024-12-31 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141699', 'tblTempUsageDetail_20' ) start [2024-12-31 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141699', 'tblTempUsageDetail_20' ) end [2024-12-31 06:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:26:21] Production.INFO: ==21573== Releasing lock... [2024-12-31 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:26:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:27:05 [end_date_ymd] => 2024-12-31 06:27:05 [RateCDR] => 1 ) [2024-12-31 06:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:27:05' and `end` < '2024-12-31 06:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:27:17] Production.INFO: count ==5 [2024-12-31 06:27:17] Production.ERROR: pbx CDR StartTime 2024-12-31 03:27:05 - End Time 2024-12-31 06:27:05 [2024-12-31 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141704', 'tblTempUsageDetail_20' ) start [2024-12-31 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141704', 'tblTempUsageDetail_20' ) end [2024-12-31 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141704', 'tblTempVendorCDR_20' ) start [2024-12-31 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141704', 'tblTempVendorCDR_20' ) end [2024-12-31 06:27:17] Production.INFO: ProcessCDR(1,14141704,1,1,2) [2024-12-31 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141704', 'tblTempUsageDetail_20' ) start [2024-12-31 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141704', 'tblTempUsageDetail_20' ) end [2024-12-31 06:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:27:20] Production.INFO: ==21657== Releasing lock... [2024-12-31 06:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:27:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:28:05 [end_date_ymd] => 2024-12-31 06:28:05 [RateCDR] => 1 ) [2024-12-31 06:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:28:05' and `end` < '2024-12-31 06:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:28:18] Production.INFO: count ==5 [2024-12-31 06:28:18] Production.ERROR: pbx CDR StartTime 2024-12-31 03:28:05 - End Time 2024-12-31 06:28:05 [2024-12-31 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141709', 'tblTempUsageDetail_20' ) start [2024-12-31 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141709', 'tblTempUsageDetail_20' ) end [2024-12-31 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141709', 'tblTempVendorCDR_20' ) start [2024-12-31 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141709', 'tblTempVendorCDR_20' ) end [2024-12-31 06:28:18] Production.INFO: ProcessCDR(1,14141709,1,1,2) [2024-12-31 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141709', 'tblTempUsageDetail_20' ) start [2024-12-31 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141709', 'tblTempUsageDetail_20' ) end [2024-12-31 06:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:28:21] Production.INFO: ==21743== Releasing lock... [2024-12-31 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:28:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:29:04 [end_date_ymd] => 2024-12-31 06:29:04 [RateCDR] => 1 ) [2024-12-31 06:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:29:04' and `end` < '2024-12-31 06:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:29:18] Production.INFO: count ==5 [2024-12-31 06:29:18] Production.ERROR: pbx CDR StartTime 2024-12-31 03:29:04 - End Time 2024-12-31 06:29:04 [2024-12-31 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141714', 'tblTempUsageDetail_20' ) start [2024-12-31 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141714', 'tblTempUsageDetail_20' ) end [2024-12-31 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141714', 'tblTempVendorCDR_20' ) start [2024-12-31 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141714', 'tblTempVendorCDR_20' ) end [2024-12-31 06:29:18] Production.INFO: ProcessCDR(1,14141714,1,1,2) [2024-12-31 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141714', 'tblTempUsageDetail_20' ) start [2024-12-31 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141714', 'tblTempUsageDetail_20' ) end [2024-12-31 06:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:29:21] Production.INFO: ==21823== Releasing lock... [2024-12-31 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:29:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:30:06 [end_date_ymd] => 2024-12-31 06:30:06 [RateCDR] => 1 ) [2024-12-31 06:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:30:06' and `end` < '2024-12-31 06:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:30:18] Production.INFO: count ==7 [2024-12-31 06:30:18] Production.ERROR: pbx CDR StartTime 2024-12-31 03:30:06 - End Time 2024-12-31 06:30:06 [2024-12-31 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141719', 'tblTempUsageDetail_20' ) start [2024-12-31 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141719', 'tblTempUsageDetail_20' ) end [2024-12-31 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141719', 'tblTempVendorCDR_20' ) start [2024-12-31 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141719', 'tblTempVendorCDR_20' ) end [2024-12-31 06:30:18] Production.INFO: ProcessCDR(1,14141719,1,1,2) [2024-12-31 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141719', 'tblTempUsageDetail_20' ) start [2024-12-31 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141719', 'tblTempUsageDetail_20' ) end [2024-12-31 06:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:30:21] Production.INFO: ==21918== Releasing lock... [2024-12-31 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:30:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:31:05 [end_date_ymd] => 2024-12-31 06:31:05 [RateCDR] => 1 ) [2024-12-31 06:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:31:05' and `end` < '2024-12-31 06:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:31:17] Production.INFO: count ==7 [2024-12-31 06:31:17] Production.ERROR: pbx CDR StartTime 2024-12-31 03:31:05 - End Time 2024-12-31 06:31:05 [2024-12-31 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141725', 'tblTempUsageDetail_20' ) start [2024-12-31 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141725', 'tblTempUsageDetail_20' ) end [2024-12-31 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141725', 'tblTempVendorCDR_20' ) start [2024-12-31 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141725', 'tblTempVendorCDR_20' ) end [2024-12-31 06:31:17] Production.INFO: ProcessCDR(1,14141725,1,1,2) [2024-12-31 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141725', 'tblTempUsageDetail_20' ) start [2024-12-31 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141725', 'tblTempUsageDetail_20' ) end [2024-12-31 06:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:31:20] Production.INFO: ==22010== Releasing lock... [2024-12-31 06:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:31:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:32:05 [end_date_ymd] => 2024-12-31 06:32:05 [RateCDR] => 1 ) [2024-12-31 06:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:32:05' and `end` < '2024-12-31 06:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:32:19] Production.INFO: count ==7 [2024-12-31 06:32:19] Production.ERROR: pbx CDR StartTime 2024-12-31 03:32:05 - End Time 2024-12-31 06:32:05 [2024-12-31 06:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141730', 'tblTempUsageDetail_20' ) start [2024-12-31 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141730', 'tblTempUsageDetail_20' ) end [2024-12-31 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141730', 'tblTempVendorCDR_20' ) start [2024-12-31 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141730', 'tblTempVendorCDR_20' ) end [2024-12-31 06:32:19] Production.INFO: ProcessCDR(1,14141730,1,1,2) [2024-12-31 06:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141730', 'tblTempUsageDetail_20' ) start [2024-12-31 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141730', 'tblTempUsageDetail_20' ) end [2024-12-31 06:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:32:22] Production.INFO: ==22096== Releasing lock... [2024-12-31 06:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:32:22] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:33:05 [end_date_ymd] => 2024-12-31 06:33:05 [RateCDR] => 1 ) [2024-12-31 06:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:33:05' and `end` < '2024-12-31 06:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:33:18] Production.INFO: count ==7 [2024-12-31 06:33:18] Production.ERROR: pbx CDR StartTime 2024-12-31 03:33:05 - End Time 2024-12-31 06:33:05 [2024-12-31 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141735', 'tblTempUsageDetail_20' ) start [2024-12-31 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141735', 'tblTempUsageDetail_20' ) end [2024-12-31 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141735', 'tblTempVendorCDR_20' ) start [2024-12-31 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141735', 'tblTempVendorCDR_20' ) end [2024-12-31 06:33:18] Production.INFO: ProcessCDR(1,14141735,1,1,2) [2024-12-31 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141735', 'tblTempUsageDetail_20' ) start [2024-12-31 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141735', 'tblTempUsageDetail_20' ) end [2024-12-31 06:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:33:22] Production.INFO: ==22185== Releasing lock... [2024-12-31 06:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:33:22] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:34:05 [end_date_ymd] => 2024-12-31 06:34:05 [RateCDR] => 1 ) [2024-12-31 06:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:34:05' and `end` < '2024-12-31 06:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:34:17] Production.INFO: count ==7 [2024-12-31 06:34:17] Production.ERROR: pbx CDR StartTime 2024-12-31 03:34:05 - End Time 2024-12-31 06:34:05 [2024-12-31 06:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141740', 'tblTempUsageDetail_20' ) start [2024-12-31 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141740', 'tblTempUsageDetail_20' ) end [2024-12-31 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141740', 'tblTempVendorCDR_20' ) start [2024-12-31 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141740', 'tblTempVendorCDR_20' ) end [2024-12-31 06:34:17] Production.INFO: ProcessCDR(1,14141740,1,1,2) [2024-12-31 06:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141740', 'tblTempUsageDetail_20' ) start [2024-12-31 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141740', 'tblTempUsageDetail_20' ) end [2024-12-31 06:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:34:20] Production.INFO: ==22273== Releasing lock... [2024-12-31 06:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:34:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:35:05 [end_date_ymd] => 2024-12-31 06:35:05 [RateCDR] => 1 ) [2024-12-31 06:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:35:05' and `end` < '2024-12-31 06:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:35:17] Production.INFO: count ==7 [2024-12-31 06:35:17] Production.ERROR: pbx CDR StartTime 2024-12-31 03:35:05 - End Time 2024-12-31 06:35:05 [2024-12-31 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141745', 'tblTempUsageDetail_20' ) start [2024-12-31 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141745', 'tblTempUsageDetail_20' ) end [2024-12-31 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141745', 'tblTempVendorCDR_20' ) start [2024-12-31 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141745', 'tblTempVendorCDR_20' ) end [2024-12-31 06:35:17] Production.INFO: ProcessCDR(1,14141745,1,1,2) [2024-12-31 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141745', 'tblTempUsageDetail_20' ) start [2024-12-31 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141745', 'tblTempUsageDetail_20' ) end [2024-12-31 06:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:35:21] Production.INFO: ==22362== Releasing lock... [2024-12-31 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:35:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:36:05 [end_date_ymd] => 2024-12-31 06:36:05 [RateCDR] => 1 ) [2024-12-31 06:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:36:05' and `end` < '2024-12-31 06:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:36:17] Production.INFO: count ==7 [2024-12-31 06:36:17] Production.ERROR: pbx CDR StartTime 2024-12-31 03:36:05 - End Time 2024-12-31 06:36:05 [2024-12-31 06:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141750', 'tblTempUsageDetail_20' ) start [2024-12-31 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141750', 'tblTempUsageDetail_20' ) end [2024-12-31 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141750', 'tblTempVendorCDR_20' ) start [2024-12-31 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141750', 'tblTempVendorCDR_20' ) end [2024-12-31 06:36:17] Production.INFO: ProcessCDR(1,14141750,1,1,2) [2024-12-31 06:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141750', 'tblTempUsageDetail_20' ) start [2024-12-31 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141750', 'tblTempUsageDetail_20' ) end [2024-12-31 06:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:36:20] Production.INFO: ==22495== Releasing lock... [2024-12-31 06:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:36:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:37:05 [end_date_ymd] => 2024-12-31 06:37:05 [RateCDR] => 1 ) [2024-12-31 06:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:37:05' and `end` < '2024-12-31 06:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:37:18] Production.INFO: count ==7 [2024-12-31 06:37:18] Production.ERROR: pbx CDR StartTime 2024-12-31 03:37:05 - End Time 2024-12-31 06:37:05 [2024-12-31 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141755', 'tblTempUsageDetail_20' ) start [2024-12-31 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141755', 'tblTempUsageDetail_20' ) end [2024-12-31 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141755', 'tblTempVendorCDR_20' ) start [2024-12-31 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141755', 'tblTempVendorCDR_20' ) end [2024-12-31 06:37:18] Production.INFO: ProcessCDR(1,14141755,1,1,2) [2024-12-31 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141755', 'tblTempUsageDetail_20' ) start [2024-12-31 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141755', 'tblTempUsageDetail_20' ) end [2024-12-31 06:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:37:21] Production.INFO: ==22580== Releasing lock... [2024-12-31 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:37:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:38:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:38:06 [end_date_ymd] => 2024-12-31 06:38:06 [RateCDR] => 1 ) [2024-12-31 06:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:38:06' and `end` < '2024-12-31 06:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:38:19] Production.INFO: count ==7 [2024-12-31 06:38:19] Production.ERROR: pbx CDR StartTime 2024-12-31 03:38:06 - End Time 2024-12-31 06:38:06 [2024-12-31 06:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141760', 'tblTempUsageDetail_20' ) start [2024-12-31 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141760', 'tblTempUsageDetail_20' ) end [2024-12-31 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141760', 'tblTempVendorCDR_20' ) start [2024-12-31 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141760', 'tblTempVendorCDR_20' ) end [2024-12-31 06:38:19] Production.INFO: ProcessCDR(1,14141760,1,1,2) [2024-12-31 06:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141760', 'tblTempUsageDetail_20' ) start [2024-12-31 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141760', 'tblTempUsageDetail_20' ) end [2024-12-31 06:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:38:22] Production.INFO: ==22668== Releasing lock... [2024-12-31 06:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:38:22] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:39:05 [end_date_ymd] => 2024-12-31 06:39:05 [RateCDR] => 1 ) [2024-12-31 06:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:39:05' and `end` < '2024-12-31 06:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:39:18] Production.INFO: count ==7 [2024-12-31 06:39:18] Production.ERROR: pbx CDR StartTime 2024-12-31 03:39:05 - End Time 2024-12-31 06:39:05 [2024-12-31 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141765', 'tblTempUsageDetail_20' ) start [2024-12-31 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141765', 'tblTempUsageDetail_20' ) end [2024-12-31 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141765', 'tblTempVendorCDR_20' ) start [2024-12-31 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141765', 'tblTempVendorCDR_20' ) end [2024-12-31 06:39:18] Production.INFO: ProcessCDR(1,14141765,1,1,2) [2024-12-31 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141765', 'tblTempUsageDetail_20' ) start [2024-12-31 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141765', 'tblTempUsageDetail_20' ) end [2024-12-31 06:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:39:22] Production.INFO: ==22757== Releasing lock... [2024-12-31 06:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:39:22] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:40:06 [end_date_ymd] => 2024-12-31 06:40:06 [RateCDR] => 1 ) [2024-12-31 06:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:40:06' and `end` < '2024-12-31 06:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:40:19] Production.INFO: count ==9 [2024-12-31 06:40:19] Production.ERROR: pbx CDR StartTime 2024-12-31 03:40:06 - End Time 2024-12-31 06:40:06 [2024-12-31 06:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141771', 'tblTempUsageDetail_20' ) start [2024-12-31 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141771', 'tblTempUsageDetail_20' ) end [2024-12-31 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141771', 'tblTempVendorCDR_20' ) start [2024-12-31 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141771', 'tblTempVendorCDR_20' ) end [2024-12-31 06:40:19] Production.INFO: ProcessCDR(1,14141771,1,1,2) [2024-12-31 06:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141771', 'tblTempUsageDetail_20' ) start [2024-12-31 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141771', 'tblTempUsageDetail_20' ) end [2024-12-31 06:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:40:22] Production.INFO: ==22848== Releasing lock... [2024-12-31 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:40:22] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:41:04 [end_date_ymd] => 2024-12-31 06:41:04 [RateCDR] => 1 ) [2024-12-31 06:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:41:04' and `end` < '2024-12-31 06:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:41:17] Production.INFO: count ==9 [2024-12-31 06:41:17] Production.ERROR: pbx CDR StartTime 2024-12-31 03:41:04 - End Time 2024-12-31 06:41:04 [2024-12-31 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141776', 'tblTempUsageDetail_20' ) start [2024-12-31 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141776', 'tblTempUsageDetail_20' ) end [2024-12-31 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141776', 'tblTempVendorCDR_20' ) start [2024-12-31 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141776', 'tblTempVendorCDR_20' ) end [2024-12-31 06:41:17] Production.INFO: ProcessCDR(1,14141776,1,1,2) [2024-12-31 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141776', 'tblTempUsageDetail_20' ) start [2024-12-31 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141776', 'tblTempUsageDetail_20' ) end [2024-12-31 06:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:41:20] Production.INFO: ==22941== Releasing lock... [2024-12-31 06:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:41:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:42:05 [end_date_ymd] => 2024-12-31 06:42:05 [RateCDR] => 1 ) [2024-12-31 06:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:42:05' and `end` < '2024-12-31 06:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:42:18] Production.INFO: count ==9 [2024-12-31 06:42:18] Production.ERROR: pbx CDR StartTime 2024-12-31 03:42:05 - End Time 2024-12-31 06:42:05 [2024-12-31 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141781', 'tblTempUsageDetail_20' ) start [2024-12-31 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141781', 'tblTempUsageDetail_20' ) end [2024-12-31 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141781', 'tblTempVendorCDR_20' ) start [2024-12-31 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141781', 'tblTempVendorCDR_20' ) end [2024-12-31 06:42:18] Production.INFO: ProcessCDR(1,14141781,1,1,2) [2024-12-31 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141781', 'tblTempUsageDetail_20' ) start [2024-12-31 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141781', 'tblTempUsageDetail_20' ) end [2024-12-31 06:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:42:21] Production.INFO: ==23030== Releasing lock... [2024-12-31 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:42:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:43:04 [end_date_ymd] => 2024-12-31 06:43:04 [RateCDR] => 1 ) [2024-12-31 06:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:43:04' and `end` < '2024-12-31 06:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:43:17] Production.INFO: count ==9 [2024-12-31 06:43:17] Production.ERROR: pbx CDR StartTime 2024-12-31 03:43:04 - End Time 2024-12-31 06:43:04 [2024-12-31 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141786', 'tblTempUsageDetail_20' ) start [2024-12-31 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141786', 'tblTempUsageDetail_20' ) end [2024-12-31 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141786', 'tblTempVendorCDR_20' ) start [2024-12-31 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141786', 'tblTempVendorCDR_20' ) end [2024-12-31 06:43:17] Production.INFO: ProcessCDR(1,14141786,1,1,2) [2024-12-31 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141786', 'tblTempUsageDetail_20' ) start [2024-12-31 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141786', 'tblTempUsageDetail_20' ) end [2024-12-31 06:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:43:20] Production.INFO: ==23113== Releasing lock... [2024-12-31 06:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:43:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:44:05 [end_date_ymd] => 2024-12-31 06:44:05 [RateCDR] => 1 ) [2024-12-31 06:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:44:05' and `end` < '2024-12-31 06:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:44:19] Production.INFO: count ==9 [2024-12-31 06:44:19] Production.ERROR: pbx CDR StartTime 2024-12-31 03:44:05 - End Time 2024-12-31 06:44:05 [2024-12-31 06:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141791', 'tblTempUsageDetail_20' ) start [2024-12-31 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141791', 'tblTempUsageDetail_20' ) end [2024-12-31 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141791', 'tblTempVendorCDR_20' ) start [2024-12-31 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141791', 'tblTempVendorCDR_20' ) end [2024-12-31 06:44:19] Production.INFO: ProcessCDR(1,14141791,1,1,2) [2024-12-31 06:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141791', 'tblTempUsageDetail_20' ) start [2024-12-31 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141791', 'tblTempUsageDetail_20' ) end [2024-12-31 06:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:44:22] Production.INFO: ==23207== Releasing lock... [2024-12-31 06:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:44:22] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:45:05 [end_date_ymd] => 2024-12-31 06:45:05 [RateCDR] => 1 ) [2024-12-31 06:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:45:05' and `end` < '2024-12-31 06:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:45:18] Production.INFO: count ==9 [2024-12-31 06:45:18] Production.ERROR: pbx CDR StartTime 2024-12-31 03:45:05 - End Time 2024-12-31 06:45:05 [2024-12-31 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141796', 'tblTempUsageDetail_20' ) start [2024-12-31 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141796', 'tblTempUsageDetail_20' ) end [2024-12-31 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141796', 'tblTempVendorCDR_20' ) start [2024-12-31 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141796', 'tblTempVendorCDR_20' ) end [2024-12-31 06:45:18] Production.INFO: ProcessCDR(1,14141796,1,1,2) [2024-12-31 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141796', 'tblTempUsageDetail_20' ) start [2024-12-31 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141796', 'tblTempUsageDetail_20' ) end [2024-12-31 06:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:45:22] Production.INFO: ==23297== Releasing lock... [2024-12-31 06:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:45:22] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:46:05 [end_date_ymd] => 2024-12-31 06:46:05 [RateCDR] => 1 ) [2024-12-31 06:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:46:05' and `end` < '2024-12-31 06:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:46:17] Production.INFO: count ==9 [2024-12-31 06:46:17] Production.ERROR: pbx CDR StartTime 2024-12-31 03:46:05 - End Time 2024-12-31 06:46:05 [2024-12-31 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141801', 'tblTempUsageDetail_20' ) start [2024-12-31 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141801', 'tblTempUsageDetail_20' ) end [2024-12-31 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141801', 'tblTempVendorCDR_20' ) start [2024-12-31 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141801', 'tblTempVendorCDR_20' ) end [2024-12-31 06:46:17] Production.INFO: ProcessCDR(1,14141801,1,1,2) [2024-12-31 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141801', 'tblTempUsageDetail_20' ) start [2024-12-31 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141801', 'tblTempUsageDetail_20' ) end [2024-12-31 06:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:46:20] Production.INFO: ==23388== Releasing lock... [2024-12-31 06:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:46:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:47:05 [end_date_ymd] => 2024-12-31 06:47:05 [RateCDR] => 1 ) [2024-12-31 06:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:47:05' and `end` < '2024-12-31 06:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:47:19] Production.INFO: count ==9 [2024-12-31 06:47:19] Production.ERROR: pbx CDR StartTime 2024-12-31 03:47:05 - End Time 2024-12-31 06:47:05 [2024-12-31 06:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141806', 'tblTempUsageDetail_20' ) start [2024-12-31 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141806', 'tblTempUsageDetail_20' ) end [2024-12-31 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141806', 'tblTempVendorCDR_20' ) start [2024-12-31 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141806', 'tblTempVendorCDR_20' ) end [2024-12-31 06:47:19] Production.INFO: ProcessCDR(1,14141806,1,1,2) [2024-12-31 06:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141806', 'tblTempUsageDetail_20' ) start [2024-12-31 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141806', 'tblTempUsageDetail_20' ) end [2024-12-31 06:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:47:22] Production.INFO: ==23479== Releasing lock... [2024-12-31 06:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:47:22] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:48:04 [end_date_ymd] => 2024-12-31 06:48:04 [RateCDR] => 1 ) [2024-12-31 06:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:48:04' and `end` < '2024-12-31 06:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:48:16] Production.INFO: count ==9 [2024-12-31 06:48:16] Production.ERROR: pbx CDR StartTime 2024-12-31 03:48:04 - End Time 2024-12-31 06:48:04 [2024-12-31 06:48:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141811', 'tblTempUsageDetail_20' ) start [2024-12-31 06:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141811', 'tblTempUsageDetail_20' ) end [2024-12-31 06:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141811', 'tblTempVendorCDR_20' ) start [2024-12-31 06:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141811', 'tblTempVendorCDR_20' ) end [2024-12-31 06:48:16] Production.INFO: ProcessCDR(1,14141811,1,1,2) [2024-12-31 06:48:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:48:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:48:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141811', 'tblTempUsageDetail_20' ) start [2024-12-31 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141811', 'tblTempUsageDetail_20' ) end [2024-12-31 06:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:48:20] Production.INFO: ==23560== Releasing lock... [2024-12-31 06:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:48:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:49:05 [end_date_ymd] => 2024-12-31 06:49:05 [RateCDR] => 1 ) [2024-12-31 06:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:49:05' and `end` < '2024-12-31 06:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:49:19] Production.INFO: count ==9 [2024-12-31 06:49:19] Production.ERROR: pbx CDR StartTime 2024-12-31 03:49:05 - End Time 2024-12-31 06:49:05 [2024-12-31 06:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141816', 'tblTempUsageDetail_20' ) start [2024-12-31 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141816', 'tblTempUsageDetail_20' ) end [2024-12-31 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141816', 'tblTempVendorCDR_20' ) start [2024-12-31 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141816', 'tblTempVendorCDR_20' ) end [2024-12-31 06:49:19] Production.INFO: ProcessCDR(1,14141816,1,1,2) [2024-12-31 06:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141816', 'tblTempUsageDetail_20' ) start [2024-12-31 06:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141816', 'tblTempUsageDetail_20' ) end [2024-12-31 06:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:49:22] Production.INFO: ==23646== Releasing lock... [2024-12-31 06:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:49:22] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:50:06 [end_date_ymd] => 2024-12-31 06:50:06 [RateCDR] => 1 ) [2024-12-31 06:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:50:06' and `end` < '2024-12-31 06:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:50:19] Production.INFO: count ==7 [2024-12-31 06:50:19] Production.ERROR: pbx CDR StartTime 2024-12-31 03:50:06 - End Time 2024-12-31 06:50:06 [2024-12-31 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141822', 'tblTempUsageDetail_20' ) start [2024-12-31 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141822', 'tblTempUsageDetail_20' ) end [2024-12-31 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141822', 'tblTempVendorCDR_20' ) start [2024-12-31 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141822', 'tblTempVendorCDR_20' ) end [2024-12-31 06:50:19] Production.INFO: ProcessCDR(1,14141822,1,1,2) [2024-12-31 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141822', 'tblTempUsageDetail_20' ) start [2024-12-31 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141822', 'tblTempUsageDetail_20' ) end [2024-12-31 06:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:50:22] Production.INFO: ==23730== Releasing lock... [2024-12-31 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:50:22] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:51:04 [end_date_ymd] => 2024-12-31 06:51:04 [RateCDR] => 1 ) [2024-12-31 06:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:51:04' and `end` < '2024-12-31 06:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:51:17] Production.INFO: count ==7 [2024-12-31 06:51:17] Production.ERROR: pbx CDR StartTime 2024-12-31 03:51:04 - End Time 2024-12-31 06:51:04 [2024-12-31 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141827', 'tblTempUsageDetail_20' ) start [2024-12-31 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141827', 'tblTempUsageDetail_20' ) end [2024-12-31 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141827', 'tblTempVendorCDR_20' ) start [2024-12-31 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141827', 'tblTempVendorCDR_20' ) end [2024-12-31 06:51:17] Production.INFO: ProcessCDR(1,14141827,1,1,2) [2024-12-31 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141827', 'tblTempUsageDetail_20' ) start [2024-12-31 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141827', 'tblTempUsageDetail_20' ) end [2024-12-31 06:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:51:20] Production.INFO: ==23810== Releasing lock... [2024-12-31 06:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:51:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:52:05 [end_date_ymd] => 2024-12-31 06:52:05 [RateCDR] => 1 ) [2024-12-31 06:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:52:05' and `end` < '2024-12-31 06:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:52:17] Production.INFO: count ==7 [2024-12-31 06:52:17] Production.ERROR: pbx CDR StartTime 2024-12-31 03:52:05 - End Time 2024-12-31 06:52:05 [2024-12-31 06:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141832', 'tblTempUsageDetail_20' ) start [2024-12-31 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141832', 'tblTempUsageDetail_20' ) end [2024-12-31 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141832', 'tblTempVendorCDR_20' ) start [2024-12-31 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141832', 'tblTempVendorCDR_20' ) end [2024-12-31 06:52:17] Production.INFO: ProcessCDR(1,14141832,1,1,2) [2024-12-31 06:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141832', 'tblTempUsageDetail_20' ) start [2024-12-31 06:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141832', 'tblTempUsageDetail_20' ) end [2024-12-31 06:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:52:20] Production.INFO: ==23928== Releasing lock... [2024-12-31 06:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:52:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:53:05 [end_date_ymd] => 2024-12-31 06:53:05 [RateCDR] => 1 ) [2024-12-31 06:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:53:05' and `end` < '2024-12-31 06:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:53:17] Production.INFO: count ==7 [2024-12-31 06:53:17] Production.ERROR: pbx CDR StartTime 2024-12-31 03:53:05 - End Time 2024-12-31 06:53:05 [2024-12-31 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141837', 'tblTempUsageDetail_20' ) start [2024-12-31 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141837', 'tblTempUsageDetail_20' ) end [2024-12-31 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141837', 'tblTempVendorCDR_20' ) start [2024-12-31 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141837', 'tblTempVendorCDR_20' ) end [2024-12-31 06:53:17] Production.INFO: ProcessCDR(1,14141837,1,1,2) [2024-12-31 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141837', 'tblTempUsageDetail_20' ) start [2024-12-31 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141837', 'tblTempUsageDetail_20' ) end [2024-12-31 06:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:53:20] Production.INFO: ==24007== Releasing lock... [2024-12-31 06:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:53:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:54:05 [end_date_ymd] => 2024-12-31 06:54:05 [RateCDR] => 1 ) [2024-12-31 06:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:54:05' and `end` < '2024-12-31 06:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:54:18] Production.INFO: count ==7 [2024-12-31 06:54:18] Production.ERROR: pbx CDR StartTime 2024-12-31 03:54:05 - End Time 2024-12-31 06:54:05 [2024-12-31 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141842', 'tblTempUsageDetail_20' ) start [2024-12-31 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141842', 'tblTempUsageDetail_20' ) end [2024-12-31 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141842', 'tblTempVendorCDR_20' ) start [2024-12-31 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141842', 'tblTempVendorCDR_20' ) end [2024-12-31 06:54:18] Production.INFO: ProcessCDR(1,14141842,1,1,2) [2024-12-31 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141842', 'tblTempUsageDetail_20' ) start [2024-12-31 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141842', 'tblTempUsageDetail_20' ) end [2024-12-31 06:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:54:21] Production.INFO: ==24085== Releasing lock... [2024-12-31 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:54:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:55:05 [end_date_ymd] => 2024-12-31 06:55:05 [RateCDR] => 1 ) [2024-12-31 06:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:55:05' and `end` < '2024-12-31 06:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:55:18] Production.INFO: count ==7 [2024-12-31 06:55:18] Production.ERROR: pbx CDR StartTime 2024-12-31 03:55:05 - End Time 2024-12-31 06:55:05 [2024-12-31 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141847', 'tblTempUsageDetail_20' ) start [2024-12-31 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141847', 'tblTempUsageDetail_20' ) end [2024-12-31 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141847', 'tblTempVendorCDR_20' ) start [2024-12-31 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141847', 'tblTempVendorCDR_20' ) end [2024-12-31 06:55:18] Production.INFO: ProcessCDR(1,14141847,1,1,2) [2024-12-31 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141847', 'tblTempUsageDetail_20' ) start [2024-12-31 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141847', 'tblTempUsageDetail_20' ) end [2024-12-31 06:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:55:21] Production.INFO: ==24162== Releasing lock... [2024-12-31 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:55:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:56:05 [end_date_ymd] => 2024-12-31 06:56:05 [RateCDR] => 1 ) [2024-12-31 06:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:56:05' and `end` < '2024-12-31 06:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:56:17] Production.INFO: count ==7 [2024-12-31 06:56:17] Production.ERROR: pbx CDR StartTime 2024-12-31 03:56:05 - End Time 2024-12-31 06:56:05 [2024-12-31 06:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141852', 'tblTempUsageDetail_20' ) start [2024-12-31 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141852', 'tblTempUsageDetail_20' ) end [2024-12-31 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141852', 'tblTempVendorCDR_20' ) start [2024-12-31 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141852', 'tblTempVendorCDR_20' ) end [2024-12-31 06:56:17] Production.INFO: ProcessCDR(1,14141852,1,1,2) [2024-12-31 06:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141852', 'tblTempUsageDetail_20' ) start [2024-12-31 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141852', 'tblTempUsageDetail_20' ) end [2024-12-31 06:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:56:20] Production.INFO: ==24240== Releasing lock... [2024-12-31 06:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:56:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:57:05 [end_date_ymd] => 2024-12-31 06:57:05 [RateCDR] => 1 ) [2024-12-31 06:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:57:05' and `end` < '2024-12-31 06:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:57:18] Production.INFO: count ==7 [2024-12-31 06:57:18] Production.ERROR: pbx CDR StartTime 2024-12-31 03:57:05 - End Time 2024-12-31 06:57:05 [2024-12-31 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141857', 'tblTempUsageDetail_20' ) start [2024-12-31 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141857', 'tblTempUsageDetail_20' ) end [2024-12-31 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141857', 'tblTempVendorCDR_20' ) start [2024-12-31 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141857', 'tblTempVendorCDR_20' ) end [2024-12-31 06:57:18] Production.INFO: ProcessCDR(1,14141857,1,1,2) [2024-12-31 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141857', 'tblTempUsageDetail_20' ) start [2024-12-31 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141857', 'tblTempUsageDetail_20' ) end [2024-12-31 06:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:57:21] Production.INFO: ==24316== Releasing lock... [2024-12-31 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:57:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:58:04 [end_date_ymd] => 2024-12-31 06:58:04 [RateCDR] => 1 ) [2024-12-31 06:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:58:04' and `end` < '2024-12-31 06:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:58:17] Production.INFO: count ==7 [2024-12-31 06:58:17] Production.ERROR: pbx CDR StartTime 2024-12-31 03:58:04 - End Time 2024-12-31 06:58:04 [2024-12-31 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141862', 'tblTempUsageDetail_20' ) start [2024-12-31 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141862', 'tblTempUsageDetail_20' ) end [2024-12-31 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141862', 'tblTempVendorCDR_20' ) start [2024-12-31 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141862', 'tblTempVendorCDR_20' ) end [2024-12-31 06:58:17] Production.INFO: ProcessCDR(1,14141862,1,1,2) [2024-12-31 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141862', 'tblTempUsageDetail_20' ) start [2024-12-31 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141862', 'tblTempUsageDetail_20' ) end [2024-12-31 06:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:58:20] Production.INFO: ==24394== Releasing lock... [2024-12-31 06:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:58:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 03:59:05 [end_date_ymd] => 2024-12-31 06:59:05 [RateCDR] => 1 ) [2024-12-31 06:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 03:59:05' and `end` < '2024-12-31 06:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 06:59:18] Production.INFO: count ==7 [2024-12-31 06:59:18] Production.ERROR: pbx CDR StartTime 2024-12-31 03:59:05 - End Time 2024-12-31 06:59:05 [2024-12-31 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141867', 'tblTempUsageDetail_20' ) start [2024-12-31 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141867', 'tblTempUsageDetail_20' ) end [2024-12-31 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141867', 'tblTempVendorCDR_20' ) start [2024-12-31 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141867', 'tblTempVendorCDR_20' ) end [2024-12-31 06:59:18] Production.INFO: ProcessCDR(1,14141867,1,1,2) [2024-12-31 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141867', 'tblTempUsageDetail_20' ) start [2024-12-31 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141867', 'tblTempUsageDetail_20' ) end [2024-12-31 06:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 06:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 06:59:21] Production.INFO: ==24469== Releasing lock... [2024-12-31 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 06:59:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:00:05 [end_date_ymd] => 2024-12-31 07:00:05 [RateCDR] => 1 ) [2024-12-31 07:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:00:05' and `end` < '2024-12-31 07:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:00:17] Production.INFO: count ==7 [2024-12-31 07:00:17] Production.ERROR: pbx CDR StartTime 2024-12-31 04:00:05 - End Time 2024-12-31 07:00:05 [2024-12-31 07:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141872', 'tblTempUsageDetail_20' ) start [2024-12-31 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141872', 'tblTempUsageDetail_20' ) end [2024-12-31 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141872', 'tblTempVendorCDR_20' ) start [2024-12-31 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141872', 'tblTempVendorCDR_20' ) end [2024-12-31 07:00:17] Production.INFO: ProcessCDR(1,14141872,1,1,2) [2024-12-31 07:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141872', 'tblTempUsageDetail_20' ) start [2024-12-31 07:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141872', 'tblTempUsageDetail_20' ) end [2024-12-31 07:00:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:00:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:00:20] Production.INFO: ==24541== Releasing lock... [2024-12-31 07:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:00:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:01:04 [end_date_ymd] => 2024-12-31 07:01:04 [RateCDR] => 1 ) [2024-12-31 07:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:01:04' and `end` < '2024-12-31 07:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:01:22] Production.INFO: count ==7 [2024-12-31 07:01:22] Production.ERROR: pbx CDR StartTime 2024-12-31 04:01:04 - End Time 2024-12-31 07:01:04 [2024-12-31 07:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141876', 'tblTempUsageDetail_20' ) start [2024-12-31 07:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141876', 'tblTempUsageDetail_20' ) end [2024-12-31 07:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141876', 'tblTempVendorCDR_20' ) start [2024-12-31 07:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141876', 'tblTempVendorCDR_20' ) end [2024-12-31 07:01:22] Production.INFO: ProcessCDR(1,14141876,1,1,2) [2024-12-31 07:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141876', 'tblTempUsageDetail_20' ) start [2024-12-31 07:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141876', 'tblTempUsageDetail_20' ) end [2024-12-31 07:01:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:01:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:01:25] Production.INFO: ==24629== Releasing lock... [2024-12-31 07:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:01:25] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:02:05 [end_date_ymd] => 2024-12-31 07:02:05 [RateCDR] => 1 ) [2024-12-31 07:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:02:05' and `end` < '2024-12-31 07:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:02:20] Production.INFO: count ==7 [2024-12-31 07:02:20] Production.ERROR: pbx CDR StartTime 2024-12-31 04:02:05 - End Time 2024-12-31 07:02:05 [2024-12-31 07:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141883', 'tblTempUsageDetail_20' ) start [2024-12-31 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141883', 'tblTempUsageDetail_20' ) end [2024-12-31 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141883', 'tblTempVendorCDR_20' ) start [2024-12-31 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141883', 'tblTempVendorCDR_20' ) end [2024-12-31 07:02:20] Production.INFO: ProcessCDR(1,14141883,1,1,2) [2024-12-31 07:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141883', 'tblTempUsageDetail_20' ) start [2024-12-31 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141883', 'tblTempUsageDetail_20' ) end [2024-12-31 07:02:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:02:23] Production.INFO: ==24781== Releasing lock... [2024-12-31 07:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:02:23] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:03:04 [end_date_ymd] => 2024-12-31 07:03:04 [RateCDR] => 1 ) [2024-12-31 07:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:03:04' and `end` < '2024-12-31 07:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:03:18] Production.INFO: count ==7 [2024-12-31 07:03:18] Production.ERROR: pbx CDR StartTime 2024-12-31 04:03:04 - End Time 2024-12-31 07:03:04 [2024-12-31 07:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141888', 'tblTempUsageDetail_20' ) start [2024-12-31 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141888', 'tblTempUsageDetail_20' ) end [2024-12-31 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141888', 'tblTempVendorCDR_20' ) start [2024-12-31 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141888', 'tblTempVendorCDR_20' ) end [2024-12-31 07:03:18] Production.INFO: ProcessCDR(1,14141888,1,1,2) [2024-12-31 07:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141888', 'tblTempUsageDetail_20' ) start [2024-12-31 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141888', 'tblTempUsageDetail_20' ) end [2024-12-31 07:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:03:21] Production.INFO: ==24854== Releasing lock... [2024-12-31 07:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:03:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:04:05 [end_date_ymd] => 2024-12-31 07:04:05 [RateCDR] => 1 ) [2024-12-31 07:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:04:05' and `end` < '2024-12-31 07:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:04:19] Production.INFO: count ==7 [2024-12-31 07:04:19] Production.ERROR: pbx CDR StartTime 2024-12-31 04:04:05 - End Time 2024-12-31 07:04:05 [2024-12-31 07:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141893', 'tblTempUsageDetail_20' ) start [2024-12-31 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141893', 'tblTempUsageDetail_20' ) end [2024-12-31 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141893', 'tblTempVendorCDR_20' ) start [2024-12-31 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141893', 'tblTempVendorCDR_20' ) end [2024-12-31 07:04:19] Production.INFO: ProcessCDR(1,14141893,1,1,2) [2024-12-31 07:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141893', 'tblTempUsageDetail_20' ) start [2024-12-31 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141893', 'tblTempUsageDetail_20' ) end [2024-12-31 07:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:04:22] Production.INFO: ==24931== Releasing lock... [2024-12-31 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:04:22] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:05:04 [end_date_ymd] => 2024-12-31 07:05:04 [RateCDR] => 1 ) [2024-12-31 07:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:05:04' and `end` < '2024-12-31 07:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:05:19] Production.INFO: count ==7 [2024-12-31 07:05:19] Production.ERROR: pbx CDR StartTime 2024-12-31 04:05:04 - End Time 2024-12-31 07:05:04 [2024-12-31 07:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141896', 'tblTempUsageDetail_20' ) start [2024-12-31 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141896', 'tblTempUsageDetail_20' ) end [2024-12-31 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141896', 'tblTempVendorCDR_20' ) start [2024-12-31 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141896', 'tblTempVendorCDR_20' ) end [2024-12-31 07:05:19] Production.INFO: ProcessCDR(1,14141896,1,1,2) [2024-12-31 07:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141896', 'tblTempUsageDetail_20' ) start [2024-12-31 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141896', 'tblTempUsageDetail_20' ) end [2024-12-31 07:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:05:22] Production.INFO: ==25080== Releasing lock... [2024-12-31 07:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:05:22] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:06:05 [end_date_ymd] => 2024-12-31 07:06:05 [RateCDR] => 1 ) [2024-12-31 07:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:06:05' and `end` < '2024-12-31 07:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:06:19] Production.INFO: count ==7 [2024-12-31 07:06:19] Production.ERROR: pbx CDR StartTime 2024-12-31 04:06:05 - End Time 2024-12-31 07:06:05 [2024-12-31 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141903', 'tblTempUsageDetail_20' ) start [2024-12-31 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141903', 'tblTempUsageDetail_20' ) end [2024-12-31 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141903', 'tblTempVendorCDR_20' ) start [2024-12-31 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141903', 'tblTempVendorCDR_20' ) end [2024-12-31 07:06:19] Production.INFO: ProcessCDR(1,14141903,1,1,2) [2024-12-31 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141903', 'tblTempUsageDetail_20' ) start [2024-12-31 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141903', 'tblTempUsageDetail_20' ) end [2024-12-31 07:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:06:22] Production.INFO: ==25156== Releasing lock... [2024-12-31 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:06:22] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:07:04 [end_date_ymd] => 2024-12-31 07:07:04 [RateCDR] => 1 ) [2024-12-31 07:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:07:04' and `end` < '2024-12-31 07:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:07:19] Production.INFO: count ==7 [2024-12-31 07:07:19] Production.ERROR: pbx CDR StartTime 2024-12-31 04:07:04 - End Time 2024-12-31 07:07:04 [2024-12-31 07:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141908', 'tblTempUsageDetail_20' ) start [2024-12-31 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141908', 'tblTempUsageDetail_20' ) end [2024-12-31 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141908', 'tblTempVendorCDR_20' ) start [2024-12-31 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141908', 'tblTempVendorCDR_20' ) end [2024-12-31 07:07:19] Production.INFO: ProcessCDR(1,14141908,1,1,2) [2024-12-31 07:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141908', 'tblTempUsageDetail_20' ) start [2024-12-31 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141908', 'tblTempUsageDetail_20' ) end [2024-12-31 07:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:07:22] Production.INFO: ==25227== Releasing lock... [2024-12-31 07:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:07:22] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:08:05 [end_date_ymd] => 2024-12-31 07:08:05 [RateCDR] => 1 ) [2024-12-31 07:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:08:05' and `end` < '2024-12-31 07:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:08:19] Production.INFO: count ==7 [2024-12-31 07:08:19] Production.ERROR: pbx CDR StartTime 2024-12-31 04:08:05 - End Time 2024-12-31 07:08:05 [2024-12-31 07:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141913', 'tblTempUsageDetail_20' ) start [2024-12-31 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141913', 'tblTempUsageDetail_20' ) end [2024-12-31 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141913', 'tblTempVendorCDR_20' ) start [2024-12-31 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141913', 'tblTempVendorCDR_20' ) end [2024-12-31 07:08:19] Production.INFO: ProcessCDR(1,14141913,1,1,2) [2024-12-31 07:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141913', 'tblTempUsageDetail_20' ) start [2024-12-31 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141913', 'tblTempUsageDetail_20' ) end [2024-12-31 07:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:08:22] Production.INFO: ==25339== Releasing lock... [2024-12-31 07:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:08:22] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:09:05 [end_date_ymd] => 2024-12-31 07:09:05 [RateCDR] => 1 ) [2024-12-31 07:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:09:05' and `end` < '2024-12-31 07:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:09:19] Production.INFO: count ==7 [2024-12-31 07:09:19] Production.ERROR: pbx CDR StartTime 2024-12-31 04:09:05 - End Time 2024-12-31 07:09:05 [2024-12-31 07:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141918', 'tblTempUsageDetail_20' ) start [2024-12-31 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141918', 'tblTempUsageDetail_20' ) end [2024-12-31 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141918', 'tblTempVendorCDR_20' ) start [2024-12-31 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141918', 'tblTempVendorCDR_20' ) end [2024-12-31 07:09:19] Production.INFO: ProcessCDR(1,14141918,1,1,2) [2024-12-31 07:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141918', 'tblTempUsageDetail_20' ) start [2024-12-31 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141918', 'tblTempUsageDetail_20' ) end [2024-12-31 07:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:09:22] Production.INFO: ==25492== Releasing lock... [2024-12-31 07:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:09:22] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:10:05 [end_date_ymd] => 2024-12-31 07:10:05 [RateCDR] => 1 ) [2024-12-31 07:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:10:05' and `end` < '2024-12-31 07:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:10:19] Production.INFO: count ==7 [2024-12-31 07:10:19] Production.ERROR: pbx CDR StartTime 2024-12-31 04:10:05 - End Time 2024-12-31 07:10:05 [2024-12-31 07:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141923', 'tblTempUsageDetail_20' ) start [2024-12-31 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141923', 'tblTempUsageDetail_20' ) end [2024-12-31 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141923', 'tblTempVendorCDR_20' ) start [2024-12-31 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141923', 'tblTempVendorCDR_20' ) end [2024-12-31 07:10:19] Production.INFO: ProcessCDR(1,14141923,1,1,2) [2024-12-31 07:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141923', 'tblTempUsageDetail_20' ) start [2024-12-31 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141923', 'tblTempUsageDetail_20' ) end [2024-12-31 07:10:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:10:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:10:23] Production.INFO: ==25565== Releasing lock... [2024-12-31 07:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:10:23] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:11:05 [end_date_ymd] => 2024-12-31 07:11:05 [RateCDR] => 1 ) [2024-12-31 07:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:11:05' and `end` < '2024-12-31 07:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:11:20] Production.INFO: count ==7 [2024-12-31 07:11:20] Production.ERROR: pbx CDR StartTime 2024-12-31 04:11:05 - End Time 2024-12-31 07:11:05 [2024-12-31 07:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141929', 'tblTempUsageDetail_20' ) start [2024-12-31 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141929', 'tblTempUsageDetail_20' ) end [2024-12-31 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141929', 'tblTempVendorCDR_20' ) start [2024-12-31 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141929', 'tblTempVendorCDR_20' ) end [2024-12-31 07:11:20] Production.INFO: ProcessCDR(1,14141929,1,1,2) [2024-12-31 07:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141929', 'tblTempUsageDetail_20' ) start [2024-12-31 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141929', 'tblTempUsageDetail_20' ) end [2024-12-31 07:11:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:11:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:11:23] Production.INFO: ==25637== Releasing lock... [2024-12-31 07:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:11:23] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:12:05 [end_date_ymd] => 2024-12-31 07:12:05 [RateCDR] => 1 ) [2024-12-31 07:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:12:05' and `end` < '2024-12-31 07:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:12:19] Production.INFO: count ==7 [2024-12-31 07:12:19] Production.ERROR: pbx CDR StartTime 2024-12-31 04:12:05 - End Time 2024-12-31 07:12:05 [2024-12-31 07:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141934', 'tblTempUsageDetail_20' ) start [2024-12-31 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141934', 'tblTempUsageDetail_20' ) end [2024-12-31 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141934', 'tblTempVendorCDR_20' ) start [2024-12-31 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141934', 'tblTempVendorCDR_20' ) end [2024-12-31 07:12:19] Production.INFO: ProcessCDR(1,14141934,1,1,2) [2024-12-31 07:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141934', 'tblTempUsageDetail_20' ) start [2024-12-31 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141934', 'tblTempUsageDetail_20' ) end [2024-12-31 07:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:12:22] Production.INFO: ==25790== Releasing lock... [2024-12-31 07:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:12:22] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:13:05 [end_date_ymd] => 2024-12-31 07:13:05 [RateCDR] => 1 ) [2024-12-31 07:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:13:05' and `end` < '2024-12-31 07:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:13:19] Production.INFO: count ==7 [2024-12-31 07:13:19] Production.ERROR: pbx CDR StartTime 2024-12-31 04:13:05 - End Time 2024-12-31 07:13:05 [2024-12-31 07:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141939', 'tblTempUsageDetail_20' ) start [2024-12-31 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141939', 'tblTempUsageDetail_20' ) end [2024-12-31 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141939', 'tblTempVendorCDR_20' ) start [2024-12-31 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141939', 'tblTempVendorCDR_20' ) end [2024-12-31 07:13:19] Production.INFO: ProcessCDR(1,14141939,1,1,2) [2024-12-31 07:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141939', 'tblTempUsageDetail_20' ) start [2024-12-31 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141939', 'tblTempUsageDetail_20' ) end [2024-12-31 07:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:13:22] Production.INFO: ==25861== Releasing lock... [2024-12-31 07:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:13:22] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:14:05 [end_date_ymd] => 2024-12-31 07:14:05 [RateCDR] => 1 ) [2024-12-31 07:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:14:05' and `end` < '2024-12-31 07:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:14:20] Production.INFO: count ==7 [2024-12-31 07:14:20] Production.ERROR: pbx CDR StartTime 2024-12-31 04:14:05 - End Time 2024-12-31 07:14:05 [2024-12-31 07:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141944', 'tblTempUsageDetail_20' ) start [2024-12-31 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141944', 'tblTempUsageDetail_20' ) end [2024-12-31 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141944', 'tblTempVendorCDR_20' ) start [2024-12-31 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141944', 'tblTempVendorCDR_20' ) end [2024-12-31 07:14:20] Production.INFO: ProcessCDR(1,14141944,1,1,2) [2024-12-31 07:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141944', 'tblTempUsageDetail_20' ) start [2024-12-31 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141944', 'tblTempUsageDetail_20' ) end [2024-12-31 07:14:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:14:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:14:23] Production.INFO: ==25939== Releasing lock... [2024-12-31 07:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:14:23] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:15:05 [end_date_ymd] => 2024-12-31 07:15:05 [RateCDR] => 1 ) [2024-12-31 07:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:15:05' and `end` < '2024-12-31 07:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:15:18] Production.INFO: count ==7 [2024-12-31 07:15:18] Production.ERROR: pbx CDR StartTime 2024-12-31 04:15:05 - End Time 2024-12-31 07:15:05 [2024-12-31 07:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141949', 'tblTempUsageDetail_20' ) start [2024-12-31 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141949', 'tblTempUsageDetail_20' ) end [2024-12-31 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141949', 'tblTempVendorCDR_20' ) start [2024-12-31 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141949', 'tblTempVendorCDR_20' ) end [2024-12-31 07:15:18] Production.INFO: ProcessCDR(1,14141949,1,1,2) [2024-12-31 07:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141949', 'tblTempUsageDetail_20' ) start [2024-12-31 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141949', 'tblTempUsageDetail_20' ) end [2024-12-31 07:15:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:15:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:15:22] Production.INFO: ==26009== Releasing lock... [2024-12-31 07:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:15:22] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:16:05 [end_date_ymd] => 2024-12-31 07:16:05 [RateCDR] => 1 ) [2024-12-31 07:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:16:05' and `end` < '2024-12-31 07:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:16:19] Production.INFO: count ==7 [2024-12-31 07:16:19] Production.ERROR: pbx CDR StartTime 2024-12-31 04:16:05 - End Time 2024-12-31 07:16:05 [2024-12-31 07:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141954', 'tblTempUsageDetail_20' ) start [2024-12-31 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141954', 'tblTempUsageDetail_20' ) end [2024-12-31 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141954', 'tblTempVendorCDR_20' ) start [2024-12-31 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141954', 'tblTempVendorCDR_20' ) end [2024-12-31 07:16:19] Production.INFO: ProcessCDR(1,14141954,1,1,2) [2024-12-31 07:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141954', 'tblTempUsageDetail_20' ) start [2024-12-31 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141954', 'tblTempUsageDetail_20' ) end [2024-12-31 07:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:16:22] Production.INFO: ==26157== Releasing lock... [2024-12-31 07:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:16:22] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:17:04 [end_date_ymd] => 2024-12-31 07:17:04 [RateCDR] => 1 ) [2024-12-31 07:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:17:04' and `end` < '2024-12-31 07:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:17:18] Production.INFO: count ==7 [2024-12-31 07:17:18] Production.ERROR: pbx CDR StartTime 2024-12-31 04:17:04 - End Time 2024-12-31 07:17:04 [2024-12-31 07:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141959', 'tblTempUsageDetail_20' ) start [2024-12-31 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141959', 'tblTempUsageDetail_20' ) end [2024-12-31 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141959', 'tblTempVendorCDR_20' ) start [2024-12-31 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141959', 'tblTempVendorCDR_20' ) end [2024-12-31 07:17:18] Production.INFO: ProcessCDR(1,14141959,1,1,2) [2024-12-31 07:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141959', 'tblTempUsageDetail_20' ) start [2024-12-31 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141959', 'tblTempUsageDetail_20' ) end [2024-12-31 07:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:17:21] Production.INFO: ==26228== Releasing lock... [2024-12-31 07:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:17:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:18:05 [end_date_ymd] => 2024-12-31 07:18:05 [RateCDR] => 1 ) [2024-12-31 07:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:18:05' and `end` < '2024-12-31 07:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:18:19] Production.INFO: count ==7 [2024-12-31 07:18:19] Production.ERROR: pbx CDR StartTime 2024-12-31 04:18:05 - End Time 2024-12-31 07:18:05 [2024-12-31 07:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141964', 'tblTempUsageDetail_20' ) start [2024-12-31 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141964', 'tblTempUsageDetail_20' ) end [2024-12-31 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141964', 'tblTempVendorCDR_20' ) start [2024-12-31 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141964', 'tblTempVendorCDR_20' ) end [2024-12-31 07:18:19] Production.INFO: ProcessCDR(1,14141964,1,1,2) [2024-12-31 07:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141964', 'tblTempUsageDetail_20' ) start [2024-12-31 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141964', 'tblTempUsageDetail_20' ) end [2024-12-31 07:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:18:22] Production.INFO: ==26299== Releasing lock... [2024-12-31 07:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:18:22] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:19:05 [end_date_ymd] => 2024-12-31 07:19:05 [RateCDR] => 1 ) [2024-12-31 07:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:19:05' and `end` < '2024-12-31 07:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:19:18] Production.INFO: count ==7 [2024-12-31 07:19:18] Production.ERROR: pbx CDR StartTime 2024-12-31 04:19:05 - End Time 2024-12-31 07:19:05 [2024-12-31 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141969', 'tblTempUsageDetail_20' ) start [2024-12-31 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141969', 'tblTempUsageDetail_20' ) end [2024-12-31 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141969', 'tblTempVendorCDR_20' ) start [2024-12-31 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141969', 'tblTempVendorCDR_20' ) end [2024-12-31 07:19:18] Production.INFO: ProcessCDR(1,14141969,1,1,2) [2024-12-31 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141969', 'tblTempUsageDetail_20' ) start [2024-12-31 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141969', 'tblTempUsageDetail_20' ) end [2024-12-31 07:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:19:21] Production.INFO: ==26390== Releasing lock... [2024-12-31 07:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:19:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:20:05 [end_date_ymd] => 2024-12-31 07:20:05 [RateCDR] => 1 ) [2024-12-31 07:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:20:05' and `end` < '2024-12-31 07:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:20:18] Production.INFO: count ==7 [2024-12-31 07:20:18] Production.ERROR: pbx CDR StartTime 2024-12-31 04:20:05 - End Time 2024-12-31 07:20:05 [2024-12-31 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141975', 'tblTempUsageDetail_20' ) start [2024-12-31 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141975', 'tblTempUsageDetail_20' ) end [2024-12-31 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141975', 'tblTempVendorCDR_20' ) start [2024-12-31 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141975', 'tblTempVendorCDR_20' ) end [2024-12-31 07:20:18] Production.INFO: ProcessCDR(1,14141975,1,1,2) [2024-12-31 07:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141975', 'tblTempUsageDetail_20' ) start [2024-12-31 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141975', 'tblTempUsageDetail_20' ) end [2024-12-31 07:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:20:21] Production.INFO: ==26463== Releasing lock... [2024-12-31 07:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:20:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:21:05 [end_date_ymd] => 2024-12-31 07:21:05 [RateCDR] => 1 ) [2024-12-31 07:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:21:05' and `end` < '2024-12-31 07:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:22:00] Production.INFO: count ==7 [2024-12-31 07:22:00] Production.ERROR: pbx CDR StartTime 2024-12-31 04:21:05 - End Time 2024-12-31 07:21:05 [2024-12-31 07:22:00] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:22:00] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141980', 'tblTempUsageDetail_20' ) start [2024-12-31 07:22:00] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141980', 'tblTempUsageDetail_20' ) end [2024-12-31 07:22:00] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141980', 'tblTempVendorCDR_20' ) start [2024-12-31 07:22:00] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141980', 'tblTempVendorCDR_20' ) end [2024-12-31 07:22:00] Production.INFO: ProcessCDR(1,14141980,1,1,2) [2024-12-31 07:22:00] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:22:02] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:22:02] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:22:07] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:22:07] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141980', 'tblTempUsageDetail_20' ) start [2024-12-31 07:22:07] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141980', 'tblTempUsageDetail_20' ) end [2024-12-31 07:22:07] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:22:07] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:22:07] Production.INFO: ==26536== Releasing lock... [2024-12-31 07:22:07] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:22:07] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:23:05 [end_date_ymd] => 2024-12-31 07:23:05 [RateCDR] => 1 ) [2024-12-31 07:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:23:05' and `end` < '2024-12-31 07:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:23:20] Production.INFO: count ==7 [2024-12-31 07:23:20] Production.ERROR: pbx CDR StartTime 2024-12-31 04:23:05 - End Time 2024-12-31 07:23:05 [2024-12-31 07:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141989', 'tblTempUsageDetail_20' ) start [2024-12-31 07:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141989', 'tblTempUsageDetail_20' ) end [2024-12-31 07:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141989', 'tblTempVendorCDR_20' ) start [2024-12-31 07:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141989', 'tblTempVendorCDR_20' ) end [2024-12-31 07:23:20] Production.INFO: ProcessCDR(1,14141989,1,1,2) [2024-12-31 07:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141989', 'tblTempUsageDetail_20' ) start [2024-12-31 07:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141989', 'tblTempUsageDetail_20' ) end [2024-12-31 07:23:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:23:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:23:23] Production.INFO: ==26711== Releasing lock... [2024-12-31 07:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:23:23] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:24:05 [end_date_ymd] => 2024-12-31 07:24:05 [RateCDR] => 1 ) [2024-12-31 07:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:24:05' and `end` < '2024-12-31 07:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:24:18] Production.INFO: count ==7 [2024-12-31 07:24:18] Production.ERROR: pbx CDR StartTime 2024-12-31 04:24:05 - End Time 2024-12-31 07:24:05 [2024-12-31 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141994', 'tblTempUsageDetail_20' ) start [2024-12-31 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141994', 'tblTempUsageDetail_20' ) end [2024-12-31 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141994', 'tblTempVendorCDR_20' ) start [2024-12-31 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141994', 'tblTempVendorCDR_20' ) end [2024-12-31 07:24:18] Production.INFO: ProcessCDR(1,14141994,1,1,2) [2024-12-31 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141994', 'tblTempUsageDetail_20' ) start [2024-12-31 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141994', 'tblTempUsageDetail_20' ) end [2024-12-31 07:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:24:22] Production.INFO: ==26782== Releasing lock... [2024-12-31 07:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:24:22] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:25:05 [end_date_ymd] => 2024-12-31 07:25:05 [RateCDR] => 1 ) [2024-12-31 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:25:05' and `end` < '2024-12-31 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:25:17] Production.INFO: count ==7 [2024-12-31 07:25:17] Production.ERROR: pbx CDR StartTime 2024-12-31 04:25:05 - End Time 2024-12-31 07:25:05 [2024-12-31 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141999', 'tblTempUsageDetail_20' ) start [2024-12-31 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14141999', 'tblTempUsageDetail_20' ) end [2024-12-31 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141999', 'tblTempVendorCDR_20' ) start [2024-12-31 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14141999', 'tblTempVendorCDR_20' ) end [2024-12-31 07:25:18] Production.INFO: ProcessCDR(1,14141999,1,1,2) [2024-12-31 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14141999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14141999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14141999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14141999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141999', 'tblTempUsageDetail_20' ) start [2024-12-31 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14141999', 'tblTempUsageDetail_20' ) end [2024-12-31 07:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:25:21] Production.INFO: ==26855== Releasing lock... [2024-12-31 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:25:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:26:05 [end_date_ymd] => 2024-12-31 07:26:05 [RateCDR] => 1 ) [2024-12-31 07:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:26:05' and `end` < '2024-12-31 07:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:26:17] Production.INFO: count ==7 [2024-12-31 07:26:17] Production.ERROR: pbx CDR StartTime 2024-12-31 04:26:05 - End Time 2024-12-31 07:26:05 [2024-12-31 07:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142004', 'tblTempUsageDetail_20' ) start [2024-12-31 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142004', 'tblTempUsageDetail_20' ) end [2024-12-31 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142004', 'tblTempVendorCDR_20' ) start [2024-12-31 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142004', 'tblTempVendorCDR_20' ) end [2024-12-31 07:26:17] Production.INFO: ProcessCDR(1,14142004,1,1,2) [2024-12-31 07:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142004', 'tblTempUsageDetail_20' ) start [2024-12-31 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142004', 'tblTempUsageDetail_20' ) end [2024-12-31 07:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:26:20] Production.INFO: ==26928== Releasing lock... [2024-12-31 07:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:26:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:27:05 [end_date_ymd] => 2024-12-31 07:27:05 [RateCDR] => 1 ) [2024-12-31 07:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:27:05' and `end` < '2024-12-31 07:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:27:18] Production.INFO: count ==7 [2024-12-31 07:27:18] Production.ERROR: pbx CDR StartTime 2024-12-31 04:27:05 - End Time 2024-12-31 07:27:05 [2024-12-31 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142009', 'tblTempUsageDetail_20' ) start [2024-12-31 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142009', 'tblTempUsageDetail_20' ) end [2024-12-31 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142009', 'tblTempVendorCDR_20' ) start [2024-12-31 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142009', 'tblTempVendorCDR_20' ) end [2024-12-31 07:27:18] Production.INFO: ProcessCDR(1,14142009,1,1,2) [2024-12-31 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142009', 'tblTempUsageDetail_20' ) start [2024-12-31 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142009', 'tblTempUsageDetail_20' ) end [2024-12-31 07:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:27:21] Production.INFO: ==26999== Releasing lock... [2024-12-31 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:27:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:28:05 [end_date_ymd] => 2024-12-31 07:28:05 [RateCDR] => 1 ) [2024-12-31 07:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:28:05' and `end` < '2024-12-31 07:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:28:18] Production.INFO: count ==7 [2024-12-31 07:28:18] Production.ERROR: pbx CDR StartTime 2024-12-31 04:28:05 - End Time 2024-12-31 07:28:05 [2024-12-31 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142014', 'tblTempUsageDetail_20' ) start [2024-12-31 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142014', 'tblTempUsageDetail_20' ) end [2024-12-31 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142014', 'tblTempVendorCDR_20' ) start [2024-12-31 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142014', 'tblTempVendorCDR_20' ) end [2024-12-31 07:28:18] Production.INFO: ProcessCDR(1,14142014,1,1,2) [2024-12-31 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142014', 'tblTempUsageDetail_20' ) start [2024-12-31 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142014', 'tblTempUsageDetail_20' ) end [2024-12-31 07:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:28:21] Production.INFO: ==27071== Releasing lock... [2024-12-31 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:28:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:29:04 [end_date_ymd] => 2024-12-31 07:29:04 [RateCDR] => 1 ) [2024-12-31 07:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:29:04' and `end` < '2024-12-31 07:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:29:17] Production.INFO: count ==7 [2024-12-31 07:29:17] Production.ERROR: pbx CDR StartTime 2024-12-31 04:29:04 - End Time 2024-12-31 07:29:04 [2024-12-31 07:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142019', 'tblTempUsageDetail_20' ) start [2024-12-31 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142019', 'tblTempUsageDetail_20' ) end [2024-12-31 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142019', 'tblTempVendorCDR_20' ) start [2024-12-31 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142019', 'tblTempVendorCDR_20' ) end [2024-12-31 07:29:17] Production.INFO: ProcessCDR(1,14142019,1,1,2) [2024-12-31 07:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142019', 'tblTempUsageDetail_20' ) start [2024-12-31 07:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142019', 'tblTempUsageDetail_20' ) end [2024-12-31 07:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:29:20] Production.INFO: ==27143== Releasing lock... [2024-12-31 07:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:29:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:30:06 [end_date_ymd] => 2024-12-31 07:30:06 [RateCDR] => 1 ) [2024-12-31 07:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:30:06' and `end` < '2024-12-31 07:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:30:19] Production.INFO: count ==4 [2024-12-31 07:30:19] Production.ERROR: pbx CDR StartTime 2024-12-31 04:30:06 - End Time 2024-12-31 07:30:06 [2024-12-31 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142025', 'tblTempUsageDetail_20' ) start [2024-12-31 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142025', 'tblTempUsageDetail_20' ) end [2024-12-31 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142025', 'tblTempVendorCDR_20' ) start [2024-12-31 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142025', 'tblTempVendorCDR_20' ) end [2024-12-31 07:30:19] Production.INFO: ProcessCDR(1,14142025,1,1,2) [2024-12-31 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142025', 'tblTempUsageDetail_20' ) start [2024-12-31 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142025', 'tblTempUsageDetail_20' ) end [2024-12-31 07:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:30:22] Production.INFO: ==27219== Releasing lock... [2024-12-31 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:30:22] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:31:04 [end_date_ymd] => 2024-12-31 07:31:04 [RateCDR] => 1 ) [2024-12-31 07:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:31:04' and `end` < '2024-12-31 07:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:31:17] Production.INFO: count ==4 [2024-12-31 07:31:17] Production.ERROR: pbx CDR StartTime 2024-12-31 04:31:04 - End Time 2024-12-31 07:31:04 [2024-12-31 07:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142030', 'tblTempUsageDetail_20' ) start [2024-12-31 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142030', 'tblTempUsageDetail_20' ) end [2024-12-31 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142030', 'tblTempVendorCDR_20' ) start [2024-12-31 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142030', 'tblTempVendorCDR_20' ) end [2024-12-31 07:31:17] Production.INFO: ProcessCDR(1,14142030,1,1,2) [2024-12-31 07:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142030', 'tblTempUsageDetail_20' ) start [2024-12-31 07:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142030', 'tblTempUsageDetail_20' ) end [2024-12-31 07:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:31:20] Production.INFO: ==27291== Releasing lock... [2024-12-31 07:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:31:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:32:04 [end_date_ymd] => 2024-12-31 07:32:04 [RateCDR] => 1 ) [2024-12-31 07:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:32:04' and `end` < '2024-12-31 07:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:32:18] Production.INFO: count ==4 [2024-12-31 07:32:18] Production.ERROR: pbx CDR StartTime 2024-12-31 04:32:04 - End Time 2024-12-31 07:32:04 [2024-12-31 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142035', 'tblTempUsageDetail_20' ) start [2024-12-31 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142035', 'tblTempUsageDetail_20' ) end [2024-12-31 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142035', 'tblTempVendorCDR_20' ) start [2024-12-31 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142035', 'tblTempVendorCDR_20' ) end [2024-12-31 07:32:18] Production.INFO: ProcessCDR(1,14142035,1,1,2) [2024-12-31 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142035', 'tblTempUsageDetail_20' ) start [2024-12-31 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142035', 'tblTempUsageDetail_20' ) end [2024-12-31 07:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:32:21] Production.INFO: ==27368== Releasing lock... [2024-12-31 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:32:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:33:05 [end_date_ymd] => 2024-12-31 07:33:05 [RateCDR] => 1 ) [2024-12-31 07:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:33:05' and `end` < '2024-12-31 07:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:33:17] Production.INFO: count ==4 [2024-12-31 07:33:17] Production.ERROR: pbx CDR StartTime 2024-12-31 04:33:05 - End Time 2024-12-31 07:33:05 [2024-12-31 07:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142040', 'tblTempUsageDetail_20' ) start [2024-12-31 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142040', 'tblTempUsageDetail_20' ) end [2024-12-31 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142040', 'tblTempVendorCDR_20' ) start [2024-12-31 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142040', 'tblTempVendorCDR_20' ) end [2024-12-31 07:33:17] Production.INFO: ProcessCDR(1,14142040,1,1,2) [2024-12-31 07:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142040', 'tblTempUsageDetail_20' ) start [2024-12-31 07:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142040', 'tblTempUsageDetail_20' ) end [2024-12-31 07:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:33:20] Production.INFO: ==27443== Releasing lock... [2024-12-31 07:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:33:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:34:04 [end_date_ymd] => 2024-12-31 07:34:04 [RateCDR] => 1 ) [2024-12-31 07:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:34:04' and `end` < '2024-12-31 07:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:34:17] Production.INFO: count ==4 [2024-12-31 07:34:17] Production.ERROR: pbx CDR StartTime 2024-12-31 04:34:04 - End Time 2024-12-31 07:34:04 [2024-12-31 07:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142043', 'tblTempUsageDetail_20' ) start [2024-12-31 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142043', 'tblTempUsageDetail_20' ) end [2024-12-31 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142043', 'tblTempVendorCDR_20' ) start [2024-12-31 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142043', 'tblTempVendorCDR_20' ) end [2024-12-31 07:34:17] Production.INFO: ProcessCDR(1,14142043,1,1,2) [2024-12-31 07:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142043', 'tblTempUsageDetail_20' ) start [2024-12-31 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142043', 'tblTempUsageDetail_20' ) end [2024-12-31 07:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:34:21] Production.INFO: ==27514== Releasing lock... [2024-12-31 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:34:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:35:05 [end_date_ymd] => 2024-12-31 07:35:05 [RateCDR] => 1 ) [2024-12-31 07:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:35:05' and `end` < '2024-12-31 07:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:35:17] Production.INFO: count ==4 [2024-12-31 07:35:17] Production.ERROR: pbx CDR StartTime 2024-12-31 04:35:05 - End Time 2024-12-31 07:35:05 [2024-12-31 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142050', 'tblTempUsageDetail_20' ) start [2024-12-31 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142050', 'tblTempUsageDetail_20' ) end [2024-12-31 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142050', 'tblTempVendorCDR_20' ) start [2024-12-31 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142050', 'tblTempVendorCDR_20' ) end [2024-12-31 07:35:17] Production.INFO: ProcessCDR(1,14142050,1,1,2) [2024-12-31 07:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142050', 'tblTempUsageDetail_20' ) start [2024-12-31 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142050', 'tblTempUsageDetail_20' ) end [2024-12-31 07:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:35:20] Production.INFO: ==27594== Releasing lock... [2024-12-31 07:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:35:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:36:04 [end_date_ymd] => 2024-12-31 07:36:04 [RateCDR] => 1 ) [2024-12-31 07:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:36:04' and `end` < '2024-12-31 07:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:36:17] Production.INFO: count ==5 [2024-12-31 07:36:17] Production.ERROR: pbx CDR StartTime 2024-12-31 04:36:04 - End Time 2024-12-31 07:36:04 [2024-12-31 07:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142055', 'tblTempUsageDetail_20' ) start [2024-12-31 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142055', 'tblTempUsageDetail_20' ) end [2024-12-31 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142055', 'tblTempVendorCDR_20' ) start [2024-12-31 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142055', 'tblTempVendorCDR_20' ) end [2024-12-31 07:36:17] Production.INFO: ProcessCDR(1,14142055,1,1,2) [2024-12-31 07:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142055', 'tblTempUsageDetail_20' ) start [2024-12-31 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142055', 'tblTempUsageDetail_20' ) end [2024-12-31 07:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:36:22] Production.INFO: ==27675== Releasing lock... [2024-12-31 07:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:36:22] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:37:05 [end_date_ymd] => 2024-12-31 07:37:05 [RateCDR] => 1 ) [2024-12-31 07:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:37:05' and `end` < '2024-12-31 07:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:37:18] Production.INFO: count ==5 [2024-12-31 07:37:18] Production.ERROR: pbx CDR StartTime 2024-12-31 04:37:05 - End Time 2024-12-31 07:37:05 [2024-12-31 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142060', 'tblTempUsageDetail_20' ) start [2024-12-31 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142060', 'tblTempUsageDetail_20' ) end [2024-12-31 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142060', 'tblTempVendorCDR_20' ) start [2024-12-31 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142060', 'tblTempVendorCDR_20' ) end [2024-12-31 07:37:18] Production.INFO: ProcessCDR(1,14142060,1,1,2) [2024-12-31 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142060', 'tblTempUsageDetail_20' ) start [2024-12-31 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142060', 'tblTempUsageDetail_20' ) end [2024-12-31 07:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:37:21] Production.INFO: ==27755== Releasing lock... [2024-12-31 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:37:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:38:05 [end_date_ymd] => 2024-12-31 07:38:05 [RateCDR] => 1 ) [2024-12-31 07:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:38:05' and `end` < '2024-12-31 07:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:38:19] Production.INFO: count ==5 [2024-12-31 07:38:19] Production.ERROR: pbx CDR StartTime 2024-12-31 04:38:05 - End Time 2024-12-31 07:38:05 [2024-12-31 07:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142065', 'tblTempUsageDetail_20' ) start [2024-12-31 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142065', 'tblTempUsageDetail_20' ) end [2024-12-31 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142065', 'tblTempVendorCDR_20' ) start [2024-12-31 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142065', 'tblTempVendorCDR_20' ) end [2024-12-31 07:38:19] Production.INFO: ProcessCDR(1,14142065,1,1,2) [2024-12-31 07:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142065', 'tblTempUsageDetail_20' ) start [2024-12-31 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142065', 'tblTempUsageDetail_20' ) end [2024-12-31 07:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:38:22] Production.INFO: ==27830== Releasing lock... [2024-12-31 07:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:38:22] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:39:05 [end_date_ymd] => 2024-12-31 07:39:05 [RateCDR] => 1 ) [2024-12-31 07:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:39:05' and `end` < '2024-12-31 07:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:39:18] Production.INFO: count ==5 [2024-12-31 07:39:18] Production.ERROR: pbx CDR StartTime 2024-12-31 04:39:05 - End Time 2024-12-31 07:39:05 [2024-12-31 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142070', 'tblTempUsageDetail_20' ) start [2024-12-31 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142070', 'tblTempUsageDetail_20' ) end [2024-12-31 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142070', 'tblTempVendorCDR_20' ) start [2024-12-31 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142070', 'tblTempVendorCDR_20' ) end [2024-12-31 07:39:18] Production.INFO: ProcessCDR(1,14142070,1,1,2) [2024-12-31 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142070', 'tblTempUsageDetail_20' ) start [2024-12-31 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142070', 'tblTempUsageDetail_20' ) end [2024-12-31 07:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:39:21] Production.INFO: ==27944== Releasing lock... [2024-12-31 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:39:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:40:06 [end_date_ymd] => 2024-12-31 07:40:06 [RateCDR] => 1 ) [2024-12-31 07:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:40:06' and `end` < '2024-12-31 07:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:40:19] Production.INFO: count ==5 [2024-12-31 07:40:19] Production.ERROR: pbx CDR StartTime 2024-12-31 04:40:06 - End Time 2024-12-31 07:40:06 [2024-12-31 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142076', 'tblTempUsageDetail_20' ) start [2024-12-31 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142076', 'tblTempUsageDetail_20' ) end [2024-12-31 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142076', 'tblTempVendorCDR_20' ) start [2024-12-31 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142076', 'tblTempVendorCDR_20' ) end [2024-12-31 07:40:19] Production.INFO: ProcessCDR(1,14142076,1,1,2) [2024-12-31 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142076', 'tblTempUsageDetail_20' ) start [2024-12-31 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142076', 'tblTempUsageDetail_20' ) end [2024-12-31 07:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:40:22] Production.INFO: ==28021== Releasing lock... [2024-12-31 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:40:22] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:41:04 [end_date_ymd] => 2024-12-31 07:41:04 [RateCDR] => 1 ) [2024-12-31 07:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:41:04' and `end` < '2024-12-31 07:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:41:17] Production.INFO: count ==5 [2024-12-31 07:41:17] Production.ERROR: pbx CDR StartTime 2024-12-31 04:41:04 - End Time 2024-12-31 07:41:04 [2024-12-31 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142081', 'tblTempUsageDetail_20' ) start [2024-12-31 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142081', 'tblTempUsageDetail_20' ) end [2024-12-31 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142081', 'tblTempVendorCDR_20' ) start [2024-12-31 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142081', 'tblTempVendorCDR_20' ) end [2024-12-31 07:41:17] Production.INFO: ProcessCDR(1,14142081,1,1,2) [2024-12-31 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142081', 'tblTempUsageDetail_20' ) start [2024-12-31 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142081', 'tblTempUsageDetail_20' ) end [2024-12-31 07:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:41:20] Production.INFO: ==28103== Releasing lock... [2024-12-31 07:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:41:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:42:05 [end_date_ymd] => 2024-12-31 07:42:05 [RateCDR] => 1 ) [2024-12-31 07:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:42:05' and `end` < '2024-12-31 07:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:42:19] Production.INFO: count ==5 [2024-12-31 07:42:19] Production.ERROR: pbx CDR StartTime 2024-12-31 04:42:05 - End Time 2024-12-31 07:42:05 [2024-12-31 07:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142086', 'tblTempUsageDetail_20' ) start [2024-12-31 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142086', 'tblTempUsageDetail_20' ) end [2024-12-31 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142086', 'tblTempVendorCDR_20' ) start [2024-12-31 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142086', 'tblTempVendorCDR_20' ) end [2024-12-31 07:42:19] Production.INFO: ProcessCDR(1,14142086,1,1,2) [2024-12-31 07:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142086', 'tblTempUsageDetail_20' ) start [2024-12-31 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142086', 'tblTempUsageDetail_20' ) end [2024-12-31 07:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:42:22] Production.INFO: ==28180== Releasing lock... [2024-12-31 07:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:42:22] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:43:04 [end_date_ymd] => 2024-12-31 07:43:04 [RateCDR] => 1 ) [2024-12-31 07:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:43:04' and `end` < '2024-12-31 07:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:43:17] Production.INFO: count ==5 [2024-12-31 07:43:17] Production.ERROR: pbx CDR StartTime 2024-12-31 04:43:04 - End Time 2024-12-31 07:43:04 [2024-12-31 07:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142091', 'tblTempUsageDetail_20' ) start [2024-12-31 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142091', 'tblTempUsageDetail_20' ) end [2024-12-31 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142091', 'tblTempVendorCDR_20' ) start [2024-12-31 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142091', 'tblTempVendorCDR_20' ) end [2024-12-31 07:43:17] Production.INFO: ProcessCDR(1,14142091,1,1,2) [2024-12-31 07:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142091', 'tblTempUsageDetail_20' ) start [2024-12-31 07:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142091', 'tblTempUsageDetail_20' ) end [2024-12-31 07:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:43:20] Production.INFO: ==28259== Releasing lock... [2024-12-31 07:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:43:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:44:05 [end_date_ymd] => 2024-12-31 07:44:05 [RateCDR] => 1 ) [2024-12-31 07:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:44:05' and `end` < '2024-12-31 07:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:44:19] Production.INFO: count ==5 [2024-12-31 07:44:19] Production.ERROR: pbx CDR StartTime 2024-12-31 04:44:05 - End Time 2024-12-31 07:44:05 [2024-12-31 07:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142096', 'tblTempUsageDetail_20' ) start [2024-12-31 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142096', 'tblTempUsageDetail_20' ) end [2024-12-31 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142096', 'tblTempVendorCDR_20' ) start [2024-12-31 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142096', 'tblTempVendorCDR_20' ) end [2024-12-31 07:44:19] Production.INFO: ProcessCDR(1,14142096,1,1,2) [2024-12-31 07:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142096', 'tblTempUsageDetail_20' ) start [2024-12-31 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142096', 'tblTempUsageDetail_20' ) end [2024-12-31 07:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:44:22] Production.INFO: ==28335== Releasing lock... [2024-12-31 07:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:44:22] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:45:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:45:05 [end_date_ymd] => 2024-12-31 07:45:05 [RateCDR] => 1 ) [2024-12-31 07:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:45:05' and `end` < '2024-12-31 07:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:45:18] Production.INFO: count ==5 [2024-12-31 07:45:18] Production.ERROR: pbx CDR StartTime 2024-12-31 04:45:05 - End Time 2024-12-31 07:45:05 [2024-12-31 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142101', 'tblTempUsageDetail_20' ) start [2024-12-31 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142101', 'tblTempUsageDetail_20' ) end [2024-12-31 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142101', 'tblTempVendorCDR_20' ) start [2024-12-31 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142101', 'tblTempVendorCDR_20' ) end [2024-12-31 07:45:18] Production.INFO: ProcessCDR(1,14142101,1,1,2) [2024-12-31 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142101', 'tblTempUsageDetail_20' ) start [2024-12-31 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142101', 'tblTempUsageDetail_20' ) end [2024-12-31 07:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:45:21] Production.INFO: ==28412== Releasing lock... [2024-12-31 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:45:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:46:05 [end_date_ymd] => 2024-12-31 07:46:05 [RateCDR] => 1 ) [2024-12-31 07:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:46:05' and `end` < '2024-12-31 07:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:46:19] Production.INFO: count ==5 [2024-12-31 07:46:19] Production.ERROR: pbx CDR StartTime 2024-12-31 04:46:05 - End Time 2024-12-31 07:46:05 [2024-12-31 07:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142106', 'tblTempUsageDetail_20' ) start [2024-12-31 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142106', 'tblTempUsageDetail_20' ) end [2024-12-31 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142106', 'tblTempVendorCDR_20' ) start [2024-12-31 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142106', 'tblTempVendorCDR_20' ) end [2024-12-31 07:46:19] Production.INFO: ProcessCDR(1,14142106,1,1,2) [2024-12-31 07:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142106', 'tblTempUsageDetail_20' ) start [2024-12-31 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142106', 'tblTempUsageDetail_20' ) end [2024-12-31 07:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:46:22] Production.INFO: ==28490== Releasing lock... [2024-12-31 07:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:46:22] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:47:04 [end_date_ymd] => 2024-12-31 07:47:04 [RateCDR] => 1 ) [2024-12-31 07:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:47:04' and `end` < '2024-12-31 07:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:47:17] Production.INFO: count ==5 [2024-12-31 07:47:17] Production.ERROR: pbx CDR StartTime 2024-12-31 04:47:04 - End Time 2024-12-31 07:47:04 [2024-12-31 07:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142111', 'tblTempUsageDetail_20' ) start [2024-12-31 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142111', 'tblTempUsageDetail_20' ) end [2024-12-31 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142111', 'tblTempVendorCDR_20' ) start [2024-12-31 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142111', 'tblTempVendorCDR_20' ) end [2024-12-31 07:47:17] Production.INFO: ProcessCDR(1,14142111,1,1,2) [2024-12-31 07:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142111', 'tblTempUsageDetail_20' ) start [2024-12-31 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142111', 'tblTempUsageDetail_20' ) end [2024-12-31 07:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:47:20] Production.INFO: ==28566== Releasing lock... [2024-12-31 07:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:47:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-31 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:48:05 [end_date_ymd] => 2024-12-31 07:48:05 [RateCDR] => 1 ) [2024-12-31 07:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:48:05' and `end` < '2024-12-31 07:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:48:19] Production.INFO: count ==6 [2024-12-31 07:48:19] Production.ERROR: pbx CDR StartTime 2024-12-31 04:48:05 - End Time 2024-12-31 07:48:05 [2024-12-31 07:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142116', 'tblTempUsageDetail_20' ) start [2024-12-31 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142116', 'tblTempUsageDetail_20' ) end [2024-12-31 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142116', 'tblTempVendorCDR_20' ) start [2024-12-31 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142116', 'tblTempVendorCDR_20' ) end [2024-12-31 07:48:19] Production.INFO: ProcessCDR(1,14142116,1,1,2) [2024-12-31 07:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142116', 'tblTempUsageDetail_20' ) start [2024-12-31 07:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142116', 'tblTempUsageDetail_20' ) end [2024-12-31 07:48:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:48:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:48:23] Production.INFO: ==28646== Releasing lock... [2024-12-31 07:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:48:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 07:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:49:04 [end_date_ymd] => 2024-12-31 07:49:04 [RateCDR] => 1 ) [2024-12-31 07:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:49:04' and `end` < '2024-12-31 07:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:49:17] Production.INFO: count ==7 [2024-12-31 07:49:17] Production.ERROR: pbx CDR StartTime 2024-12-31 04:49:04 - End Time 2024-12-31 07:49:04 [2024-12-31 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142121', 'tblTempUsageDetail_20' ) start [2024-12-31 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142121', 'tblTempUsageDetail_20' ) end [2024-12-31 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142121', 'tblTempVendorCDR_20' ) start [2024-12-31 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142121', 'tblTempVendorCDR_20' ) end [2024-12-31 07:49:17] Production.INFO: ProcessCDR(1,14142121,1,1,2) [2024-12-31 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142121', 'tblTempUsageDetail_20' ) start [2024-12-31 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142121', 'tblTempUsageDetail_20' ) end [2024-12-31 07:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:49:21] Production.INFO: ==28722== Releasing lock... [2024-12-31 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:49:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 07:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:50:05 [end_date_ymd] => 2024-12-31 07:50:05 [RateCDR] => 1 ) [2024-12-31 07:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:50:05' and `end` < '2024-12-31 07:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:50:18] Production.INFO: count ==15 [2024-12-31 07:50:18] Production.ERROR: pbx CDR StartTime 2024-12-31 04:50:05 - End Time 2024-12-31 07:50:05 [2024-12-31 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142127', 'tblTempUsageDetail_20' ) start [2024-12-31 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142127', 'tblTempUsageDetail_20' ) end [2024-12-31 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142127', 'tblTempVendorCDR_20' ) start [2024-12-31 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142127', 'tblTempVendorCDR_20' ) end [2024-12-31 07:50:18] Production.INFO: ProcessCDR(1,14142127,1,1,2) [2024-12-31 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142127', 'tblTempUsageDetail_20' ) start [2024-12-31 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142127', 'tblTempUsageDetail_20' ) end [2024-12-31 07:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:50:21] Production.INFO: ==28805== Releasing lock... [2024-12-31 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:50:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:51:05 [end_date_ymd] => 2024-12-31 07:51:05 [RateCDR] => 1 ) [2024-12-31 07:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:51:05' and `end` < '2024-12-31 07:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:51:19] Production.INFO: count ==18 [2024-12-31 07:51:19] Production.ERROR: pbx CDR StartTime 2024-12-31 04:51:05 - End Time 2024-12-31 07:51:05 [2024-12-31 07:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142132', 'tblTempUsageDetail_20' ) start [2024-12-31 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142132', 'tblTempUsageDetail_20' ) end [2024-12-31 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142132', 'tblTempVendorCDR_20' ) start [2024-12-31 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142132', 'tblTempVendorCDR_20' ) end [2024-12-31 07:51:19] Production.INFO: ProcessCDR(1,14142132,1,1,2) [2024-12-31 07:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142132', 'tblTempUsageDetail_20' ) start [2024-12-31 07:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142132', 'tblTempUsageDetail_20' ) end [2024-12-31 07:51:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:51:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:51:23] Production.INFO: ==28885== Releasing lock... [2024-12-31 07:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:51:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:52:05 [end_date_ymd] => 2024-12-31 07:52:05 [RateCDR] => 1 ) [2024-12-31 07:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:52:05' and `end` < '2024-12-31 07:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:52:18] Production.INFO: count ==18 [2024-12-31 07:52:18] Production.ERROR: pbx CDR StartTime 2024-12-31 04:52:05 - End Time 2024-12-31 07:52:05 [2024-12-31 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142137', 'tblTempUsageDetail_20' ) start [2024-12-31 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142137', 'tblTempUsageDetail_20' ) end [2024-12-31 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142137', 'tblTempVendorCDR_20' ) start [2024-12-31 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142137', 'tblTempVendorCDR_20' ) end [2024-12-31 07:52:18] Production.INFO: ProcessCDR(1,14142137,1,1,2) [2024-12-31 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142137', 'tblTempUsageDetail_20' ) start [2024-12-31 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142137', 'tblTempUsageDetail_20' ) end [2024-12-31 07:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:52:21] Production.INFO: ==28961== Releasing lock... [2024-12-31 07:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:52:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:53:05 [end_date_ymd] => 2024-12-31 07:53:05 [RateCDR] => 1 ) [2024-12-31 07:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:53:05' and `end` < '2024-12-31 07:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:53:18] Production.INFO: count ==18 [2024-12-31 07:53:18] Production.ERROR: pbx CDR StartTime 2024-12-31 04:53:05 - End Time 2024-12-31 07:53:05 [2024-12-31 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142142', 'tblTempUsageDetail_20' ) start [2024-12-31 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142142', 'tblTempUsageDetail_20' ) end [2024-12-31 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142142', 'tblTempVendorCDR_20' ) start [2024-12-31 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142142', 'tblTempVendorCDR_20' ) end [2024-12-31 07:53:18] Production.INFO: ProcessCDR(1,14142142,1,1,2) [2024-12-31 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142142', 'tblTempUsageDetail_20' ) start [2024-12-31 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142142', 'tblTempUsageDetail_20' ) end [2024-12-31 07:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:53:21] Production.INFO: ==29033== Releasing lock... [2024-12-31 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:53:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:54:05 [end_date_ymd] => 2024-12-31 07:54:05 [RateCDR] => 1 ) [2024-12-31 07:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:54:05' and `end` < '2024-12-31 07:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:54:18] Production.INFO: count ==18 [2024-12-31 07:54:18] Production.ERROR: pbx CDR StartTime 2024-12-31 04:54:05 - End Time 2024-12-31 07:54:05 [2024-12-31 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142147', 'tblTempUsageDetail_20' ) start [2024-12-31 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142147', 'tblTempUsageDetail_20' ) end [2024-12-31 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142147', 'tblTempVendorCDR_20' ) start [2024-12-31 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142147', 'tblTempVendorCDR_20' ) end [2024-12-31 07:54:18] Production.INFO: ProcessCDR(1,14142147,1,1,2) [2024-12-31 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142147', 'tblTempUsageDetail_20' ) start [2024-12-31 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142147', 'tblTempUsageDetail_20' ) end [2024-12-31 07:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:54:21] Production.INFO: ==29105== Releasing lock... [2024-12-31 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:54:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 07:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:55:04 [end_date_ymd] => 2024-12-31 07:55:04 [RateCDR] => 1 ) [2024-12-31 07:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:55:04' and `end` < '2024-12-31 07:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:55:17] Production.INFO: count ==18 [2024-12-31 07:55:17] Production.ERROR: pbx CDR StartTime 2024-12-31 04:55:04 - End Time 2024-12-31 07:55:04 [2024-12-31 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142152', 'tblTempUsageDetail_20' ) start [2024-12-31 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142152', 'tblTempUsageDetail_20' ) end [2024-12-31 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142152', 'tblTempVendorCDR_20' ) start [2024-12-31 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142152', 'tblTempVendorCDR_20' ) end [2024-12-31 07:55:17] Production.INFO: ProcessCDR(1,14142152,1,1,2) [2024-12-31 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142152', 'tblTempUsageDetail_20' ) start [2024-12-31 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142152', 'tblTempUsageDetail_20' ) end [2024-12-31 07:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:55:20] Production.INFO: ==29214== Releasing lock... [2024-12-31 07:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:55:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:56:05 [end_date_ymd] => 2024-12-31 07:56:05 [RateCDR] => 1 ) [2024-12-31 07:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:56:05' and `end` < '2024-12-31 07:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:56:19] Production.INFO: count ==18 [2024-12-31 07:56:19] Production.ERROR: pbx CDR StartTime 2024-12-31 04:56:05 - End Time 2024-12-31 07:56:05 [2024-12-31 07:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142157', 'tblTempUsageDetail_20' ) start [2024-12-31 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142157', 'tblTempUsageDetail_20' ) end [2024-12-31 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142157', 'tblTempVendorCDR_20' ) start [2024-12-31 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142157', 'tblTempVendorCDR_20' ) end [2024-12-31 07:56:19] Production.INFO: ProcessCDR(1,14142157,1,1,2) [2024-12-31 07:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142157', 'tblTempUsageDetail_20' ) start [2024-12-31 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142157', 'tblTempUsageDetail_20' ) end [2024-12-31 07:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:56:22] Production.INFO: ==29286== Releasing lock... [2024-12-31 07:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:56:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:57:05 [end_date_ymd] => 2024-12-31 07:57:05 [RateCDR] => 1 ) [2024-12-31 07:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:57:05' and `end` < '2024-12-31 07:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:57:18] Production.INFO: count ==19 [2024-12-31 07:57:18] Production.ERROR: pbx CDR StartTime 2024-12-31 04:57:05 - End Time 2024-12-31 07:57:05 [2024-12-31 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142162', 'tblTempUsageDetail_20' ) start [2024-12-31 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142162', 'tblTempUsageDetail_20' ) end [2024-12-31 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142162', 'tblTempVendorCDR_20' ) start [2024-12-31 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142162', 'tblTempVendorCDR_20' ) end [2024-12-31 07:57:18] Production.INFO: ProcessCDR(1,14142162,1,1,2) [2024-12-31 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142162', 'tblTempUsageDetail_20' ) start [2024-12-31 07:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142162', 'tblTempUsageDetail_20' ) end [2024-12-31 07:57:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:57:23] Production.INFO: ==29364== Releasing lock... [2024-12-31 07:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:57:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:58:05 [end_date_ymd] => 2024-12-31 07:58:05 [RateCDR] => 1 ) [2024-12-31 07:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:58:05' and `end` < '2024-12-31 07:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:58:18] Production.INFO: count ==21 [2024-12-31 07:58:18] Production.ERROR: pbx CDR StartTime 2024-12-31 04:58:05 - End Time 2024-12-31 07:58:05 [2024-12-31 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142167', 'tblTempUsageDetail_20' ) start [2024-12-31 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142167', 'tblTempUsageDetail_20' ) end [2024-12-31 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142167', 'tblTempVendorCDR_20' ) start [2024-12-31 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142167', 'tblTempVendorCDR_20' ) end [2024-12-31 07:58:18] Production.INFO: ProcessCDR(1,14142167,1,1,2) [2024-12-31 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142167', 'tblTempUsageDetail_20' ) start [2024-12-31 07:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142167', 'tblTempUsageDetail_20' ) end [2024-12-31 07:58:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:58:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:58:23] Production.INFO: ==29432== Releasing lock... [2024-12-31 07:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:58:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 04:59:05 [end_date_ymd] => 2024-12-31 07:59:05 [RateCDR] => 1 ) [2024-12-31 07:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 04:59:05' and `end` < '2024-12-31 07:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 07:59:17] Production.INFO: count ==21 [2024-12-31 07:59:17] Production.ERROR: pbx CDR StartTime 2024-12-31 04:59:05 - End Time 2024-12-31 07:59:05 [2024-12-31 07:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142172', 'tblTempUsageDetail_20' ) start [2024-12-31 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142172', 'tblTempUsageDetail_20' ) end [2024-12-31 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142172', 'tblTempVendorCDR_20' ) start [2024-12-31 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142172', 'tblTempVendorCDR_20' ) end [2024-12-31 07:59:17] Production.INFO: ProcessCDR(1,14142172,1,1,2) [2024-12-31 07:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 07:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142172', 'tblTempUsageDetail_20' ) start [2024-12-31 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142172', 'tblTempUsageDetail_20' ) end [2024-12-31 07:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 07:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 07:59:20] Production.INFO: ==29503== Releasing lock... [2024-12-31 07:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 07:59:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-31 08:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:00:05 [end_date_ymd] => 2024-12-31 08:00:05 [RateCDR] => 1 ) [2024-12-31 08:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:00:05' and `end` < '2024-12-31 08:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:00:18] Production.INFO: count ==29 [2024-12-31 08:00:18] Production.ERROR: pbx CDR StartTime 2024-12-31 05:00:05 - End Time 2024-12-31 08:00:05 [2024-12-31 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142177', 'tblTempUsageDetail_20' ) start [2024-12-31 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142177', 'tblTempUsageDetail_20' ) end [2024-12-31 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142177', 'tblTempVendorCDR_20' ) start [2024-12-31 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142177', 'tblTempVendorCDR_20' ) end [2024-12-31 08:00:18] Production.INFO: ProcessCDR(1,14142177,1,1,2) [2024-12-31 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142177', 'tblTempUsageDetail_20' ) start [2024-12-31 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142177', 'tblTempUsageDetail_20' ) end [2024-12-31 08:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:00:22] Production.INFO: ==29575== Releasing lock... [2024-12-31 08:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:00:22] Production.INFO: 28 MB #Memory Used# [2024-12-31 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:01:05 [end_date_ymd] => 2024-12-31 08:01:05 [RateCDR] => 1 ) [2024-12-31 08:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:01:05' and `end` < '2024-12-31 08:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:01:18] Production.INFO: count ==29 [2024-12-31 08:01:18] Production.ERROR: pbx CDR StartTime 2024-12-31 05:01:05 - End Time 2024-12-31 08:01:05 [2024-12-31 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142183', 'tblTempUsageDetail_20' ) start [2024-12-31 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142183', 'tblTempUsageDetail_20' ) end [2024-12-31 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142183', 'tblTempVendorCDR_20' ) start [2024-12-31 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142183', 'tblTempVendorCDR_20' ) end [2024-12-31 08:01:18] Production.INFO: ProcessCDR(1,14142183,1,1,2) [2024-12-31 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142183', 'tblTempUsageDetail_20' ) start [2024-12-31 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142183', 'tblTempUsageDetail_20' ) end [2024-12-31 08:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:01:21] Production.INFO: ==29662== Releasing lock... [2024-12-31 08:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:01:21] Production.INFO: 28 MB #Memory Used# [2024-12-31 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:02:05 [end_date_ymd] => 2024-12-31 08:02:05 [RateCDR] => 1 ) [2024-12-31 08:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:02:05' and `end` < '2024-12-31 08:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:02:17] Production.INFO: count ==29 [2024-12-31 08:02:17] Production.ERROR: pbx CDR StartTime 2024-12-31 05:02:05 - End Time 2024-12-31 08:02:05 [2024-12-31 08:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142188', 'tblTempUsageDetail_20' ) start [2024-12-31 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142188', 'tblTempUsageDetail_20' ) end [2024-12-31 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142188', 'tblTempVendorCDR_20' ) start [2024-12-31 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142188', 'tblTempVendorCDR_20' ) end [2024-12-31 08:02:17] Production.INFO: ProcessCDR(1,14142188,1,1,2) [2024-12-31 08:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142188', 'tblTempUsageDetail_20' ) start [2024-12-31 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142188', 'tblTempUsageDetail_20' ) end [2024-12-31 08:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:02:21] Production.INFO: ==29734== Releasing lock... [2024-12-31 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:02:21] Production.INFO: 28 MB #Memory Used# [2024-12-31 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:03:05 [end_date_ymd] => 2024-12-31 08:03:05 [RateCDR] => 1 ) [2024-12-31 08:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:03:05' and `end` < '2024-12-31 08:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:03:18] Production.INFO: count ==29 [2024-12-31 08:03:18] Production.ERROR: pbx CDR StartTime 2024-12-31 05:03:05 - End Time 2024-12-31 08:03:05 [2024-12-31 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142193', 'tblTempUsageDetail_20' ) start [2024-12-31 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142193', 'tblTempUsageDetail_20' ) end [2024-12-31 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142193', 'tblTempVendorCDR_20' ) start [2024-12-31 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142193', 'tblTempVendorCDR_20' ) end [2024-12-31 08:03:18] Production.INFO: ProcessCDR(1,14142193,1,1,2) [2024-12-31 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142193', 'tblTempUsageDetail_20' ) start [2024-12-31 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142193', 'tblTempUsageDetail_20' ) end [2024-12-31 08:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:03:21] Production.INFO: ==29806== Releasing lock... [2024-12-31 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:03:21] Production.INFO: 28 MB #Memory Used# [2024-12-31 08:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:04:04 [end_date_ymd] => 2024-12-31 08:04:04 [RateCDR] => 1 ) [2024-12-31 08:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:04:04' and `end` < '2024-12-31 08:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:04:18] Production.INFO: count ==29 [2024-12-31 08:04:18] Production.ERROR: pbx CDR StartTime 2024-12-31 05:04:04 - End Time 2024-12-31 08:04:04 [2024-12-31 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142198', 'tblTempUsageDetail_20' ) start [2024-12-31 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142198', 'tblTempUsageDetail_20' ) end [2024-12-31 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142198', 'tblTempVendorCDR_20' ) start [2024-12-31 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142198', 'tblTempVendorCDR_20' ) end [2024-12-31 08:04:18] Production.INFO: ProcessCDR(1,14142198,1,1,2) [2024-12-31 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142198', 'tblTempUsageDetail_20' ) start [2024-12-31 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142198', 'tblTempUsageDetail_20' ) end [2024-12-31 08:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:04:21] Production.INFO: ==29879== Releasing lock... [2024-12-31 08:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:04:21] Production.INFO: 28 MB #Memory Used# [2024-12-31 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:05:05 [end_date_ymd] => 2024-12-31 08:05:05 [RateCDR] => 1 ) [2024-12-31 08:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:05:05' and `end` < '2024-12-31 08:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:05:18] Production.INFO: count ==29 [2024-12-31 08:05:18] Production.ERROR: pbx CDR StartTime 2024-12-31 05:05:05 - End Time 2024-12-31 08:05:05 [2024-12-31 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142203', 'tblTempUsageDetail_20' ) start [2024-12-31 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142203', 'tblTempUsageDetail_20' ) end [2024-12-31 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142203', 'tblTempVendorCDR_20' ) start [2024-12-31 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142203', 'tblTempVendorCDR_20' ) end [2024-12-31 08:05:18] Production.INFO: ProcessCDR(1,14142203,1,1,2) [2024-12-31 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142203', 'tblTempUsageDetail_20' ) start [2024-12-31 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142203', 'tblTempUsageDetail_20' ) end [2024-12-31 08:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:05:21] Production.INFO: ==29949== Releasing lock... [2024-12-31 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:05:21] Production.INFO: 28 MB #Memory Used# [2024-12-31 08:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:06:04 [end_date_ymd] => 2024-12-31 08:06:04 [RateCDR] => 1 ) [2024-12-31 08:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:06:04' and `end` < '2024-12-31 08:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:06:17] Production.INFO: count ==39 [2024-12-31 08:06:17] Production.ERROR: pbx CDR StartTime 2024-12-31 05:06:04 - End Time 2024-12-31 08:06:04 [2024-12-31 08:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142208', 'tblTempUsageDetail_20' ) start [2024-12-31 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142208', 'tblTempUsageDetail_20' ) end [2024-12-31 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142208', 'tblTempVendorCDR_20' ) start [2024-12-31 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142208', 'tblTempVendorCDR_20' ) end [2024-12-31 08:06:17] Production.INFO: ProcessCDR(1,14142208,1,1,2) [2024-12-31 08:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142208', 'tblTempUsageDetail_20' ) start [2024-12-31 08:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142208', 'tblTempUsageDetail_20' ) end [2024-12-31 08:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:06:20] Production.INFO: ==30018== Releasing lock... [2024-12-31 08:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:06:20] Production.INFO: 28 MB #Memory Used# [2024-12-31 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:07:05 [end_date_ymd] => 2024-12-31 08:07:05 [RateCDR] => 1 ) [2024-12-31 08:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:07:05' and `end` < '2024-12-31 08:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:07:17] Production.INFO: count ==47 [2024-12-31 08:07:17] Production.ERROR: pbx CDR StartTime 2024-12-31 05:07:05 - End Time 2024-12-31 08:07:05 [2024-12-31 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142213', 'tblTempUsageDetail_20' ) start [2024-12-31 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142213', 'tblTempUsageDetail_20' ) end [2024-12-31 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142213', 'tblTempVendorCDR_20' ) start [2024-12-31 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142213', 'tblTempVendorCDR_20' ) end [2024-12-31 08:07:17] Production.INFO: ProcessCDR(1,14142213,1,1,2) [2024-12-31 08:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142213', 'tblTempUsageDetail_20' ) start [2024-12-31 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142213', 'tblTempUsageDetail_20' ) end [2024-12-31 08:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:07:20] Production.INFO: ==30090== Releasing lock... [2024-12-31 08:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:07:20] Production.INFO: 28 MB #Memory Used# [2024-12-31 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:08:05 [end_date_ymd] => 2024-12-31 08:08:05 [RateCDR] => 1 ) [2024-12-31 08:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:08:05' and `end` < '2024-12-31 08:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:08:20] Production.INFO: count ==49 [2024-12-31 08:08:20] Production.ERROR: pbx CDR StartTime 2024-12-31 05:08:05 - End Time 2024-12-31 08:08:05 [2024-12-31 08:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142218', 'tblTempUsageDetail_20' ) start [2024-12-31 08:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142218', 'tblTempUsageDetail_20' ) end [2024-12-31 08:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142218', 'tblTempVendorCDR_20' ) start [2024-12-31 08:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142218', 'tblTempVendorCDR_20' ) end [2024-12-31 08:08:20] Production.INFO: ProcessCDR(1,14142218,1,1,2) [2024-12-31 08:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142218', 'tblTempUsageDetail_20' ) start [2024-12-31 08:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142218', 'tblTempUsageDetail_20' ) end [2024-12-31 08:08:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:08:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:08:23] Production.INFO: ==30161== Releasing lock... [2024-12-31 08:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:08:23] Production.INFO: 28 MB #Memory Used# [2024-12-31 08:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:09:04 [end_date_ymd] => 2024-12-31 08:09:04 [RateCDR] => 1 ) [2024-12-31 08:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:09:04' and `end` < '2024-12-31 08:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:09:19] Production.INFO: count ==51 [2024-12-31 08:09:19] Production.ERROR: pbx CDR StartTime 2024-12-31 05:09:04 - End Time 2024-12-31 08:09:04 [2024-12-31 08:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142223', 'tblTempUsageDetail_20' ) start [2024-12-31 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142223', 'tblTempUsageDetail_20' ) end [2024-12-31 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142223', 'tblTempVendorCDR_20' ) start [2024-12-31 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142223', 'tblTempVendorCDR_20' ) end [2024-12-31 08:09:19] Production.INFO: ProcessCDR(1,14142223,1,1,2) [2024-12-31 08:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142223', 'tblTempUsageDetail_20' ) start [2024-12-31 08:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142223', 'tblTempUsageDetail_20' ) end [2024-12-31 08:09:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:09:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:09:23] Production.INFO: ==30231== Releasing lock... [2024-12-31 08:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:09:23] Production.INFO: 28 MB #Memory Used# [2024-12-31 08:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:10:05 [end_date_ymd] => 2024-12-31 08:10:05 [RateCDR] => 1 ) [2024-12-31 08:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:10:05' and `end` < '2024-12-31 08:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:10:18] Production.INFO: count ==63 [2024-12-31 08:10:18] Production.ERROR: pbx CDR StartTime 2024-12-31 05:10:05 - End Time 2024-12-31 08:10:05 [2024-12-31 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142228', 'tblTempUsageDetail_20' ) start [2024-12-31 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142228', 'tblTempUsageDetail_20' ) end [2024-12-31 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142228', 'tblTempVendorCDR_20' ) start [2024-12-31 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142228', 'tblTempVendorCDR_20' ) end [2024-12-31 08:10:18] Production.INFO: ProcessCDR(1,14142228,1,1,2) [2024-12-31 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142228', 'tblTempUsageDetail_20' ) start [2024-12-31 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142228', 'tblTempUsageDetail_20' ) end [2024-12-31 08:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:10:21] Production.INFO: ==30343== Releasing lock... [2024-12-31 08:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:10:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-31 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:11:05 [end_date_ymd] => 2024-12-31 08:11:05 [RateCDR] => 1 ) [2024-12-31 08:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:11:05' and `end` < '2024-12-31 08:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:11:18] Production.INFO: count ==75 [2024-12-31 08:11:18] Production.ERROR: pbx CDR StartTime 2024-12-31 05:11:05 - End Time 2024-12-31 08:11:05 [2024-12-31 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142234', 'tblTempUsageDetail_20' ) start [2024-12-31 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142234', 'tblTempUsageDetail_20' ) end [2024-12-31 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142234', 'tblTempVendorCDR_20' ) start [2024-12-31 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142234', 'tblTempVendorCDR_20' ) end [2024-12-31 08:11:18] Production.INFO: ProcessCDR(1,14142234,1,1,2) [2024-12-31 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142234', 'tblTempUsageDetail_20' ) start [2024-12-31 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142234', 'tblTempUsageDetail_20' ) end [2024-12-31 08:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:11:21] Production.INFO: ==30415== Releasing lock... [2024-12-31 08:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:11:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-31 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:12:05 [end_date_ymd] => 2024-12-31 08:12:05 [RateCDR] => 1 ) [2024-12-31 08:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:12:05' and `end` < '2024-12-31 08:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:12:19] Production.INFO: count ==84 [2024-12-31 08:12:19] Production.ERROR: pbx CDR StartTime 2024-12-31 05:12:05 - End Time 2024-12-31 08:12:05 [2024-12-31 08:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142239', 'tblTempUsageDetail_20' ) start [2024-12-31 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142239', 'tblTempUsageDetail_20' ) end [2024-12-31 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142239', 'tblTempVendorCDR_20' ) start [2024-12-31 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142239', 'tblTempVendorCDR_20' ) end [2024-12-31 08:12:19] Production.INFO: ProcessCDR(1,14142239,1,1,2) [2024-12-31 08:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142239', 'tblTempUsageDetail_20' ) start [2024-12-31 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142239', 'tblTempUsageDetail_20' ) end [2024-12-31 08:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:12:22] Production.INFO: ==30489== Releasing lock... [2024-12-31 08:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:12:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-31 08:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:13:04 [end_date_ymd] => 2024-12-31 08:13:04 [RateCDR] => 1 ) [2024-12-31 08:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:13:04' and `end` < '2024-12-31 08:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:13:17] Production.INFO: count ==84 [2024-12-31 08:13:17] Production.ERROR: pbx CDR StartTime 2024-12-31 05:13:04 - End Time 2024-12-31 08:13:04 [2024-12-31 08:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142244', 'tblTempUsageDetail_20' ) start [2024-12-31 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142244', 'tblTempUsageDetail_20' ) end [2024-12-31 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142244', 'tblTempVendorCDR_20' ) start [2024-12-31 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142244', 'tblTempVendorCDR_20' ) end [2024-12-31 08:13:17] Production.INFO: ProcessCDR(1,14142244,1,1,2) [2024-12-31 08:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142244', 'tblTempUsageDetail_20' ) start [2024-12-31 08:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142244', 'tblTempUsageDetail_20' ) end [2024-12-31 08:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:13:20] Production.INFO: ==30562== Releasing lock... [2024-12-31 08:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:13:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-31 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:14:05 [end_date_ymd] => 2024-12-31 08:14:05 [RateCDR] => 1 ) [2024-12-31 08:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:14:05' and `end` < '2024-12-31 08:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:14:17] Production.INFO: count ==84 [2024-12-31 08:14:17] Production.ERROR: pbx CDR StartTime 2024-12-31 05:14:05 - End Time 2024-12-31 08:14:05 [2024-12-31 08:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142249', 'tblTempUsageDetail_20' ) start [2024-12-31 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142249', 'tblTempUsageDetail_20' ) end [2024-12-31 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142249', 'tblTempVendorCDR_20' ) start [2024-12-31 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142249', 'tblTempVendorCDR_20' ) end [2024-12-31 08:14:17] Production.INFO: ProcessCDR(1,14142249,1,1,2) [2024-12-31 08:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142249', 'tblTempUsageDetail_20' ) start [2024-12-31 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142249', 'tblTempUsageDetail_20' ) end [2024-12-31 08:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:14:21] Production.INFO: ==30633== Releasing lock... [2024-12-31 08:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:14:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-31 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:15:05 [end_date_ymd] => 2024-12-31 08:15:05 [RateCDR] => 1 ) [2024-12-31 08:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:15:05' and `end` < '2024-12-31 08:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:15:18] Production.INFO: count ==85 [2024-12-31 08:15:18] Production.ERROR: pbx CDR StartTime 2024-12-31 05:15:05 - End Time 2024-12-31 08:15:05 [2024-12-31 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142254', 'tblTempUsageDetail_20' ) start [2024-12-31 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142254', 'tblTempUsageDetail_20' ) end [2024-12-31 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142254', 'tblTempVendorCDR_20' ) start [2024-12-31 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142254', 'tblTempVendorCDR_20' ) end [2024-12-31 08:15:18] Production.INFO: ProcessCDR(1,14142254,1,1,2) [2024-12-31 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142254', 'tblTempUsageDetail_20' ) start [2024-12-31 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142254', 'tblTempUsageDetail_20' ) end [2024-12-31 08:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:15:21] Production.INFO: ==30707== Releasing lock... [2024-12-31 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:15:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-31 08:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:16:04 [end_date_ymd] => 2024-12-31 08:16:04 [RateCDR] => 1 ) [2024-12-31 08:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:16:04' and `end` < '2024-12-31 08:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:16:17] Production.INFO: count ==85 [2024-12-31 08:16:17] Production.ERROR: pbx CDR StartTime 2024-12-31 05:16:04 - End Time 2024-12-31 08:16:04 [2024-12-31 08:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142259', 'tblTempUsageDetail_20' ) start [2024-12-31 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142259', 'tblTempUsageDetail_20' ) end [2024-12-31 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142259', 'tblTempVendorCDR_20' ) start [2024-12-31 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142259', 'tblTempVendorCDR_20' ) end [2024-12-31 08:16:17] Production.INFO: ProcessCDR(1,14142259,1,1,2) [2024-12-31 08:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142259', 'tblTempUsageDetail_20' ) start [2024-12-31 08:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142259', 'tblTempUsageDetail_20' ) end [2024-12-31 08:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:16:20] Production.INFO: ==30777== Releasing lock... [2024-12-31 08:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:16:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-31 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:17:05 [end_date_ymd] => 2024-12-31 08:17:05 [RateCDR] => 1 ) [2024-12-31 08:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:17:05' and `end` < '2024-12-31 08:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:17:19] Production.INFO: count ==92 [2024-12-31 08:17:19] Production.ERROR: pbx CDR StartTime 2024-12-31 05:17:05 - End Time 2024-12-31 08:17:05 [2024-12-31 08:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142264', 'tblTempUsageDetail_20' ) start [2024-12-31 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142264', 'tblTempUsageDetail_20' ) end [2024-12-31 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142264', 'tblTempVendorCDR_20' ) start [2024-12-31 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142264', 'tblTempVendorCDR_20' ) end [2024-12-31 08:17:19] Production.INFO: ProcessCDR(1,14142264,1,1,2) [2024-12-31 08:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142264', 'tblTempUsageDetail_20' ) start [2024-12-31 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142264', 'tblTempUsageDetail_20' ) end [2024-12-31 08:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:17:22] Production.INFO: ==30859== Releasing lock... [2024-12-31 08:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:17:22] Production.INFO: 28.75 MB #Memory Used# [2024-12-31 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:18:05 [end_date_ymd] => 2024-12-31 08:18:05 [RateCDR] => 1 ) [2024-12-31 08:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:18:05' and `end` < '2024-12-31 08:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:18:19] Production.INFO: count ==93 [2024-12-31 08:18:19] Production.ERROR: pbx CDR StartTime 2024-12-31 05:18:05 - End Time 2024-12-31 08:18:05 [2024-12-31 08:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142269', 'tblTempUsageDetail_20' ) start [2024-12-31 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142269', 'tblTempUsageDetail_20' ) end [2024-12-31 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142269', 'tblTempVendorCDR_20' ) start [2024-12-31 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142269', 'tblTempVendorCDR_20' ) end [2024-12-31 08:18:19] Production.INFO: ProcessCDR(1,14142269,1,1,2) [2024-12-31 08:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142269', 'tblTempUsageDetail_20' ) start [2024-12-31 08:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142269', 'tblTempUsageDetail_20' ) end [2024-12-31 08:18:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:18:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:18:23] Production.INFO: ==30931== Releasing lock... [2024-12-31 08:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:18:23] Production.INFO: 28.75 MB #Memory Used# [2024-12-31 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:19:05 [end_date_ymd] => 2024-12-31 08:19:05 [RateCDR] => 1 ) [2024-12-31 08:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:19:05' and `end` < '2024-12-31 08:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:19:18] Production.INFO: count ==94 [2024-12-31 08:19:18] Production.ERROR: pbx CDR StartTime 2024-12-31 05:19:05 - End Time 2024-12-31 08:19:05 [2024-12-31 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142274', 'tblTempUsageDetail_20' ) start [2024-12-31 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142274', 'tblTempUsageDetail_20' ) end [2024-12-31 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142274', 'tblTempVendorCDR_20' ) start [2024-12-31 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142274', 'tblTempVendorCDR_20' ) end [2024-12-31 08:19:18] Production.INFO: ProcessCDR(1,14142274,1,1,2) [2024-12-31 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142274', 'tblTempUsageDetail_20' ) start [2024-12-31 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142274', 'tblTempUsageDetail_20' ) end [2024-12-31 08:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:19:21] Production.INFO: ==31005== Releasing lock... [2024-12-31 08:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:19:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-31 08:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:20:05 [end_date_ymd] => 2024-12-31 08:20:05 [RateCDR] => 1 ) [2024-12-31 08:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:20:05' and `end` < '2024-12-31 08:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:20:18] Production.INFO: count ==108 [2024-12-31 08:20:18] Production.ERROR: pbx CDR StartTime 2024-12-31 05:20:05 - End Time 2024-12-31 08:20:05 [2024-12-31 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142280', 'tblTempUsageDetail_20' ) start [2024-12-31 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142280', 'tblTempUsageDetail_20' ) end [2024-12-31 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142280', 'tblTempVendorCDR_20' ) start [2024-12-31 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142280', 'tblTempVendorCDR_20' ) end [2024-12-31 08:20:18] Production.INFO: ProcessCDR(1,14142280,1,1,2) [2024-12-31 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142280', 'tblTempUsageDetail_20' ) start [2024-12-31 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142280', 'tblTempUsageDetail_20' ) end [2024-12-31 08:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:20:22] Production.INFO: ==31079== Releasing lock... [2024-12-31 08:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:20:22] Production.INFO: 28.75 MB #Memory Used# [2024-12-31 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:21:05 [end_date_ymd] => 2024-12-31 08:21:05 [RateCDR] => 1 ) [2024-12-31 08:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:21:05' and `end` < '2024-12-31 08:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:21:18] Production.INFO: count ==135 [2024-12-31 08:21:18] Production.ERROR: pbx CDR StartTime 2024-12-31 05:21:05 - End Time 2024-12-31 08:21:05 [2024-12-31 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142285', 'tblTempUsageDetail_20' ) start [2024-12-31 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142285', 'tblTempUsageDetail_20' ) end [2024-12-31 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142285', 'tblTempVendorCDR_20' ) start [2024-12-31 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142285', 'tblTempVendorCDR_20' ) end [2024-12-31 08:21:18] Production.INFO: ProcessCDR(1,14142285,1,1,2) [2024-12-31 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142285', 'tblTempUsageDetail_20' ) start [2024-12-31 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142285', 'tblTempUsageDetail_20' ) end [2024-12-31 08:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:21:21] Production.INFO: ==31152== Releasing lock... [2024-12-31 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:21:21] Production.INFO: 29 MB #Memory Used# [2024-12-31 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:22:05 [end_date_ymd] => 2024-12-31 08:22:05 [RateCDR] => 1 ) [2024-12-31 08:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:22:05' and `end` < '2024-12-31 08:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:22:17] Production.INFO: count ==137 [2024-12-31 08:22:17] Production.ERROR: pbx CDR StartTime 2024-12-31 05:22:05 - End Time 2024-12-31 08:22:05 [2024-12-31 08:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142290', 'tblTempUsageDetail_20' ) start [2024-12-31 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142290', 'tblTempUsageDetail_20' ) end [2024-12-31 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142290', 'tblTempVendorCDR_20' ) start [2024-12-31 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142290', 'tblTempVendorCDR_20' ) end [2024-12-31 08:22:17] Production.INFO: ProcessCDR(1,14142290,1,1,2) [2024-12-31 08:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142290', 'tblTempUsageDetail_20' ) start [2024-12-31 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142290', 'tblTempUsageDetail_20' ) end [2024-12-31 08:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:22:22] Production.INFO: ==31222== Releasing lock... [2024-12-31 08:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:22:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-31 08:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:23:04 [end_date_ymd] => 2024-12-31 08:23:04 [RateCDR] => 1 ) [2024-12-31 08:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:23:04' and `end` < '2024-12-31 08:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:23:17] Production.INFO: count ==138 [2024-12-31 08:23:17] Production.ERROR: pbx CDR StartTime 2024-12-31 05:23:04 - End Time 2024-12-31 08:23:04 [2024-12-31 08:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142295', 'tblTempUsageDetail_20' ) start [2024-12-31 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142295', 'tblTempUsageDetail_20' ) end [2024-12-31 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142295', 'tblTempVendorCDR_20' ) start [2024-12-31 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142295', 'tblTempVendorCDR_20' ) end [2024-12-31 08:23:17] Production.INFO: ProcessCDR(1,14142295,1,1,2) [2024-12-31 08:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142295', 'tblTempUsageDetail_20' ) start [2024-12-31 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142295', 'tblTempUsageDetail_20' ) end [2024-12-31 08:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:23:22] Production.INFO: ==31292== Releasing lock... [2024-12-31 08:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:23:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-31 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:24:05 [end_date_ymd] => 2024-12-31 08:24:05 [RateCDR] => 1 ) [2024-12-31 08:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:24:05' and `end` < '2024-12-31 08:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:24:19] Production.INFO: count ==157 [2024-12-31 08:24:19] Production.ERROR: pbx CDR StartTime 2024-12-31 05:24:05 - End Time 2024-12-31 08:24:05 [2024-12-31 08:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142300', 'tblTempUsageDetail_20' ) start [2024-12-31 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142300', 'tblTempUsageDetail_20' ) end [2024-12-31 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142300', 'tblTempVendorCDR_20' ) start [2024-12-31 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142300', 'tblTempVendorCDR_20' ) end [2024-12-31 08:24:19] Production.INFO: ProcessCDR(1,14142300,1,1,2) [2024-12-31 08:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142300', 'tblTempUsageDetail_20' ) start [2024-12-31 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142300', 'tblTempUsageDetail_20' ) end [2024-12-31 08:24:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:24:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:24:23] Production.INFO: ==31363== Releasing lock... [2024-12-31 08:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:24:23] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 08:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:25:04 [end_date_ymd] => 2024-12-31 08:25:04 [RateCDR] => 1 ) [2024-12-31 08:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:25:04' and `end` < '2024-12-31 08:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:25:17] Production.INFO: count ==157 [2024-12-31 08:25:17] Production.ERROR: pbx CDR StartTime 2024-12-31 05:25:04 - End Time 2024-12-31 08:25:04 [2024-12-31 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142305', 'tblTempUsageDetail_20' ) start [2024-12-31 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142305', 'tblTempUsageDetail_20' ) end [2024-12-31 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142305', 'tblTempVendorCDR_20' ) start [2024-12-31 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142305', 'tblTempVendorCDR_20' ) end [2024-12-31 08:25:17] Production.INFO: ProcessCDR(1,14142305,1,1,2) [2024-12-31 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142305', 'tblTempUsageDetail_20' ) start [2024-12-31 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142305', 'tblTempUsageDetail_20' ) end [2024-12-31 08:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:25:20] Production.INFO: ==31434== Releasing lock... [2024-12-31 08:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:25:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:26:05 [end_date_ymd] => 2024-12-31 08:26:05 [RateCDR] => 1 ) [2024-12-31 08:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:26:05' and `end` < '2024-12-31 08:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:26:18] Production.INFO: count ==159 [2024-12-31 08:26:18] Production.ERROR: pbx CDR StartTime 2024-12-31 05:26:05 - End Time 2024-12-31 08:26:05 [2024-12-31 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142310', 'tblTempUsageDetail_20' ) start [2024-12-31 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142310', 'tblTempUsageDetail_20' ) end [2024-12-31 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142310', 'tblTempVendorCDR_20' ) start [2024-12-31 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142310', 'tblTempVendorCDR_20' ) end [2024-12-31 08:26:18] Production.INFO: ProcessCDR(1,14142310,1,1,2) [2024-12-31 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142310', 'tblTempUsageDetail_20' ) start [2024-12-31 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142310', 'tblTempUsageDetail_20' ) end [2024-12-31 08:26:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:26:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:26:23] Production.INFO: ==31545== Releasing lock... [2024-12-31 08:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:26:23] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:27:05 [end_date_ymd] => 2024-12-31 08:27:05 [RateCDR] => 1 ) [2024-12-31 08:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:27:05' and `end` < '2024-12-31 08:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:27:18] Production.INFO: count ==159 [2024-12-31 08:27:18] Production.ERROR: pbx CDR StartTime 2024-12-31 05:27:05 - End Time 2024-12-31 08:27:05 [2024-12-31 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142315', 'tblTempUsageDetail_20' ) start [2024-12-31 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142315', 'tblTempUsageDetail_20' ) end [2024-12-31 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142315', 'tblTempVendorCDR_20' ) start [2024-12-31 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142315', 'tblTempVendorCDR_20' ) end [2024-12-31 08:27:18] Production.INFO: ProcessCDR(1,14142315,1,1,2) [2024-12-31 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142315', 'tblTempUsageDetail_20' ) start [2024-12-31 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142315', 'tblTempUsageDetail_20' ) end [2024-12-31 08:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:27:21] Production.INFO: ==31618== Releasing lock... [2024-12-31 08:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:27:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:28:05 [end_date_ymd] => 2024-12-31 08:28:05 [RateCDR] => 1 ) [2024-12-31 08:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:28:05' and `end` < '2024-12-31 08:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:28:19] Production.INFO: count ==160 [2024-12-31 08:28:19] Production.ERROR: pbx CDR StartTime 2024-12-31 05:28:05 - End Time 2024-12-31 08:28:05 [2024-12-31 08:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142320', 'tblTempUsageDetail_20' ) start [2024-12-31 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142320', 'tblTempUsageDetail_20' ) end [2024-12-31 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142320', 'tblTempVendorCDR_20' ) start [2024-12-31 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142320', 'tblTempVendorCDR_20' ) end [2024-12-31 08:28:19] Production.INFO: ProcessCDR(1,14142320,1,1,2) [2024-12-31 08:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142320', 'tblTempUsageDetail_20' ) start [2024-12-31 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142320', 'tblTempUsageDetail_20' ) end [2024-12-31 08:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:28:22] Production.INFO: ==31690== Releasing lock... [2024-12-31 08:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:28:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 08:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:29:04 [end_date_ymd] => 2024-12-31 08:29:04 [RateCDR] => 1 ) [2024-12-31 08:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:29:04' and `end` < '2024-12-31 08:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:29:18] Production.INFO: count ==162 [2024-12-31 08:29:18] Production.ERROR: pbx CDR StartTime 2024-12-31 05:29:04 - End Time 2024-12-31 08:29:04 [2024-12-31 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142325', 'tblTempUsageDetail_20' ) start [2024-12-31 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142325', 'tblTempUsageDetail_20' ) end [2024-12-31 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142325', 'tblTempVendorCDR_20' ) start [2024-12-31 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142325', 'tblTempVendorCDR_20' ) end [2024-12-31 08:29:19] Production.INFO: ProcessCDR(1,14142325,1,1,2) [2024-12-31 08:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142325', 'tblTempUsageDetail_20' ) start [2024-12-31 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142325', 'tblTempUsageDetail_20' ) end [2024-12-31 08:29:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:29:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:29:23] Production.INFO: ==31761== Releasing lock... [2024-12-31 08:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:29:23] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:30:06 [end_date_ymd] => 2024-12-31 08:30:06 [RateCDR] => 1 ) [2024-12-31 08:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:30:06' and `end` < '2024-12-31 08:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:30:18] Production.INFO: count ==186 [2024-12-31 08:30:18] Production.ERROR: pbx CDR StartTime 2024-12-31 05:30:06 - End Time 2024-12-31 08:30:06 [2024-12-31 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142331', 'tblTempUsageDetail_20' ) start [2024-12-31 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142331', 'tblTempUsageDetail_20' ) end [2024-12-31 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142331', 'tblTempVendorCDR_20' ) start [2024-12-31 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142331', 'tblTempVendorCDR_20' ) end [2024-12-31 08:30:18] Production.INFO: ProcessCDR(1,14142331,1,1,2) [2024-12-31 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142331', 'tblTempUsageDetail_20' ) start [2024-12-31 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142331', 'tblTempUsageDetail_20' ) end [2024-12-31 08:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:30:22] Production.INFO: ==31833== Releasing lock... [2024-12-31 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:30:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-31 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:31:05 [end_date_ymd] => 2024-12-31 08:31:05 [RateCDR] => 1 ) [2024-12-31 08:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:31:05' and `end` < '2024-12-31 08:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:31:18] Production.INFO: count ==231 [2024-12-31 08:31:18] Production.ERROR: pbx CDR StartTime 2024-12-31 05:31:05 - End Time 2024-12-31 08:31:05 [2024-12-31 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142336', 'tblTempUsageDetail_20' ) start [2024-12-31 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142336', 'tblTempUsageDetail_20' ) end [2024-12-31 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142336', 'tblTempVendorCDR_20' ) start [2024-12-31 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142336', 'tblTempVendorCDR_20' ) end [2024-12-31 08:31:18] Production.INFO: ProcessCDR(1,14142336,1,1,2) [2024-12-31 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142336', 'tblTempUsageDetail_20' ) start [2024-12-31 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142336', 'tblTempUsageDetail_20' ) end [2024-12-31 08:31:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:31:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:31:23] Production.INFO: ==31906== Releasing lock... [2024-12-31 08:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:31:23] Production.INFO: 29.75 MB #Memory Used# [2024-12-31 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:32:05 [end_date_ymd] => 2024-12-31 08:32:05 [RateCDR] => 1 ) [2024-12-31 08:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:32:05' and `end` < '2024-12-31 08:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:32:18] Production.INFO: count ==238 [2024-12-31 08:32:18] Production.ERROR: pbx CDR StartTime 2024-12-31 05:32:05 - End Time 2024-12-31 08:32:05 [2024-12-31 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142341', 'tblTempUsageDetail_20' ) start [2024-12-31 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142341', 'tblTempUsageDetail_20' ) end [2024-12-31 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142341', 'tblTempVendorCDR_20' ) start [2024-12-31 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142341', 'tblTempVendorCDR_20' ) end [2024-12-31 08:32:18] Production.INFO: ProcessCDR(1,14142341,1,1,2) [2024-12-31 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142341', 'tblTempUsageDetail_20' ) start [2024-12-31 08:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142341', 'tblTempUsageDetail_20' ) end [2024-12-31 08:32:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:32:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:32:23] Production.INFO: ==31979== Releasing lock... [2024-12-31 08:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:32:23] Production.INFO: 30.25 MB #Memory Used# [2024-12-31 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:33:05 [end_date_ymd] => 2024-12-31 08:33:05 [RateCDR] => 1 ) [2024-12-31 08:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:33:05' and `end` < '2024-12-31 08:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:33:18] Production.INFO: count ==249 [2024-12-31 08:33:18] Production.ERROR: pbx CDR StartTime 2024-12-31 05:33:05 - End Time 2024-12-31 08:33:05 [2024-12-31 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142346', 'tblTempUsageDetail_20' ) start [2024-12-31 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142346', 'tblTempUsageDetail_20' ) end [2024-12-31 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142346', 'tblTempVendorCDR_20' ) start [2024-12-31 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142346', 'tblTempVendorCDR_20' ) end [2024-12-31 08:33:18] Production.INFO: ProcessCDR(1,14142346,1,1,2) [2024-12-31 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142346', 'tblTempUsageDetail_20' ) start [2024-12-31 08:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142346', 'tblTempUsageDetail_20' ) end [2024-12-31 08:33:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:33:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:33:23] Production.INFO: ==32051== Releasing lock... [2024-12-31 08:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:33:23] Production.INFO: 30.25 MB #Memory Used# [2024-12-31 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:34:04 [end_date_ymd] => 2024-12-31 08:34:04 [RateCDR] => 1 ) [2024-12-31 08:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:34:04' and `end` < '2024-12-31 08:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:34:17] Production.INFO: count ==252 [2024-12-31 08:34:17] Production.ERROR: pbx CDR StartTime 2024-12-31 05:34:04 - End Time 2024-12-31 08:34:04 [2024-12-31 08:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142351', 'tblTempUsageDetail_20' ) start [2024-12-31 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142351', 'tblTempUsageDetail_20' ) end [2024-12-31 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142351', 'tblTempVendorCDR_20' ) start [2024-12-31 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142351', 'tblTempVendorCDR_20' ) end [2024-12-31 08:34:17] Production.INFO: ProcessCDR(1,14142351,1,1,2) [2024-12-31 08:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142351', 'tblTempUsageDetail_20' ) start [2024-12-31 08:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142351', 'tblTempUsageDetail_20' ) end [2024-12-31 08:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:34:20] Production.INFO: ==32124== Releasing lock... [2024-12-31 08:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:34:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-31 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:35:05 [end_date_ymd] => 2024-12-31 08:35:05 [RateCDR] => 1 ) [2024-12-31 08:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:35:05' and `end` < '2024-12-31 08:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:35:17] Production.INFO: count ==263 [2024-12-31 08:35:17] Production.ERROR: pbx CDR StartTime 2024-12-31 05:35:05 - End Time 2024-12-31 08:35:05 [2024-12-31 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142356', 'tblTempUsageDetail_20' ) start [2024-12-31 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142356', 'tblTempUsageDetail_20' ) end [2024-12-31 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142356', 'tblTempVendorCDR_20' ) start [2024-12-31 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142356', 'tblTempVendorCDR_20' ) end [2024-12-31 08:35:17] Production.INFO: ProcessCDR(1,14142356,1,1,2) [2024-12-31 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142356', 'tblTempUsageDetail_20' ) start [2024-12-31 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142356', 'tblTempUsageDetail_20' ) end [2024-12-31 08:35:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:35:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:35:22] Production.INFO: ==32197== Releasing lock... [2024-12-31 08:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:35:22] Production.INFO: 30.5 MB #Memory Used# [2024-12-31 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:36:05 [end_date_ymd] => 2024-12-31 08:36:05 [RateCDR] => 1 ) [2024-12-31 08:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:36:05' and `end` < '2024-12-31 08:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:36:18] Production.INFO: count ==264 [2024-12-31 08:36:18] Production.ERROR: pbx CDR StartTime 2024-12-31 05:36:05 - End Time 2024-12-31 08:36:05 [2024-12-31 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142361', 'tblTempUsageDetail_20' ) start [2024-12-31 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142361', 'tblTempUsageDetail_20' ) end [2024-12-31 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142361', 'tblTempVendorCDR_20' ) start [2024-12-31 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142361', 'tblTempVendorCDR_20' ) end [2024-12-31 08:36:18] Production.INFO: ProcessCDR(1,14142361,1,1,2) [2024-12-31 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142361', 'tblTempUsageDetail_20' ) start [2024-12-31 08:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142361', 'tblTempUsageDetail_20' ) end [2024-12-31 08:36:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:36:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:36:23] Production.INFO: ==32266== Releasing lock... [2024-12-31 08:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:36:23] Production.INFO: 30.5 MB #Memory Used# [2024-12-31 08:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:37:04 [end_date_ymd] => 2024-12-31 08:37:04 [RateCDR] => 1 ) [2024-12-31 08:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:37:04' and `end` < '2024-12-31 08:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:37:17] Production.INFO: count ==269 [2024-12-31 08:37:17] Production.ERROR: pbx CDR StartTime 2024-12-31 05:37:04 - End Time 2024-12-31 08:37:04 [2024-12-31 08:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142366', 'tblTempUsageDetail_20' ) start [2024-12-31 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142366', 'tblTempUsageDetail_20' ) end [2024-12-31 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142366', 'tblTempVendorCDR_20' ) start [2024-12-31 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142366', 'tblTempVendorCDR_20' ) end [2024-12-31 08:37:17] Production.INFO: ProcessCDR(1,14142366,1,1,2) [2024-12-31 08:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142366', 'tblTempUsageDetail_20' ) start [2024-12-31 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142366', 'tblTempUsageDetail_20' ) end [2024-12-31 08:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:37:22] Production.INFO: ==32337== Releasing lock... [2024-12-31 08:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:37:22] Production.INFO: 30.5 MB #Memory Used# [2024-12-31 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:38:05 [end_date_ymd] => 2024-12-31 08:38:05 [RateCDR] => 1 ) [2024-12-31 08:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:38:05' and `end` < '2024-12-31 08:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:38:19] Production.INFO: count ==278 [2024-12-31 08:38:19] Production.ERROR: pbx CDR StartTime 2024-12-31 05:38:05 - End Time 2024-12-31 08:38:05 [2024-12-31 08:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142371', 'tblTempUsageDetail_20' ) start [2024-12-31 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142371', 'tblTempUsageDetail_20' ) end [2024-12-31 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142371', 'tblTempVendorCDR_20' ) start [2024-12-31 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142371', 'tblTempVendorCDR_20' ) end [2024-12-31 08:38:19] Production.INFO: ProcessCDR(1,14142371,1,1,2) [2024-12-31 08:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142371', 'tblTempUsageDetail_20' ) start [2024-12-31 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142371', 'tblTempUsageDetail_20' ) end [2024-12-31 08:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:38:22] Production.INFO: ==32408== Releasing lock... [2024-12-31 08:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:38:22] Production.INFO: 30.5 MB #Memory Used# [2024-12-31 08:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:39:04 [end_date_ymd] => 2024-12-31 08:39:04 [RateCDR] => 1 ) [2024-12-31 08:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:39:04' and `end` < '2024-12-31 08:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:39:17] Production.INFO: count ==279 [2024-12-31 08:39:17] Production.ERROR: pbx CDR StartTime 2024-12-31 05:39:04 - End Time 2024-12-31 08:39:04 [2024-12-31 08:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142376', 'tblTempUsageDetail_20' ) start [2024-12-31 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142376', 'tblTempUsageDetail_20' ) end [2024-12-31 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142376', 'tblTempVendorCDR_20' ) start [2024-12-31 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142376', 'tblTempVendorCDR_20' ) end [2024-12-31 08:39:17] Production.INFO: ProcessCDR(1,14142376,1,1,2) [2024-12-31 08:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142376', 'tblTempUsageDetail_20' ) start [2024-12-31 08:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142376', 'tblTempUsageDetail_20' ) end [2024-12-31 08:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:39:20] Production.INFO: ==32482== Releasing lock... [2024-12-31 08:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:39:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-31 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:40:06 [end_date_ymd] => 2024-12-31 08:40:06 [RateCDR] => 1 ) [2024-12-31 08:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:40:06' and `end` < '2024-12-31 08:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:40:18] Production.INFO: count ==298 [2024-12-31 08:40:18] Production.ERROR: pbx CDR StartTime 2024-12-31 05:40:06 - End Time 2024-12-31 08:40:06 [2024-12-31 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142382', 'tblTempUsageDetail_20' ) start [2024-12-31 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142382', 'tblTempUsageDetail_20' ) end [2024-12-31 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142382', 'tblTempVendorCDR_20' ) start [2024-12-31 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142382', 'tblTempVendorCDR_20' ) end [2024-12-31 08:40:18] Production.INFO: ProcessCDR(1,14142382,1,1,2) [2024-12-31 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142382', 'tblTempUsageDetail_20' ) start [2024-12-31 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142382', 'tblTempUsageDetail_20' ) end [2024-12-31 08:40:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:40:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:40:23] Production.INFO: ==32559== Releasing lock... [2024-12-31 08:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:40:23] Production.INFO: 30.5 MB #Memory Used# [2024-12-31 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:41:05 [end_date_ymd] => 2024-12-31 08:41:05 [RateCDR] => 1 ) [2024-12-31 08:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:41:05' and `end` < '2024-12-31 08:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:41:17] Production.INFO: count ==317 [2024-12-31 08:41:17] Production.ERROR: pbx CDR StartTime 2024-12-31 05:41:05 - End Time 2024-12-31 08:41:05 [2024-12-31 08:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142387', 'tblTempUsageDetail_20' ) start [2024-12-31 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142387', 'tblTempUsageDetail_20' ) end [2024-12-31 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142387', 'tblTempVendorCDR_20' ) start [2024-12-31 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142387', 'tblTempVendorCDR_20' ) end [2024-12-31 08:41:17] Production.INFO: ProcessCDR(1,14142387,1,1,2) [2024-12-31 08:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142387', 'tblTempUsageDetail_20' ) start [2024-12-31 08:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142387', 'tblTempUsageDetail_20' ) end [2024-12-31 08:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:41:20] Production.INFO: ==32633== Releasing lock... [2024-12-31 08:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:41:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-31 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:42:05 [end_date_ymd] => 2024-12-31 08:42:05 [RateCDR] => 1 ) [2024-12-31 08:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:42:05' and `end` < '2024-12-31 08:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:42:18] Production.INFO: count ==324 [2024-12-31 08:42:18] Production.ERROR: pbx CDR StartTime 2024-12-31 05:42:05 - End Time 2024-12-31 08:42:05 [2024-12-31 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142392', 'tblTempUsageDetail_20' ) start [2024-12-31 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142392', 'tblTempUsageDetail_20' ) end [2024-12-31 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142392', 'tblTempVendorCDR_20' ) start [2024-12-31 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142392', 'tblTempVendorCDR_20' ) end [2024-12-31 08:42:18] Production.INFO: ProcessCDR(1,14142392,1,1,2) [2024-12-31 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142392', 'tblTempUsageDetail_20' ) start [2024-12-31 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142392', 'tblTempUsageDetail_20' ) end [2024-12-31 08:42:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:42:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:42:23] Production.INFO: ==32744== Releasing lock... [2024-12-31 08:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:42:23] Production.INFO: 31.25 MB #Memory Used# [2024-12-31 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:43:05 [end_date_ymd] => 2024-12-31 08:43:05 [RateCDR] => 1 ) [2024-12-31 08:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:43:05' and `end` < '2024-12-31 08:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:43:17] Production.INFO: count ==325 [2024-12-31 08:43:17] Production.ERROR: pbx CDR StartTime 2024-12-31 05:43:05 - End Time 2024-12-31 08:43:05 [2024-12-31 08:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142397', 'tblTempUsageDetail_20' ) start [2024-12-31 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142397', 'tblTempUsageDetail_20' ) end [2024-12-31 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142397', 'tblTempVendorCDR_20' ) start [2024-12-31 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142397', 'tblTempVendorCDR_20' ) end [2024-12-31 08:43:17] Production.INFO: ProcessCDR(1,14142397,1,1,2) [2024-12-31 08:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142397', 'tblTempUsageDetail_20' ) start [2024-12-31 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142397', 'tblTempUsageDetail_20' ) end [2024-12-31 08:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:43:21] Production.INFO: ==365== Releasing lock... [2024-12-31 08:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:43:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-31 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:44:05 [end_date_ymd] => 2024-12-31 08:44:05 [RateCDR] => 1 ) [2024-12-31 08:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:44:05' and `end` < '2024-12-31 08:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:44:19] Production.INFO: count ==336 [2024-12-31 08:44:19] Production.ERROR: pbx CDR StartTime 2024-12-31 05:44:05 - End Time 2024-12-31 08:44:05 [2024-12-31 08:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142402', 'tblTempUsageDetail_20' ) start [2024-12-31 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142402', 'tblTempUsageDetail_20' ) end [2024-12-31 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142402', 'tblTempVendorCDR_20' ) start [2024-12-31 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142402', 'tblTempVendorCDR_20' ) end [2024-12-31 08:44:19] Production.INFO: ProcessCDR(1,14142402,1,1,2) [2024-12-31 08:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142402', 'tblTempUsageDetail_20' ) start [2024-12-31 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142402', 'tblTempUsageDetail_20' ) end [2024-12-31 08:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:44:22] Production.INFO: ==437== Releasing lock... [2024-12-31 08:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:44:22] Production.INFO: 30.75 MB #Memory Used# [2024-12-31 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:45:05 [end_date_ymd] => 2024-12-31 08:45:05 [RateCDR] => 1 ) [2024-12-31 08:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:45:05' and `end` < '2024-12-31 08:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:45:18] Production.INFO: count ==339 [2024-12-31 08:45:18] Production.ERROR: pbx CDR StartTime 2024-12-31 05:45:05 - End Time 2024-12-31 08:45:05 [2024-12-31 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142407', 'tblTempUsageDetail_20' ) start [2024-12-31 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142407', 'tblTempUsageDetail_20' ) end [2024-12-31 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142407', 'tblTempVendorCDR_20' ) start [2024-12-31 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142407', 'tblTempVendorCDR_20' ) end [2024-12-31 08:45:18] Production.INFO: ProcessCDR(1,14142407,1,1,2) [2024-12-31 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142407', 'tblTempUsageDetail_20' ) start [2024-12-31 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142407', 'tblTempUsageDetail_20' ) end [2024-12-31 08:45:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:45:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:45:23] Production.INFO: ==511== Releasing lock... [2024-12-31 08:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:45:23] Production.INFO: 31.25 MB #Memory Used# [2024-12-31 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:46:05 [end_date_ymd] => 2024-12-31 08:46:05 [RateCDR] => 1 ) [2024-12-31 08:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:46:05' and `end` < '2024-12-31 08:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:46:17] Production.INFO: count ==344 [2024-12-31 08:46:17] Production.ERROR: pbx CDR StartTime 2024-12-31 05:46:05 - End Time 2024-12-31 08:46:05 [2024-12-31 08:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142412', 'tblTempUsageDetail_20' ) start [2024-12-31 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142412', 'tblTempUsageDetail_20' ) end [2024-12-31 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142412', 'tblTempVendorCDR_20' ) start [2024-12-31 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142412', 'tblTempVendorCDR_20' ) end [2024-12-31 08:46:18] Production.INFO: ProcessCDR(1,14142412,1,1,2) [2024-12-31 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142412', 'tblTempUsageDetail_20' ) start [2024-12-31 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142412', 'tblTempUsageDetail_20' ) end [2024-12-31 08:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:46:21] Production.INFO: ==584== Releasing lock... [2024-12-31 08:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:46:21] Production.INFO: 31 MB #Memory Used# [2024-12-31 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:47:05 [end_date_ymd] => 2024-12-31 08:47:05 [RateCDR] => 1 ) [2024-12-31 08:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:47:05' and `end` < '2024-12-31 08:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:47:18] Production.INFO: count ==346 [2024-12-31 08:47:18] Production.ERROR: pbx CDR StartTime 2024-12-31 05:47:05 - End Time 2024-12-31 08:47:05 [2024-12-31 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142417', 'tblTempUsageDetail_20' ) start [2024-12-31 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142417', 'tblTempUsageDetail_20' ) end [2024-12-31 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142417', 'tblTempVendorCDR_20' ) start [2024-12-31 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142417', 'tblTempVendorCDR_20' ) end [2024-12-31 08:47:18] Production.INFO: ProcessCDR(1,14142417,1,1,2) [2024-12-31 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142417', 'tblTempUsageDetail_20' ) start [2024-12-31 08:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142417', 'tblTempUsageDetail_20' ) end [2024-12-31 08:47:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:47:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:47:23] Production.INFO: ==676== Releasing lock... [2024-12-31 08:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:47:23] Production.INFO: 30.75 MB #Memory Used# [2024-12-31 08:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:48:04 [end_date_ymd] => 2024-12-31 08:48:04 [RateCDR] => 1 ) [2024-12-31 08:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:48:04' and `end` < '2024-12-31 08:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:48:19] Production.INFO: count ==352 [2024-12-31 08:48:19] Production.ERROR: pbx CDR StartTime 2024-12-31 05:48:04 - End Time 2024-12-31 08:48:04 [2024-12-31 08:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142422', 'tblTempUsageDetail_20' ) start [2024-12-31 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142422', 'tblTempUsageDetail_20' ) end [2024-12-31 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142422', 'tblTempVendorCDR_20' ) start [2024-12-31 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142422', 'tblTempVendorCDR_20' ) end [2024-12-31 08:48:19] Production.INFO: ProcessCDR(1,14142422,1,1,2) [2024-12-31 08:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142422', 'tblTempUsageDetail_20' ) start [2024-12-31 08:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142422', 'tblTempUsageDetail_20' ) end [2024-12-31 08:48:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:48:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:48:24] Production.INFO: ==763== Releasing lock... [2024-12-31 08:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:48:24] Production.INFO: 31 MB #Memory Used# [2024-12-31 08:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:49:04 [end_date_ymd] => 2024-12-31 08:49:04 [RateCDR] => 1 ) [2024-12-31 08:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:49:04' and `end` < '2024-12-31 08:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:49:17] Production.INFO: count ==356 [2024-12-31 08:49:17] Production.ERROR: pbx CDR StartTime 2024-12-31 05:49:04 - End Time 2024-12-31 08:49:04 [2024-12-31 08:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142427', 'tblTempUsageDetail_20' ) start [2024-12-31 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142427', 'tblTempUsageDetail_20' ) end [2024-12-31 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142427', 'tblTempVendorCDR_20' ) start [2024-12-31 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142427', 'tblTempVendorCDR_20' ) end [2024-12-31 08:49:17] Production.INFO: ProcessCDR(1,14142427,1,1,2) [2024-12-31 08:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142427', 'tblTempUsageDetail_20' ) start [2024-12-31 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142427', 'tblTempUsageDetail_20' ) end [2024-12-31 08:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:49:22] Production.INFO: ==834== Releasing lock... [2024-12-31 08:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:49:22] Production.INFO: 31 MB #Memory Used# [2024-12-31 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:50:06 [end_date_ymd] => 2024-12-31 08:50:06 [RateCDR] => 1 ) [2024-12-31 08:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:50:06' and `end` < '2024-12-31 08:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:50:19] Production.INFO: count ==370 [2024-12-31 08:50:19] Production.ERROR: pbx CDR StartTime 2024-12-31 05:50:06 - End Time 2024-12-31 08:50:06 [2024-12-31 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142433', 'tblTempUsageDetail_20' ) start [2024-12-31 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142433', 'tblTempUsageDetail_20' ) end [2024-12-31 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142433', 'tblTempVendorCDR_20' ) start [2024-12-31 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142433', 'tblTempVendorCDR_20' ) end [2024-12-31 08:50:19] Production.INFO: ProcessCDR(1,14142433,1,1,2) [2024-12-31 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142433', 'tblTempUsageDetail_20' ) start [2024-12-31 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142433', 'tblTempUsageDetail_20' ) end [2024-12-31 08:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:50:22] Production.INFO: ==912== Releasing lock... [2024-12-31 08:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:50:22] Production.INFO: 31 MB #Memory Used# [2024-12-31 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:51:05 [end_date_ymd] => 2024-12-31 08:51:05 [RateCDR] => 1 ) [2024-12-31 08:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:51:05' and `end` < '2024-12-31 08:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:51:17] Production.INFO: count ==398 [2024-12-31 08:51:17] Production.ERROR: pbx CDR StartTime 2024-12-31 05:51:05 - End Time 2024-12-31 08:51:05 [2024-12-31 08:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142438', 'tblTempUsageDetail_20' ) start [2024-12-31 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142438', 'tblTempUsageDetail_20' ) end [2024-12-31 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142438', 'tblTempVendorCDR_20' ) start [2024-12-31 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142438', 'tblTempVendorCDR_20' ) end [2024-12-31 08:51:17] Production.INFO: ProcessCDR(1,14142438,1,1,2) [2024-12-31 08:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142438', 'tblTempUsageDetail_20' ) start [2024-12-31 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142438', 'tblTempUsageDetail_20' ) end [2024-12-31 08:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:51:22] Production.INFO: ==990== Releasing lock... [2024-12-31 08:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:51:22] Production.INFO: 31.5 MB #Memory Used# [2024-12-31 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:52:05 [end_date_ymd] => 2024-12-31 08:52:05 [RateCDR] => 1 ) [2024-12-31 08:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:52:05' and `end` < '2024-12-31 08:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:52:18] Production.INFO: count ==402 [2024-12-31 08:52:18] Production.ERROR: pbx CDR StartTime 2024-12-31 05:52:05 - End Time 2024-12-31 08:52:05 [2024-12-31 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142443', 'tblTempUsageDetail_20' ) start [2024-12-31 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142443', 'tblTempUsageDetail_20' ) end [2024-12-31 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142443', 'tblTempVendorCDR_20' ) start [2024-12-31 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142443', 'tblTempVendorCDR_20' ) end [2024-12-31 08:52:18] Production.INFO: ProcessCDR(1,14142443,1,1,2) [2024-12-31 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142443', 'tblTempUsageDetail_20' ) start [2024-12-31 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142443', 'tblTempUsageDetail_20' ) end [2024-12-31 08:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:52:22] Production.INFO: ==1063== Releasing lock... [2024-12-31 08:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:52:22] Production.INFO: 31.5 MB #Memory Used# [2024-12-31 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:53:05 [end_date_ymd] => 2024-12-31 08:53:05 [RateCDR] => 1 ) [2024-12-31 08:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:53:05' and `end` < '2024-12-31 08:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:53:18] Production.INFO: count ==420 [2024-12-31 08:53:18] Production.ERROR: pbx CDR StartTime 2024-12-31 05:53:05 - End Time 2024-12-31 08:53:05 [2024-12-31 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142448', 'tblTempUsageDetail_20' ) start [2024-12-31 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142448', 'tblTempUsageDetail_20' ) end [2024-12-31 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142448', 'tblTempVendorCDR_20' ) start [2024-12-31 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142448', 'tblTempVendorCDR_20' ) end [2024-12-31 08:53:18] Production.INFO: ProcessCDR(1,14142448,1,1,2) [2024-12-31 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142448', 'tblTempUsageDetail_20' ) start [2024-12-31 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142448', 'tblTempUsageDetail_20' ) end [2024-12-31 08:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:53:22] Production.INFO: ==1135== Releasing lock... [2024-12-31 08:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:53:22] Production.INFO: 32 MB #Memory Used# [2024-12-31 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:54:05 [end_date_ymd] => 2024-12-31 08:54:05 [RateCDR] => 1 ) [2024-12-31 08:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:54:05' and `end` < '2024-12-31 08:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:54:20] Production.INFO: count ==432 [2024-12-31 08:54:20] Production.ERROR: pbx CDR StartTime 2024-12-31 05:54:05 - End Time 2024-12-31 08:54:05 [2024-12-31 08:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142453', 'tblTempUsageDetail_20' ) start [2024-12-31 08:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142453', 'tblTempUsageDetail_20' ) end [2024-12-31 08:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142453', 'tblTempVendorCDR_20' ) start [2024-12-31 08:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142453', 'tblTempVendorCDR_20' ) end [2024-12-31 08:54:20] Production.INFO: ProcessCDR(1,14142453,1,1,2) [2024-12-31 08:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142453', 'tblTempUsageDetail_20' ) start [2024-12-31 08:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142453', 'tblTempUsageDetail_20' ) end [2024-12-31 08:54:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:54:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:54:24] Production.INFO: ==1215== Releasing lock... [2024-12-31 08:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:54:24] Production.INFO: 31.75 MB #Memory Used# [2024-12-31 08:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:55:04 [end_date_ymd] => 2024-12-31 08:55:04 [RateCDR] => 1 ) [2024-12-31 08:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:55:04' and `end` < '2024-12-31 08:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:55:17] Production.INFO: count ==432 [2024-12-31 08:55:17] Production.ERROR: pbx CDR StartTime 2024-12-31 05:55:04 - End Time 2024-12-31 08:55:04 [2024-12-31 08:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142458', 'tblTempUsageDetail_20' ) start [2024-12-31 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142458', 'tblTempUsageDetail_20' ) end [2024-12-31 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142458', 'tblTempVendorCDR_20' ) start [2024-12-31 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142458', 'tblTempVendorCDR_20' ) end [2024-12-31 08:55:17] Production.INFO: ProcessCDR(1,14142458,1,1,2) [2024-12-31 08:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142458', 'tblTempUsageDetail_20' ) start [2024-12-31 08:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142458', 'tblTempUsageDetail_20' ) end [2024-12-31 08:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:55:20] Production.INFO: ==1298== Releasing lock... [2024-12-31 08:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:55:20] Production.INFO: 31.75 MB #Memory Used# [2024-12-31 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:56:05 [end_date_ymd] => 2024-12-31 08:56:05 [RateCDR] => 1 ) [2024-12-31 08:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:56:05' and `end` < '2024-12-31 08:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:56:17] Production.INFO: count ==442 [2024-12-31 08:56:17] Production.ERROR: pbx CDR StartTime 2024-12-31 05:56:05 - End Time 2024-12-31 08:56:05 [2024-12-31 08:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142463', 'tblTempUsageDetail_20' ) start [2024-12-31 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142463', 'tblTempUsageDetail_20' ) end [2024-12-31 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142463', 'tblTempVendorCDR_20' ) start [2024-12-31 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142463', 'tblTempVendorCDR_20' ) end [2024-12-31 08:56:17] Production.INFO: ProcessCDR(1,14142463,1,1,2) [2024-12-31 08:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142463', 'tblTempUsageDetail_20' ) start [2024-12-31 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142463', 'tblTempUsageDetail_20' ) end [2024-12-31 08:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:56:21] Production.INFO: ==1367== Releasing lock... [2024-12-31 08:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:56:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-31 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:57:05 [end_date_ymd] => 2024-12-31 08:57:05 [RateCDR] => 1 ) [2024-12-31 08:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:57:05' and `end` < '2024-12-31 08:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:57:18] Production.INFO: count ==457 [2024-12-31 08:57:18] Production.ERROR: pbx CDR StartTime 2024-12-31 05:57:05 - End Time 2024-12-31 08:57:05 [2024-12-31 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142468', 'tblTempUsageDetail_20' ) start [2024-12-31 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142468', 'tblTempUsageDetail_20' ) end [2024-12-31 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142468', 'tblTempVendorCDR_20' ) start [2024-12-31 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142468', 'tblTempVendorCDR_20' ) end [2024-12-31 08:57:18] Production.INFO: ProcessCDR(1,14142468,1,1,2) [2024-12-31 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142468', 'tblTempUsageDetail_20' ) start [2024-12-31 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142468', 'tblTempUsageDetail_20' ) end [2024-12-31 08:57:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:57:23] Production.INFO: ==1438== Releasing lock... [2024-12-31 08:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:57:23] Production.INFO: 32 MB #Memory Used# [2024-12-31 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:58:05 [end_date_ymd] => 2024-12-31 08:58:05 [RateCDR] => 1 ) [2024-12-31 08:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:58:05' and `end` < '2024-12-31 08:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:58:17] Production.INFO: count ==465 [2024-12-31 08:58:17] Production.ERROR: pbx CDR StartTime 2024-12-31 05:58:05 - End Time 2024-12-31 08:58:05 [2024-12-31 08:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142473', 'tblTempUsageDetail_20' ) start [2024-12-31 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142473', 'tblTempUsageDetail_20' ) end [2024-12-31 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142473', 'tblTempVendorCDR_20' ) start [2024-12-31 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142473', 'tblTempVendorCDR_20' ) end [2024-12-31 08:58:17] Production.INFO: ProcessCDR(1,14142473,1,1,2) [2024-12-31 08:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142473', 'tblTempUsageDetail_20' ) start [2024-12-31 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142473', 'tblTempUsageDetail_20' ) end [2024-12-31 08:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:58:21] Production.INFO: ==1585== Releasing lock... [2024-12-31 08:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:58:21] Production.INFO: 32 MB #Memory Used# [2024-12-31 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 05:59:05 [end_date_ymd] => 2024-12-31 08:59:05 [RateCDR] => 1 ) [2024-12-31 08:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 05:59:05' and `end` < '2024-12-31 08:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 08:59:18] Production.INFO: count ==472 [2024-12-31 08:59:18] Production.ERROR: pbx CDR StartTime 2024-12-31 05:59:05 - End Time 2024-12-31 08:59:05 [2024-12-31 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142478', 'tblTempUsageDetail_20' ) start [2024-12-31 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142478', 'tblTempUsageDetail_20' ) end [2024-12-31 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142478', 'tblTempVendorCDR_20' ) start [2024-12-31 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142478', 'tblTempVendorCDR_20' ) end [2024-12-31 08:59:18] Production.INFO: ProcessCDR(1,14142478,1,1,2) [2024-12-31 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 08:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142478', 'tblTempUsageDetail_20' ) start [2024-12-31 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142478', 'tblTempUsageDetail_20' ) end [2024-12-31 08:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 08:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 08:59:21] Production.INFO: ==1658== Releasing lock... [2024-12-31 08:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 08:59:21] Production.INFO: 32 MB #Memory Used# [2024-12-31 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:00:05 [end_date_ymd] => 2024-12-31 09:00:05 [RateCDR] => 1 ) [2024-12-31 09:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:00:05' and `end` < '2024-12-31 09:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:00:18] Production.INFO: count ==483 [2024-12-31 09:00:18] Production.ERROR: pbx CDR StartTime 2024-12-31 06:00:05 - End Time 2024-12-31 09:00:05 [2024-12-31 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142484', 'tblTempUsageDetail_20' ) start [2024-12-31 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142484', 'tblTempUsageDetail_20' ) end [2024-12-31 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142484', 'tblTempVendorCDR_20' ) start [2024-12-31 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142484', 'tblTempVendorCDR_20' ) end [2024-12-31 09:00:18] Production.INFO: ProcessCDR(1,14142484,1,1,2) [2024-12-31 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142484', 'tblTempUsageDetail_20' ) start [2024-12-31 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142484', 'tblTempUsageDetail_20' ) end [2024-12-31 09:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:00:22] Production.INFO: ==1738== Releasing lock... [2024-12-31 09:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:00:22] Production.INFO: 32.5 MB #Memory Used# [2024-12-31 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:01:05 [end_date_ymd] => 2024-12-31 09:01:05 [RateCDR] => 1 ) [2024-12-31 09:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:01:05' and `end` < '2024-12-31 09:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:01:18] Production.INFO: count ==516 [2024-12-31 09:01:18] Production.ERROR: pbx CDR StartTime 2024-12-31 06:01:05 - End Time 2024-12-31 09:01:05 [2024-12-31 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142489', 'tblTempUsageDetail_20' ) start [2024-12-31 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142489', 'tblTempUsageDetail_20' ) end [2024-12-31 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142489', 'tblTempVendorCDR_20' ) start [2024-12-31 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142489', 'tblTempVendorCDR_20' ) end [2024-12-31 09:01:18] Production.INFO: ProcessCDR(1,14142489,1,1,2) [2024-12-31 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142489', 'tblTempUsageDetail_20' ) start [2024-12-31 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142489', 'tblTempUsageDetail_20' ) end [2024-12-31 09:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:01:22] Production.INFO: ==1830== Releasing lock... [2024-12-31 09:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:01:22] Production.INFO: 32.5 MB #Memory Used# [2024-12-31 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:02:05 [end_date_ymd] => 2024-12-31 09:02:05 [RateCDR] => 1 ) [2024-12-31 09:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:02:05' and `end` < '2024-12-31 09:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:02:17] Production.INFO: count ==527 [2024-12-31 09:02:18] Production.ERROR: pbx CDR StartTime 2024-12-31 06:02:05 - End Time 2024-12-31 09:02:05 [2024-12-31 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142494', 'tblTempUsageDetail_20' ) start [2024-12-31 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142494', 'tblTempUsageDetail_20' ) end [2024-12-31 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142494', 'tblTempVendorCDR_20' ) start [2024-12-31 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142494', 'tblTempVendorCDR_20' ) end [2024-12-31 09:02:18] Production.INFO: ProcessCDR(1,14142494,1,1,2) [2024-12-31 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142494', 'tblTempUsageDetail_20' ) start [2024-12-31 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142494', 'tblTempUsageDetail_20' ) end [2024-12-31 09:02:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:02:23] Production.INFO: ==1904== Releasing lock... [2024-12-31 09:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:02:23] Production.INFO: 32.5 MB #Memory Used# [2024-12-31 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:03:05 [end_date_ymd] => 2024-12-31 09:03:05 [RateCDR] => 1 ) [2024-12-31 09:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:03:05' and `end` < '2024-12-31 09:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:03:18] Production.INFO: count ==542 [2024-12-31 09:03:18] Production.ERROR: pbx CDR StartTime 2024-12-31 06:03:05 - End Time 2024-12-31 09:03:05 [2024-12-31 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142499', 'tblTempUsageDetail_20' ) start [2024-12-31 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142499', 'tblTempUsageDetail_20' ) end [2024-12-31 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142499', 'tblTempVendorCDR_20' ) start [2024-12-31 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142499', 'tblTempVendorCDR_20' ) end [2024-12-31 09:03:18] Production.INFO: ProcessCDR(1,14142499,1,1,2) [2024-12-31 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142499', 'tblTempUsageDetail_20' ) start [2024-12-31 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142499', 'tblTempUsageDetail_20' ) end [2024-12-31 09:03:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:03:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:03:23] Production.INFO: ==1980== Releasing lock... [2024-12-31 09:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:03:23] Production.INFO: 32.75 MB #Memory Used# [2024-12-31 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:04:05 [end_date_ymd] => 2024-12-31 09:04:05 [RateCDR] => 1 ) [2024-12-31 09:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:04:05' and `end` < '2024-12-31 09:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:04:18] Production.INFO: count ==548 [2024-12-31 09:04:18] Production.ERROR: pbx CDR StartTime 2024-12-31 06:04:05 - End Time 2024-12-31 09:04:05 [2024-12-31 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142504', 'tblTempUsageDetail_20' ) start [2024-12-31 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142504', 'tblTempUsageDetail_20' ) end [2024-12-31 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142504', 'tblTempVendorCDR_20' ) start [2024-12-31 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142504', 'tblTempVendorCDR_20' ) end [2024-12-31 09:04:18] Production.INFO: ProcessCDR(1,14142504,1,1,2) [2024-12-31 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142504', 'tblTempUsageDetail_20' ) start [2024-12-31 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142504', 'tblTempUsageDetail_20' ) end [2024-12-31 09:04:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:04:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:04:23] Production.INFO: ==2057== Releasing lock... [2024-12-31 09:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:04:23] Production.INFO: 32.5 MB #Memory Used# [2024-12-31 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:05:05 [end_date_ymd] => 2024-12-31 09:05:05 [RateCDR] => 1 ) [2024-12-31 09:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:05:05' and `end` < '2024-12-31 09:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:05:17] Production.INFO: count ==571 [2024-12-31 09:05:18] Production.ERROR: pbx CDR StartTime 2024-12-31 06:05:05 - End Time 2024-12-31 09:05:05 [2024-12-31 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142509', 'tblTempUsageDetail_20' ) start [2024-12-31 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142509', 'tblTempUsageDetail_20' ) end [2024-12-31 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142509', 'tblTempVendorCDR_20' ) start [2024-12-31 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142509', 'tblTempVendorCDR_20' ) end [2024-12-31 09:05:18] Production.INFO: ProcessCDR(1,14142509,1,1,2) [2024-12-31 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142509', 'tblTempUsageDetail_20' ) start [2024-12-31 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142509', 'tblTempUsageDetail_20' ) end [2024-12-31 09:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:05:22] Production.INFO: ==2138== Releasing lock... [2024-12-31 09:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:05:22] Production.INFO: 33.25 MB #Memory Used# [2024-12-31 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:06:05 [end_date_ymd] => 2024-12-31 09:06:05 [RateCDR] => 1 ) [2024-12-31 09:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:06:05' and `end` < '2024-12-31 09:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:06:18] Production.INFO: count ==592 [2024-12-31 09:06:18] Production.ERROR: pbx CDR StartTime 2024-12-31 06:06:05 - End Time 2024-12-31 09:06:05 [2024-12-31 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142514', 'tblTempUsageDetail_20' ) start [2024-12-31 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142514', 'tblTempUsageDetail_20' ) end [2024-12-31 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142514', 'tblTempVendorCDR_20' ) start [2024-12-31 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142514', 'tblTempVendorCDR_20' ) end [2024-12-31 09:06:18] Production.INFO: ProcessCDR(1,14142514,1,1,2) [2024-12-31 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142514', 'tblTempUsageDetail_20' ) start [2024-12-31 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142514', 'tblTempUsageDetail_20' ) end [2024-12-31 09:06:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:06:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:06:23] Production.INFO: ==2215== Releasing lock... [2024-12-31 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:06:23] Production.INFO: 32.5 MB #Memory Used# [2024-12-31 09:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:07:04 [end_date_ymd] => 2024-12-31 09:07:04 [RateCDR] => 1 ) [2024-12-31 09:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:07:04' and `end` < '2024-12-31 09:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:07:17] Production.INFO: count ==614 [2024-12-31 09:07:17] Production.ERROR: pbx CDR StartTime 2024-12-31 06:07:04 - End Time 2024-12-31 09:07:04 [2024-12-31 09:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142519', 'tblTempUsageDetail_20' ) start [2024-12-31 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142519', 'tblTempUsageDetail_20' ) end [2024-12-31 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142519', 'tblTempVendorCDR_20' ) start [2024-12-31 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142519', 'tblTempVendorCDR_20' ) end [2024-12-31 09:07:17] Production.INFO: ProcessCDR(1,14142519,1,1,2) [2024-12-31 09:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142519', 'tblTempUsageDetail_20' ) start [2024-12-31 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142519', 'tblTempUsageDetail_20' ) end [2024-12-31 09:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:07:22] Production.INFO: ==2301== Releasing lock... [2024-12-31 09:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:07:22] Production.INFO: 33 MB #Memory Used# [2024-12-31 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:08:05 [end_date_ymd] => 2024-12-31 09:08:05 [RateCDR] => 1 ) [2024-12-31 09:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:08:05' and `end` < '2024-12-31 09:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:08:18] Production.INFO: count ==614 [2024-12-31 09:08:18] Production.ERROR: pbx CDR StartTime 2024-12-31 06:08:05 - End Time 2024-12-31 09:08:05 [2024-12-31 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142524', 'tblTempUsageDetail_20' ) start [2024-12-31 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142524', 'tblTempUsageDetail_20' ) end [2024-12-31 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142524', 'tblTempVendorCDR_20' ) start [2024-12-31 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142524', 'tblTempVendorCDR_20' ) end [2024-12-31 09:08:18] Production.INFO: ProcessCDR(1,14142524,1,1,2) [2024-12-31 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142524', 'tblTempUsageDetail_20' ) start [2024-12-31 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142524', 'tblTempUsageDetail_20' ) end [2024-12-31 09:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:08:22] Production.INFO: ==2380== Releasing lock... [2024-12-31 09:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:08:22] Production.INFO: 33 MB #Memory Used# [2024-12-31 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:09:05 [end_date_ymd] => 2024-12-31 09:09:05 [RateCDR] => 1 ) [2024-12-31 09:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:09:05' and `end` < '2024-12-31 09:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:09:17] Production.INFO: count ==631 [2024-12-31 09:09:17] Production.ERROR: pbx CDR StartTime 2024-12-31 06:09:05 - End Time 2024-12-31 09:09:05 [2024-12-31 09:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142529', 'tblTempUsageDetail_20' ) start [2024-12-31 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142529', 'tblTempUsageDetail_20' ) end [2024-12-31 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142529', 'tblTempVendorCDR_20' ) start [2024-12-31 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142529', 'tblTempVendorCDR_20' ) end [2024-12-31 09:09:17] Production.INFO: ProcessCDR(1,14142529,1,1,2) [2024-12-31 09:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142529', 'tblTempUsageDetail_20' ) start [2024-12-31 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142529', 'tblTempUsageDetail_20' ) end [2024-12-31 09:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:09:22] Production.INFO: ==2459== Releasing lock... [2024-12-31 09:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:09:22] Production.INFO: 33 MB #Memory Used# [2024-12-31 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:10:06 [end_date_ymd] => 2024-12-31 09:10:06 [RateCDR] => 1 ) [2024-12-31 09:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:10:06' and `end` < '2024-12-31 09:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:10:18] Production.INFO: count ==656 [2024-12-31 09:10:19] Production.ERROR: pbx CDR StartTime 2024-12-31 06:10:06 - End Time 2024-12-31 09:10:06 [2024-12-31 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142535', 'tblTempUsageDetail_20' ) start [2024-12-31 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142535', 'tblTempUsageDetail_20' ) end [2024-12-31 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142535', 'tblTempVendorCDR_20' ) start [2024-12-31 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142535', 'tblTempVendorCDR_20' ) end [2024-12-31 09:10:19] Production.INFO: ProcessCDR(1,14142535,1,1,2) [2024-12-31 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142535', 'tblTempUsageDetail_20' ) start [2024-12-31 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142535', 'tblTempUsageDetail_20' ) end [2024-12-31 09:10:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:10:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:10:23] Production.INFO: ==2539== Releasing lock... [2024-12-31 09:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:10:23] Production.INFO: 33.5 MB #Memory Used# [2024-12-31 09:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:11:04 [end_date_ymd] => 2024-12-31 09:11:04 [RateCDR] => 1 ) [2024-12-31 09:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:11:04' and `end` < '2024-12-31 09:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:11:17] Production.INFO: count ==747 [2024-12-31 09:11:17] Production.ERROR: pbx CDR StartTime 2024-12-31 06:11:04 - End Time 2024-12-31 09:11:04 [2024-12-31 09:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142540', 'tblTempUsageDetail_20' ) start [2024-12-31 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142540', 'tblTempUsageDetail_20' ) end [2024-12-31 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142540', 'tblTempVendorCDR_20' ) start [2024-12-31 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142540', 'tblTempVendorCDR_20' ) end [2024-12-31 09:11:17] Production.INFO: ProcessCDR(1,14142540,1,1,2) [2024-12-31 09:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142540', 'tblTempUsageDetail_20' ) start [2024-12-31 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142540', 'tblTempUsageDetail_20' ) end [2024-12-31 09:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:11:22] Production.INFO: ==2621== Releasing lock... [2024-12-31 09:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:11:22] Production.INFO: 33.5 MB #Memory Used# [2024-12-31 09:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:12:04 [end_date_ymd] => 2024-12-31 09:12:04 [RateCDR] => 1 ) [2024-12-31 09:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:12:04' and `end` < '2024-12-31 09:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:12:17] Production.INFO: count ==768 [2024-12-31 09:12:17] Production.ERROR: pbx CDR StartTime 2024-12-31 06:12:04 - End Time 2024-12-31 09:12:04 [2024-12-31 09:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142545', 'tblTempUsageDetail_20' ) start [2024-12-31 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142545', 'tblTempUsageDetail_20' ) end [2024-12-31 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142545', 'tblTempVendorCDR_20' ) start [2024-12-31 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142545', 'tblTempVendorCDR_20' ) end [2024-12-31 09:12:17] Production.INFO: ProcessCDR(1,14142545,1,1,2) [2024-12-31 09:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142545', 'tblTempUsageDetail_20' ) start [2024-12-31 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142545', 'tblTempUsageDetail_20' ) end [2024-12-31 09:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:12:22] Production.INFO: ==2696== Releasing lock... [2024-12-31 09:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:12:22] Production.INFO: 34.25 MB #Memory Used# [2024-12-31 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:13:05 [end_date_ymd] => 2024-12-31 09:13:05 [RateCDR] => 1 ) [2024-12-31 09:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:13:05' and `end` < '2024-12-31 09:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:13:18] Production.INFO: count ==778 [2024-12-31 09:13:18] Production.ERROR: pbx CDR StartTime 2024-12-31 06:13:05 - End Time 2024-12-31 09:13:05 [2024-12-31 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142550', 'tblTempUsageDetail_20' ) start [2024-12-31 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142550', 'tblTempUsageDetail_20' ) end [2024-12-31 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142550', 'tblTempVendorCDR_20' ) start [2024-12-31 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142550', 'tblTempVendorCDR_20' ) end [2024-12-31 09:13:18] Production.INFO: ProcessCDR(1,14142550,1,1,2) [2024-12-31 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142550', 'tblTempUsageDetail_20' ) start [2024-12-31 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142550', 'tblTempUsageDetail_20' ) end [2024-12-31 09:13:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:13:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:13:23] Production.INFO: ==2812== Releasing lock... [2024-12-31 09:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:13:23] Production.INFO: 34.25 MB #Memory Used# [2024-12-31 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:14:05 [end_date_ymd] => 2024-12-31 09:14:05 [RateCDR] => 1 ) [2024-12-31 09:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:14:05' and `end` < '2024-12-31 09:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:14:18] Production.INFO: count ==800 [2024-12-31 09:14:18] Production.ERROR: pbx CDR StartTime 2024-12-31 06:14:05 - End Time 2024-12-31 09:14:05 [2024-12-31 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142555', 'tblTempUsageDetail_20' ) start [2024-12-31 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142555', 'tblTempUsageDetail_20' ) end [2024-12-31 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142555', 'tblTempVendorCDR_20' ) start [2024-12-31 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142555', 'tblTempVendorCDR_20' ) end [2024-12-31 09:14:18] Production.INFO: ProcessCDR(1,14142555,1,1,2) [2024-12-31 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142555', 'tblTempUsageDetail_20' ) start [2024-12-31 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142555', 'tblTempUsageDetail_20' ) end [2024-12-31 09:14:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:14:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:14:23] Production.INFO: ==2889== Releasing lock... [2024-12-31 09:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:14:23] Production.INFO: 34.25 MB #Memory Used# [2024-12-31 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:15:05 [end_date_ymd] => 2024-12-31 09:15:05 [RateCDR] => 1 ) [2024-12-31 09:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:15:05' and `end` < '2024-12-31 09:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:15:18] Production.INFO: count ==817 [2024-12-31 09:15:18] Production.ERROR: pbx CDR StartTime 2024-12-31 06:15:05 - End Time 2024-12-31 09:15:05 [2024-12-31 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142560', 'tblTempUsageDetail_20' ) start [2024-12-31 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142560', 'tblTempUsageDetail_20' ) end [2024-12-31 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142560', 'tblTempVendorCDR_20' ) start [2024-12-31 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142560', 'tblTempVendorCDR_20' ) end [2024-12-31 09:15:18] Production.INFO: ProcessCDR(1,14142560,1,1,2) [2024-12-31 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142560', 'tblTempUsageDetail_20' ) start [2024-12-31 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142560', 'tblTempUsageDetail_20' ) end [2024-12-31 09:15:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:15:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:15:23] Production.INFO: ==2967== Releasing lock... [2024-12-31 09:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:15:23] Production.INFO: 34.75 MB #Memory Used# [2024-12-31 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:16:05 [end_date_ymd] => 2024-12-31 09:16:05 [RateCDR] => 1 ) [2024-12-31 09:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:16:05' and `end` < '2024-12-31 09:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:16:17] Production.INFO: count ==821 [2024-12-31 09:16:18] Production.ERROR: pbx CDR StartTime 2024-12-31 06:16:05 - End Time 2024-12-31 09:16:05 [2024-12-31 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142565', 'tblTempUsageDetail_20' ) start [2024-12-31 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142565', 'tblTempUsageDetail_20' ) end [2024-12-31 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142565', 'tblTempVendorCDR_20' ) start [2024-12-31 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142565', 'tblTempVendorCDR_20' ) end [2024-12-31 09:16:18] Production.INFO: ProcessCDR(1,14142565,1,1,2) [2024-12-31 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142565', 'tblTempUsageDetail_20' ) start [2024-12-31 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142565', 'tblTempUsageDetail_20' ) end [2024-12-31 09:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:16:22] Production.INFO: ==3046== Releasing lock... [2024-12-31 09:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:16:22] Production.INFO: 34.25 MB #Memory Used# [2024-12-31 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:17:05 [end_date_ymd] => 2024-12-31 09:17:05 [RateCDR] => 1 ) [2024-12-31 09:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:17:05' and `end` < '2024-12-31 09:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:17:18] Production.INFO: count ==828 [2024-12-31 09:17:18] Production.ERROR: pbx CDR StartTime 2024-12-31 06:17:05 - End Time 2024-12-31 09:17:05 [2024-12-31 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142570', 'tblTempUsageDetail_20' ) start [2024-12-31 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142570', 'tblTempUsageDetail_20' ) end [2024-12-31 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142570', 'tblTempVendorCDR_20' ) start [2024-12-31 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142570', 'tblTempVendorCDR_20' ) end [2024-12-31 09:17:19] Production.INFO: ProcessCDR(1,14142570,1,1,2) [2024-12-31 09:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142570', 'tblTempUsageDetail_20' ) start [2024-12-31 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142570', 'tblTempUsageDetail_20' ) end [2024-12-31 09:17:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:17:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:17:23] Production.INFO: ==3124== Releasing lock... [2024-12-31 09:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:17:23] Production.INFO: 34.25 MB #Memory Used# [2024-12-31 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:18:05 [end_date_ymd] => 2024-12-31 09:18:05 [RateCDR] => 1 ) [2024-12-31 09:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:18:05' and `end` < '2024-12-31 09:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:18:19] Production.INFO: count ==836 [2024-12-31 09:18:20] Production.ERROR: pbx CDR StartTime 2024-12-31 06:18:05 - End Time 2024-12-31 09:18:05 [2024-12-31 09:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142575', 'tblTempUsageDetail_20' ) start [2024-12-31 09:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142575', 'tblTempUsageDetail_20' ) end [2024-12-31 09:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142575', 'tblTempVendorCDR_20' ) start [2024-12-31 09:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142575', 'tblTempVendorCDR_20' ) end [2024-12-31 09:18:20] Production.INFO: ProcessCDR(1,14142575,1,1,2) [2024-12-31 09:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142575', 'tblTempUsageDetail_20' ) start [2024-12-31 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142575', 'tblTempUsageDetail_20' ) end [2024-12-31 09:18:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:18:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:18:25] Production.INFO: ==3203== Releasing lock... [2024-12-31 09:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:18:25] Production.INFO: 34.5 MB #Memory Used# [2024-12-31 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:19:05 [end_date_ymd] => 2024-12-31 09:19:05 [RateCDR] => 1 ) [2024-12-31 09:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:19:05' and `end` < '2024-12-31 09:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:19:18] Production.INFO: count ==848 [2024-12-31 09:19:18] Production.ERROR: pbx CDR StartTime 2024-12-31 06:19:05 - End Time 2024-12-31 09:19:05 [2024-12-31 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142580', 'tblTempUsageDetail_20' ) start [2024-12-31 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142580', 'tblTempUsageDetail_20' ) end [2024-12-31 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142580', 'tblTempVendorCDR_20' ) start [2024-12-31 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142580', 'tblTempVendorCDR_20' ) end [2024-12-31 09:19:18] Production.INFO: ProcessCDR(1,14142580,1,1,2) [2024-12-31 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142580', 'tblTempUsageDetail_20' ) start [2024-12-31 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142580', 'tblTempUsageDetail_20' ) end [2024-12-31 09:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:19:22] Production.INFO: ==3278== Releasing lock... [2024-12-31 09:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:19:22] Production.INFO: 34.75 MB #Memory Used# [2024-12-31 09:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:20:05 [end_date_ymd] => 2024-12-31 09:20:05 [RateCDR] => 1 ) [2024-12-31 09:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:20:05' and `end` < '2024-12-31 09:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:20:18] Production.INFO: count ==868 [2024-12-31 09:20:18] Production.ERROR: pbx CDR StartTime 2024-12-31 06:20:05 - End Time 2024-12-31 09:20:05 [2024-12-31 09:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142586', 'tblTempUsageDetail_20' ) start [2024-12-31 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142586', 'tblTempUsageDetail_20' ) end [2024-12-31 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142586', 'tblTempVendorCDR_20' ) start [2024-12-31 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142586', 'tblTempVendorCDR_20' ) end [2024-12-31 09:20:18] Production.INFO: ProcessCDR(1,14142586,1,1,2) [2024-12-31 09:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142586', 'tblTempUsageDetail_20' ) start [2024-12-31 09:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142586', 'tblTempUsageDetail_20' ) end [2024-12-31 09:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:20:21] Production.INFO: ==3359== Releasing lock... [2024-12-31 09:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:20:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-31 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:21:05 [end_date_ymd] => 2024-12-31 09:21:05 [RateCDR] => 1 ) [2024-12-31 09:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:21:05' and `end` < '2024-12-31 09:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:21:17] Production.INFO: count ==909 [2024-12-31 09:21:18] Production.ERROR: pbx CDR StartTime 2024-12-31 06:21:05 - End Time 2024-12-31 09:21:05 [2024-12-31 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142591', 'tblTempUsageDetail_20' ) start [2024-12-31 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142591', 'tblTempUsageDetail_20' ) end [2024-12-31 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142591', 'tblTempVendorCDR_20' ) start [2024-12-31 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142591', 'tblTempVendorCDR_20' ) end [2024-12-31 09:21:18] Production.INFO: ProcessCDR(1,14142591,1,1,2) [2024-12-31 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142591', 'tblTempUsageDetail_20' ) start [2024-12-31 09:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142591', 'tblTempUsageDetail_20' ) end [2024-12-31 09:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:21:21] Production.INFO: ==3431== Releasing lock... [2024-12-31 09:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:21:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-31 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:22:05 [end_date_ymd] => 2024-12-31 09:22:05 [RateCDR] => 1 ) [2024-12-31 09:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:22:05' and `end` < '2024-12-31 09:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:22:19] Production.INFO: count ==923 [2024-12-31 09:22:19] Production.ERROR: pbx CDR StartTime 2024-12-31 06:22:05 - End Time 2024-12-31 09:22:05 [2024-12-31 09:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142596', 'tblTempUsageDetail_20' ) start [2024-12-31 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142596', 'tblTempUsageDetail_20' ) end [2024-12-31 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142596', 'tblTempVendorCDR_20' ) start [2024-12-31 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142596', 'tblTempVendorCDR_20' ) end [2024-12-31 09:22:19] Production.INFO: ProcessCDR(1,14142596,1,1,2) [2024-12-31 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142596', 'tblTempUsageDetail_20' ) start [2024-12-31 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142596', 'tblTempUsageDetail_20' ) end [2024-12-31 09:22:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:22:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:22:24] Production.INFO: ==3509== Releasing lock... [2024-12-31 09:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:22:24] Production.INFO: 35.25 MB #Memory Used# [2024-12-31 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:23:05 [end_date_ymd] => 2024-12-31 09:23:05 [RateCDR] => 1 ) [2024-12-31 09:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:23:05' and `end` < '2024-12-31 09:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:23:18] Production.INFO: count ==925 [2024-12-31 09:23:18] Production.ERROR: pbx CDR StartTime 2024-12-31 06:23:05 - End Time 2024-12-31 09:23:05 [2024-12-31 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142601', 'tblTempUsageDetail_20' ) start [2024-12-31 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142601', 'tblTempUsageDetail_20' ) end [2024-12-31 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142601', 'tblTempVendorCDR_20' ) start [2024-12-31 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142601', 'tblTempVendorCDR_20' ) end [2024-12-31 09:23:18] Production.INFO: ProcessCDR(1,14142601,1,1,2) [2024-12-31 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142601', 'tblTempUsageDetail_20' ) start [2024-12-31 09:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142601', 'tblTempUsageDetail_20' ) end [2024-12-31 09:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:23:22] Production.INFO: ==3588== Releasing lock... [2024-12-31 09:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:23:22] Production.INFO: 35 MB #Memory Used# [2024-12-31 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:24:05 [end_date_ymd] => 2024-12-31 09:24:05 [RateCDR] => 1 ) [2024-12-31 09:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:24:05' and `end` < '2024-12-31 09:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:24:18] Production.INFO: count ==942 [2024-12-31 09:24:18] Production.ERROR: pbx CDR StartTime 2024-12-31 06:24:05 - End Time 2024-12-31 09:24:05 [2024-12-31 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142606', 'tblTempUsageDetail_20' ) start [2024-12-31 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142606', 'tblTempUsageDetail_20' ) end [2024-12-31 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142606', 'tblTempVendorCDR_20' ) start [2024-12-31 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142606', 'tblTempVendorCDR_20' ) end [2024-12-31 09:24:18] Production.INFO: ProcessCDR(1,14142606,1,1,2) [2024-12-31 09:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142606', 'tblTempUsageDetail_20' ) start [2024-12-31 09:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142606', 'tblTempUsageDetail_20' ) end [2024-12-31 09:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:24:23] Production.INFO: ==3663== Releasing lock... [2024-12-31 09:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:24:23] Production.INFO: 35.75 MB #Memory Used# [2024-12-31 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:25:05 [end_date_ymd] => 2024-12-31 09:25:05 [RateCDR] => 1 ) [2024-12-31 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:25:05' and `end` < '2024-12-31 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:25:18] Production.INFO: count ==949 [2024-12-31 09:25:18] Production.ERROR: pbx CDR StartTime 2024-12-31 06:25:05 - End Time 2024-12-31 09:25:05 [2024-12-31 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142611', 'tblTempUsageDetail_20' ) start [2024-12-31 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142611', 'tblTempUsageDetail_20' ) end [2024-12-31 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142611', 'tblTempVendorCDR_20' ) start [2024-12-31 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142611', 'tblTempVendorCDR_20' ) end [2024-12-31 09:25:18] Production.INFO: ProcessCDR(1,14142611,1,1,2) [2024-12-31 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142611', 'tblTempUsageDetail_20' ) start [2024-12-31 09:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142611', 'tblTempUsageDetail_20' ) end [2024-12-31 09:25:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:25:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:25:22] Production.INFO: ==3734== Releasing lock... [2024-12-31 09:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:25:22] Production.INFO: 36.25 MB #Memory Used# [2024-12-31 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:26:05 [end_date_ymd] => 2024-12-31 09:26:05 [RateCDR] => 1 ) [2024-12-31 09:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:26:05' and `end` < '2024-12-31 09:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:26:18] Production.INFO: count ==959 [2024-12-31 09:26:18] Production.ERROR: pbx CDR StartTime 2024-12-31 06:26:05 - End Time 2024-12-31 09:26:05 [2024-12-31 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142616', 'tblTempUsageDetail_20' ) start [2024-12-31 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142616', 'tblTempUsageDetail_20' ) end [2024-12-31 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142616', 'tblTempVendorCDR_20' ) start [2024-12-31 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142616', 'tblTempVendorCDR_20' ) end [2024-12-31 09:26:18] Production.INFO: ProcessCDR(1,14142616,1,1,2) [2024-12-31 09:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142616', 'tblTempUsageDetail_20' ) start [2024-12-31 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142616', 'tblTempUsageDetail_20' ) end [2024-12-31 09:26:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:26:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:26:23] Production.INFO: ==3805== Releasing lock... [2024-12-31 09:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:26:23] Production.INFO: 35.75 MB #Memory Used# [2024-12-31 09:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:27:04 [end_date_ymd] => 2024-12-31 09:27:04 [RateCDR] => 1 ) [2024-12-31 09:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:27:04' and `end` < '2024-12-31 09:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:27:17] Production.INFO: count ==988 [2024-12-31 09:27:18] Production.ERROR: pbx CDR StartTime 2024-12-31 06:27:04 - End Time 2024-12-31 09:27:04 [2024-12-31 09:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142621', 'tblTempUsageDetail_20' ) start [2024-12-31 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142621', 'tblTempUsageDetail_20' ) end [2024-12-31 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142621', 'tblTempVendorCDR_20' ) start [2024-12-31 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142621', 'tblTempVendorCDR_20' ) end [2024-12-31 09:27:18] Production.INFO: ProcessCDR(1,14142621,1,1,2) [2024-12-31 09:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142621', 'tblTempUsageDetail_20' ) start [2024-12-31 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142621', 'tblTempUsageDetail_20' ) end [2024-12-31 09:27:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:27:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:27:23] Production.INFO: ==3875== Releasing lock... [2024-12-31 09:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:27:23] Production.INFO: 36 MB #Memory Used# [2024-12-31 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:28:05 [end_date_ymd] => 2024-12-31 09:28:05 [RateCDR] => 1 ) [2024-12-31 09:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:28:05' and `end` < '2024-12-31 09:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:28:18] Production.INFO: count ==1000 [2024-12-31 09:28:19] Production.ERROR: pbx CDR StartTime 2024-12-31 06:28:05 - End Time 2024-12-31 09:28:05 [2024-12-31 09:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142626', 'tblTempUsageDetail_20' ) start [2024-12-31 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142626', 'tblTempUsageDetail_20' ) end [2024-12-31 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142626', 'tblTempVendorCDR_20' ) start [2024-12-31 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142626', 'tblTempVendorCDR_20' ) end [2024-12-31 09:28:19] Production.INFO: ProcessCDR(1,14142626,1,1,2) [2024-12-31 09:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142626', 'tblTempUsageDetail_20' ) start [2024-12-31 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142626', 'tblTempUsageDetail_20' ) end [2024-12-31 09:28:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:28:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:28:23] Production.INFO: ==3947== Releasing lock... [2024-12-31 09:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:28:23] Production.INFO: 35.75 MB #Memory Used# [2024-12-31 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:29:05 [end_date_ymd] => 2024-12-31 09:29:05 [RateCDR] => 1 ) [2024-12-31 09:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:29:05' and `end` < '2024-12-31 09:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:29:18] Production.INFO: count ==1003 [2024-12-31 09:29:18] Production.ERROR: pbx CDR StartTime 2024-12-31 06:29:05 - End Time 2024-12-31 09:29:05 [2024-12-31 09:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142631', 'tblTempUsageDetail_20' ) start [2024-12-31 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142631', 'tblTempUsageDetail_20' ) end [2024-12-31 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142631', 'tblTempVendorCDR_20' ) start [2024-12-31 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142631', 'tblTempVendorCDR_20' ) end [2024-12-31 09:29:18] Production.INFO: ProcessCDR(1,14142631,1,1,2) [2024-12-31 09:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142631', 'tblTempUsageDetail_20' ) start [2024-12-31 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142631', 'tblTempUsageDetail_20' ) end [2024-12-31 09:29:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:29:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:29:23] Production.INFO: ==4058== Releasing lock... [2024-12-31 09:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:29:23] Production.INFO: 35.75 MB #Memory Used# [2024-12-31 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:30:06 [end_date_ymd] => 2024-12-31 09:30:06 [RateCDR] => 1 ) [2024-12-31 09:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:30:06' and `end` < '2024-12-31 09:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:30:18] Production.INFO: count ==1056 [2024-12-31 09:30:19] Production.ERROR: pbx CDR StartTime 2024-12-31 06:30:06 - End Time 2024-12-31 09:30:06 [2024-12-31 09:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142637', 'tblTempUsageDetail_20' ) start [2024-12-31 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142637', 'tblTempUsageDetail_20' ) end [2024-12-31 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142637', 'tblTempVendorCDR_20' ) start [2024-12-31 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142637', 'tblTempVendorCDR_20' ) end [2024-12-31 09:30:19] Production.INFO: ProcessCDR(1,14142637,1,1,2) [2024-12-31 09:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142637', 'tblTempUsageDetail_20' ) start [2024-12-31 09:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142637', 'tblTempUsageDetail_20' ) end [2024-12-31 09:30:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:30:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:30:23] Production.INFO: ==4133== Releasing lock... [2024-12-31 09:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:30:23] Production.INFO: 36.5 MB #Memory Used# [2024-12-31 09:31:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:31:06 [end_date_ymd] => 2024-12-31 09:31:06 [RateCDR] => 1 ) [2024-12-31 09:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:31:06' and `end` < '2024-12-31 09:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:31:18] Production.INFO: count ==1142 [2024-12-31 09:31:19] Production.ERROR: pbx CDR StartTime 2024-12-31 06:31:06 - End Time 2024-12-31 09:31:06 [2024-12-31 09:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142642', 'tblTempUsageDetail_20' ) start [2024-12-31 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142642', 'tblTempUsageDetail_20' ) end [2024-12-31 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142642', 'tblTempVendorCDR_20' ) start [2024-12-31 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142642', 'tblTempVendorCDR_20' ) end [2024-12-31 09:31:19] Production.INFO: ProcessCDR(1,14142642,1,1,2) [2024-12-31 09:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142642', 'tblTempUsageDetail_20' ) start [2024-12-31 09:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142642', 'tblTempUsageDetail_20' ) end [2024-12-31 09:31:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:31:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:31:24] Production.INFO: ==4209== Releasing lock... [2024-12-31 09:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:31:24] Production.INFO: 36.75 MB #Memory Used# [2024-12-31 09:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:32:04 [end_date_ymd] => 2024-12-31 09:32:04 [RateCDR] => 1 ) [2024-12-31 09:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:32:04' and `end` < '2024-12-31 09:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:32:18] Production.INFO: count ==1149 [2024-12-31 09:32:18] Production.ERROR: pbx CDR StartTime 2024-12-31 06:32:04 - End Time 2024-12-31 09:32:04 [2024-12-31 09:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142647', 'tblTempUsageDetail_20' ) start [2024-12-31 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142647', 'tblTempUsageDetail_20' ) end [2024-12-31 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142647', 'tblTempVendorCDR_20' ) start [2024-12-31 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142647', 'tblTempVendorCDR_20' ) end [2024-12-31 09:32:18] Production.INFO: ProcessCDR(1,14142647,1,1,2) [2024-12-31 09:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142647', 'tblTempUsageDetail_20' ) start [2024-12-31 09:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142647', 'tblTempUsageDetail_20' ) end [2024-12-31 09:32:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:32:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:32:23] Production.INFO: ==4279== Releasing lock... [2024-12-31 09:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:32:23] Production.INFO: 36.5 MB #Memory Used# [2024-12-31 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:33:05 [end_date_ymd] => 2024-12-31 09:33:05 [RateCDR] => 1 ) [2024-12-31 09:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:33:05' and `end` < '2024-12-31 09:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:33:18] Production.INFO: count ==1154 [2024-12-31 09:33:18] Production.ERROR: pbx CDR StartTime 2024-12-31 06:33:05 - End Time 2024-12-31 09:33:05 [2024-12-31 09:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142652', 'tblTempUsageDetail_20' ) start [2024-12-31 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142652', 'tblTempUsageDetail_20' ) end [2024-12-31 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142652', 'tblTempVendorCDR_20' ) start [2024-12-31 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142652', 'tblTempVendorCDR_20' ) end [2024-12-31 09:33:19] Production.INFO: ProcessCDR(1,14142652,1,1,2) [2024-12-31 09:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142652', 'tblTempUsageDetail_20' ) start [2024-12-31 09:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142652', 'tblTempUsageDetail_20' ) end [2024-12-31 09:33:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:33:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:33:23] Production.INFO: ==4349== Releasing lock... [2024-12-31 09:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:33:23] Production.INFO: 36.75 MB #Memory Used# [2024-12-31 09:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:34:04 [end_date_ymd] => 2024-12-31 09:34:04 [RateCDR] => 1 ) [2024-12-31 09:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:34:04' and `end` < '2024-12-31 09:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:34:21] Production.INFO: count ==1172 [2024-12-31 09:34:21] Production.ERROR: pbx CDR StartTime 2024-12-31 06:34:04 - End Time 2024-12-31 09:34:04 [2024-12-31 09:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142657', 'tblTempUsageDetail_20' ) start [2024-12-31 09:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142657', 'tblTempUsageDetail_20' ) end [2024-12-31 09:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142657', 'tblTempVendorCDR_20' ) start [2024-12-31 09:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142657', 'tblTempVendorCDR_20' ) end [2024-12-31 09:34:22] Production.INFO: ProcessCDR(1,14142657,1,1,2) [2024-12-31 09:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142657', 'tblTempUsageDetail_20' ) start [2024-12-31 09:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142657', 'tblTempUsageDetail_20' ) end [2024-12-31 09:34:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:34:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:34:26] Production.INFO: ==4420== Releasing lock... [2024-12-31 09:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:34:26] Production.INFO: 37 MB #Memory Used# [2024-12-31 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:35:05 [end_date_ymd] => 2024-12-31 09:35:05 [RateCDR] => 1 ) [2024-12-31 09:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:35:05' and `end` < '2024-12-31 09:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:35:17] Production.INFO: count ==1191 [2024-12-31 09:35:18] Production.ERROR: pbx CDR StartTime 2024-12-31 06:35:05 - End Time 2024-12-31 09:35:05 [2024-12-31 09:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142662', 'tblTempUsageDetail_20' ) start [2024-12-31 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142662', 'tblTempUsageDetail_20' ) end [2024-12-31 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142662', 'tblTempVendorCDR_20' ) start [2024-12-31 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142662', 'tblTempVendorCDR_20' ) end [2024-12-31 09:35:18] Production.INFO: ProcessCDR(1,14142662,1,1,2) [2024-12-31 09:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142662', 'tblTempUsageDetail_20' ) start [2024-12-31 09:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142662', 'tblTempUsageDetail_20' ) end [2024-12-31 09:35:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:35:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:35:22] Production.INFO: ==4496== Releasing lock... [2024-12-31 09:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:35:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-31 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:36:05 [end_date_ymd] => 2024-12-31 09:36:05 [RateCDR] => 1 ) [2024-12-31 09:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:36:05' and `end` < '2024-12-31 09:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:36:18] Production.INFO: count ==1208 [2024-12-31 09:36:18] Production.ERROR: pbx CDR StartTime 2024-12-31 06:36:05 - End Time 2024-12-31 09:36:05 [2024-12-31 09:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142667', 'tblTempUsageDetail_20' ) start [2024-12-31 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142667', 'tblTempUsageDetail_20' ) end [2024-12-31 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142667', 'tblTempVendorCDR_20' ) start [2024-12-31 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142667', 'tblTempVendorCDR_20' ) end [2024-12-31 09:36:18] Production.INFO: ProcessCDR(1,14142667,1,1,2) [2024-12-31 09:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142667', 'tblTempUsageDetail_20' ) start [2024-12-31 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142667', 'tblTempUsageDetail_20' ) end [2024-12-31 09:36:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:36:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:36:23] Production.INFO: ==4566== Releasing lock... [2024-12-31 09:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:36:23] Production.INFO: 37.25 MB #Memory Used# [2024-12-31 09:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:37:04 [end_date_ymd] => 2024-12-31 09:37:04 [RateCDR] => 1 ) [2024-12-31 09:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:37:04' and `end` < '2024-12-31 09:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:37:18] Production.INFO: count ==1221 [2024-12-31 09:37:18] Production.ERROR: pbx CDR StartTime 2024-12-31 06:37:04 - End Time 2024-12-31 09:37:04 [2024-12-31 09:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142672', 'tblTempUsageDetail_20' ) start [2024-12-31 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142672', 'tblTempUsageDetail_20' ) end [2024-12-31 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142672', 'tblTempVendorCDR_20' ) start [2024-12-31 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142672', 'tblTempVendorCDR_20' ) end [2024-12-31 09:37:18] Production.INFO: ProcessCDR(1,14142672,1,1,2) [2024-12-31 09:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142672', 'tblTempUsageDetail_20' ) start [2024-12-31 09:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142672', 'tblTempUsageDetail_20' ) end [2024-12-31 09:37:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:37:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:37:23] Production.INFO: ==4650== Releasing lock... [2024-12-31 09:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:37:23] Production.INFO: 37 MB #Memory Used# [2024-12-31 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:38:05 [end_date_ymd] => 2024-12-31 09:38:05 [RateCDR] => 1 ) [2024-12-31 09:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:38:05' and `end` < '2024-12-31 09:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:38:18] Production.INFO: count ==1234 [2024-12-31 09:38:19] Production.ERROR: pbx CDR StartTime 2024-12-31 06:38:05 - End Time 2024-12-31 09:38:05 [2024-12-31 09:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142677', 'tblTempUsageDetail_20' ) start [2024-12-31 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142677', 'tblTempUsageDetail_20' ) end [2024-12-31 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142677', 'tblTempVendorCDR_20' ) start [2024-12-31 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142677', 'tblTempVendorCDR_20' ) end [2024-12-31 09:38:19] Production.INFO: ProcessCDR(1,14142677,1,1,2) [2024-12-31 09:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142677', 'tblTempUsageDetail_20' ) start [2024-12-31 09:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142677', 'tblTempUsageDetail_20' ) end [2024-12-31 09:38:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:38:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:38:23] Production.INFO: ==4722== Releasing lock... [2024-12-31 09:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:38:23] Production.INFO: 37.5 MB #Memory Used# [2024-12-31 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:39:05 [end_date_ymd] => 2024-12-31 09:39:05 [RateCDR] => 1 ) [2024-12-31 09:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:39:05' and `end` < '2024-12-31 09:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:39:17] Production.INFO: count ==1241 [2024-12-31 09:39:18] Production.ERROR: pbx CDR StartTime 2024-12-31 06:39:05 - End Time 2024-12-31 09:39:05 [2024-12-31 09:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142682', 'tblTempUsageDetail_20' ) start [2024-12-31 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142682', 'tblTempUsageDetail_20' ) end [2024-12-31 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142682', 'tblTempVendorCDR_20' ) start [2024-12-31 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142682', 'tblTempVendorCDR_20' ) end [2024-12-31 09:39:18] Production.INFO: ProcessCDR(1,14142682,1,1,2) [2024-12-31 09:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142682', 'tblTempUsageDetail_20' ) start [2024-12-31 09:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142682', 'tblTempUsageDetail_20' ) end [2024-12-31 09:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:39:22] Production.INFO: ==4794== Releasing lock... [2024-12-31 09:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:39:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-31 09:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:40:05 [end_date_ymd] => 2024-12-31 09:40:05 [RateCDR] => 1 ) [2024-12-31 09:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:40:05' and `end` < '2024-12-31 09:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:40:19] Production.INFO: count ==1265 [2024-12-31 09:40:20] Production.ERROR: pbx CDR StartTime 2024-12-31 06:40:05 - End Time 2024-12-31 09:40:05 [2024-12-31 09:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142688', 'tblTempUsageDetail_20' ) start [2024-12-31 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142688', 'tblTempUsageDetail_20' ) end [2024-12-31 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142688', 'tblTempVendorCDR_20' ) start [2024-12-31 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142688', 'tblTempVendorCDR_20' ) end [2024-12-31 09:40:20] Production.INFO: ProcessCDR(1,14142688,1,1,2) [2024-12-31 09:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142688', 'tblTempUsageDetail_20' ) start [2024-12-31 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142688', 'tblTempUsageDetail_20' ) end [2024-12-31 09:40:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:40:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:40:24] Production.INFO: ==4866== Releasing lock... [2024-12-31 09:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:40:24] Production.INFO: 37.5 MB #Memory Used# [2024-12-31 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:41:05 [end_date_ymd] => 2024-12-31 09:41:05 [RateCDR] => 1 ) [2024-12-31 09:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:41:05' and `end` < '2024-12-31 09:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:41:18] Production.INFO: count ==1323 [2024-12-31 09:41:19] Production.ERROR: pbx CDR StartTime 2024-12-31 06:41:05 - End Time 2024-12-31 09:41:05 [2024-12-31 09:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142693', 'tblTempUsageDetail_20' ) start [2024-12-31 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142693', 'tblTempUsageDetail_20' ) end [2024-12-31 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142693', 'tblTempVendorCDR_20' ) start [2024-12-31 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142693', 'tblTempVendorCDR_20' ) end [2024-12-31 09:41:19] Production.INFO: ProcessCDR(1,14142693,1,1,2) [2024-12-31 09:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142693', 'tblTempUsageDetail_20' ) start [2024-12-31 09:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142693', 'tblTempUsageDetail_20' ) end [2024-12-31 09:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:41:22] Production.INFO: ==4940== Releasing lock... [2024-12-31 09:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:41:22] Production.INFO: 38 MB #Memory Used# [2024-12-31 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:42:05 [end_date_ymd] => 2024-12-31 09:42:05 [RateCDR] => 1 ) [2024-12-31 09:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:42:05' and `end` < '2024-12-31 09:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:42:26] Production.INFO: count ==1349 [2024-12-31 09:42:27] Production.ERROR: pbx CDR StartTime 2024-12-31 06:42:05 - End Time 2024-12-31 09:42:05 [2024-12-31 09:42:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142698', 'tblTempUsageDetail_20' ) start [2024-12-31 09:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142698', 'tblTempUsageDetail_20' ) end [2024-12-31 09:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142698', 'tblTempVendorCDR_20' ) start [2024-12-31 09:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142698', 'tblTempVendorCDR_20' ) end [2024-12-31 09:42:27] Production.INFO: ProcessCDR(1,14142698,1,1,2) [2024-12-31 09:42:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:42:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:42:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:42:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142698', 'tblTempUsageDetail_20' ) start [2024-12-31 09:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142698', 'tblTempUsageDetail_20' ) end [2024-12-31 09:42:32] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:42:32] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:42:32] Production.INFO: ==5009== Releasing lock... [2024-12-31 09:42:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:42:32] Production.INFO: 38 MB #Memory Used# [2024-12-31 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:43:05 [end_date_ymd] => 2024-12-31 09:43:05 [RateCDR] => 1 ) [2024-12-31 09:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:43:05' and `end` < '2024-12-31 09:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:43:20] Production.INFO: count ==1356 [2024-12-31 09:43:21] Production.ERROR: pbx CDR StartTime 2024-12-31 06:43:05 - End Time 2024-12-31 09:43:05 [2024-12-31 09:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142703', 'tblTempUsageDetail_20' ) start [2024-12-31 09:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142703', 'tblTempUsageDetail_20' ) end [2024-12-31 09:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142703', 'tblTempVendorCDR_20' ) start [2024-12-31 09:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142703', 'tblTempVendorCDR_20' ) end [2024-12-31 09:43:21] Production.INFO: ProcessCDR(1,14142703,1,1,2) [2024-12-31 09:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142703', 'tblTempUsageDetail_20' ) start [2024-12-31 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142703', 'tblTempUsageDetail_20' ) end [2024-12-31 09:43:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:43:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:43:24] Production.INFO: ==5083== Releasing lock... [2024-12-31 09:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:43:24] Production.INFO: 38.25 MB #Memory Used# [2024-12-31 09:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:44:04 [end_date_ymd] => 2024-12-31 09:44:04 [RateCDR] => 1 ) [2024-12-31 09:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:44:04' and `end` < '2024-12-31 09:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:44:17] Production.INFO: count ==1371 [2024-12-31 09:44:18] Production.ERROR: pbx CDR StartTime 2024-12-31 06:44:04 - End Time 2024-12-31 09:44:04 [2024-12-31 09:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142708', 'tblTempUsageDetail_20' ) start [2024-12-31 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142708', 'tblTempUsageDetail_20' ) end [2024-12-31 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142708', 'tblTempVendorCDR_20' ) start [2024-12-31 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142708', 'tblTempVendorCDR_20' ) end [2024-12-31 09:44:18] Production.INFO: ProcessCDR(1,14142708,1,1,2) [2024-12-31 09:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142708', 'tblTempUsageDetail_20' ) start [2024-12-31 09:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142708', 'tblTempUsageDetail_20' ) end [2024-12-31 09:44:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:44:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:44:23] Production.INFO: ==5155== Releasing lock... [2024-12-31 09:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:44:23] Production.INFO: 38.25 MB #Memory Used# [2024-12-31 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:45:05 [end_date_ymd] => 2024-12-31 09:45:05 [RateCDR] => 1 ) [2024-12-31 09:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:45:05' and `end` < '2024-12-31 09:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:45:19] Production.INFO: count ==1393 [2024-12-31 09:45:19] Production.ERROR: pbx CDR StartTime 2024-12-31 06:45:05 - End Time 2024-12-31 09:45:05 [2024-12-31 09:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142713', 'tblTempUsageDetail_20' ) start [2024-12-31 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142713', 'tblTempUsageDetail_20' ) end [2024-12-31 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142713', 'tblTempVendorCDR_20' ) start [2024-12-31 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142713', 'tblTempVendorCDR_20' ) end [2024-12-31 09:45:19] Production.INFO: ProcessCDR(1,14142713,1,1,2) [2024-12-31 09:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142713', 'tblTempUsageDetail_20' ) start [2024-12-31 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142713', 'tblTempUsageDetail_20' ) end [2024-12-31 09:45:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:45:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:45:24] Production.INFO: ==5263== Releasing lock... [2024-12-31 09:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:45:24] Production.INFO: 38.5 MB #Memory Used# [2024-12-31 09:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:46:04 [end_date_ymd] => 2024-12-31 09:46:04 [RateCDR] => 1 ) [2024-12-31 09:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:46:04' and `end` < '2024-12-31 09:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:46:17] Production.INFO: count ==1406 [2024-12-31 09:46:18] Production.ERROR: pbx CDR StartTime 2024-12-31 06:46:04 - End Time 2024-12-31 09:46:04 [2024-12-31 09:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142718', 'tblTempUsageDetail_20' ) start [2024-12-31 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142718', 'tblTempUsageDetail_20' ) end [2024-12-31 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142718', 'tblTempVendorCDR_20' ) start [2024-12-31 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142718', 'tblTempVendorCDR_20' ) end [2024-12-31 09:46:18] Production.INFO: ProcessCDR(1,14142718,1,1,2) [2024-12-31 09:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142718', 'tblTempUsageDetail_20' ) start [2024-12-31 09:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142718', 'tblTempUsageDetail_20' ) end [2024-12-31 09:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:46:22] Production.INFO: ==5332== Releasing lock... [2024-12-31 09:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:46:22] Production.INFO: 38.75 MB #Memory Used# [2024-12-31 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:47:05 [end_date_ymd] => 2024-12-31 09:47:05 [RateCDR] => 1 ) [2024-12-31 09:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:47:05' and `end` < '2024-12-31 09:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:47:18] Production.INFO: count ==1413 [2024-12-31 09:47:18] Production.ERROR: pbx CDR StartTime 2024-12-31 06:47:05 - End Time 2024-12-31 09:47:05 [2024-12-31 09:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142723', 'tblTempUsageDetail_20' ) start [2024-12-31 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142723', 'tblTempUsageDetail_20' ) end [2024-12-31 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142723', 'tblTempVendorCDR_20' ) start [2024-12-31 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142723', 'tblTempVendorCDR_20' ) end [2024-12-31 09:47:18] Production.INFO: ProcessCDR(1,14142723,1,1,2) [2024-12-31 09:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142723', 'tblTempUsageDetail_20' ) start [2024-12-31 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142723', 'tblTempUsageDetail_20' ) end [2024-12-31 09:47:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:47:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:47:23] Production.INFO: ==5405== Releasing lock... [2024-12-31 09:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:47:23] Production.INFO: 38.75 MB #Memory Used# [2024-12-31 09:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:48:04 [end_date_ymd] => 2024-12-31 09:48:04 [RateCDR] => 1 ) [2024-12-31 09:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:48:04' and `end` < '2024-12-31 09:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:48:17] Production.INFO: count ==1427 [2024-12-31 09:48:18] Production.ERROR: pbx CDR StartTime 2024-12-31 06:48:04 - End Time 2024-12-31 09:48:04 [2024-12-31 09:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142728', 'tblTempUsageDetail_20' ) start [2024-12-31 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142728', 'tblTempUsageDetail_20' ) end [2024-12-31 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142728', 'tblTempVendorCDR_20' ) start [2024-12-31 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142728', 'tblTempVendorCDR_20' ) end [2024-12-31 09:48:18] Production.INFO: ProcessCDR(1,14142728,1,1,2) [2024-12-31 09:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142728', 'tblTempUsageDetail_20' ) start [2024-12-31 09:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142728', 'tblTempUsageDetail_20' ) end [2024-12-31 09:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:48:22] Production.INFO: ==5476== Releasing lock... [2024-12-31 09:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:48:22] Production.INFO: 39 MB #Memory Used# [2024-12-31 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:49:05 [end_date_ymd] => 2024-12-31 09:49:05 [RateCDR] => 1 ) [2024-12-31 09:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:49:05' and `end` < '2024-12-31 09:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:49:17] Production.INFO: count ==1430 [2024-12-31 09:49:18] Production.ERROR: pbx CDR StartTime 2024-12-31 06:49:05 - End Time 2024-12-31 09:49:05 [2024-12-31 09:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142733', 'tblTempUsageDetail_20' ) start [2024-12-31 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142733', 'tblTempUsageDetail_20' ) end [2024-12-31 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142733', 'tblTempVendorCDR_20' ) start [2024-12-31 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142733', 'tblTempVendorCDR_20' ) end [2024-12-31 09:49:18] Production.INFO: ProcessCDR(1,14142733,1,1,2) [2024-12-31 09:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142733', 'tblTempUsageDetail_20' ) start [2024-12-31 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142733', 'tblTempUsageDetail_20' ) end [2024-12-31 09:49:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:49:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:49:23] Production.INFO: ==5549== Releasing lock... [2024-12-31 09:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:49:23] Production.INFO: 38.75 MB #Memory Used# [2024-12-31 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:50:06 [end_date_ymd] => 2024-12-31 09:50:06 [RateCDR] => 1 ) [2024-12-31 09:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:50:06' and `end` < '2024-12-31 09:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:50:23] Production.INFO: count ==1449 [2024-12-31 09:50:24] Production.ERROR: pbx CDR StartTime 2024-12-31 06:50:06 - End Time 2024-12-31 09:50:06 [2024-12-31 09:50:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142738', 'tblTempUsageDetail_20' ) start [2024-12-31 09:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142738', 'tblTempUsageDetail_20' ) end [2024-12-31 09:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142738', 'tblTempVendorCDR_20' ) start [2024-12-31 09:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142738', 'tblTempVendorCDR_20' ) end [2024-12-31 09:50:24] Production.INFO: ProcessCDR(1,14142738,1,1,2) [2024-12-31 09:50:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142738', 'tblTempUsageDetail_20' ) start [2024-12-31 09:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142738', 'tblTempUsageDetail_20' ) end [2024-12-31 09:50:28] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:50:28] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:50:29] Production.INFO: ==5623== Releasing lock... [2024-12-31 09:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:50:29] Production.INFO: 39 MB #Memory Used# [2024-12-31 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:51:05 [end_date_ymd] => 2024-12-31 09:51:05 [RateCDR] => 1 ) [2024-12-31 09:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:51:05' and `end` < '2024-12-31 09:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:51:18] Production.INFO: count ==1499 [2024-12-31 09:51:18] Production.ERROR: pbx CDR StartTime 2024-12-31 06:51:05 - End Time 2024-12-31 09:51:05 [2024-12-31 09:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142744', 'tblTempUsageDetail_20' ) start [2024-12-31 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142744', 'tblTempUsageDetail_20' ) end [2024-12-31 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142744', 'tblTempVendorCDR_20' ) start [2024-12-31 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142744', 'tblTempVendorCDR_20' ) end [2024-12-31 09:51:18] Production.INFO: ProcessCDR(1,14142744,1,1,2) [2024-12-31 09:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142744', 'tblTempUsageDetail_20' ) start [2024-12-31 09:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142744', 'tblTempUsageDetail_20' ) end [2024-12-31 09:51:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:51:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:51:23] Production.INFO: ==5698== Releasing lock... [2024-12-31 09:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:51:23] Production.INFO: 39.25 MB #Memory Used# [2024-12-31 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:52:05 [end_date_ymd] => 2024-12-31 09:52:05 [RateCDR] => 1 ) [2024-12-31 09:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:52:05' and `end` < '2024-12-31 09:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:52:17] Production.INFO: count ==1507 [2024-12-31 09:52:18] Production.ERROR: pbx CDR StartTime 2024-12-31 06:52:05 - End Time 2024-12-31 09:52:05 [2024-12-31 09:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142749', 'tblTempUsageDetail_20' ) start [2024-12-31 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142749', 'tblTempUsageDetail_20' ) end [2024-12-31 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142749', 'tblTempVendorCDR_20' ) start [2024-12-31 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142749', 'tblTempVendorCDR_20' ) end [2024-12-31 09:52:18] Production.INFO: ProcessCDR(1,14142749,1,1,2) [2024-12-31 09:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142749', 'tblTempUsageDetail_20' ) start [2024-12-31 09:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142749', 'tblTempUsageDetail_20' ) end [2024-12-31 09:52:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:52:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:52:23] Production.INFO: ==5769== Releasing lock... [2024-12-31 09:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:52:23] Production.INFO: 39.25 MB #Memory Used# [2024-12-31 09:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:53:04 [end_date_ymd] => 2024-12-31 09:53:04 [RateCDR] => 1 ) [2024-12-31 09:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:53:04' and `end` < '2024-12-31 09:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:53:18] Production.INFO: count ==1519 [2024-12-31 09:53:18] Production.ERROR: pbx CDR StartTime 2024-12-31 06:53:04 - End Time 2024-12-31 09:53:04 [2024-12-31 09:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142754', 'tblTempUsageDetail_20' ) start [2024-12-31 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142754', 'tblTempUsageDetail_20' ) end [2024-12-31 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142754', 'tblTempVendorCDR_20' ) start [2024-12-31 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142754', 'tblTempVendorCDR_20' ) end [2024-12-31 09:53:18] Production.INFO: ProcessCDR(1,14142754,1,1,2) [2024-12-31 09:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142754', 'tblTempUsageDetail_20' ) start [2024-12-31 09:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142754', 'tblTempUsageDetail_20' ) end [2024-12-31 09:53:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:53:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:53:23] Production.INFO: ==5843== Releasing lock... [2024-12-31 09:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:53:23] Production.INFO: 39.5 MB #Memory Used# [2024-12-31 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:54:05 [end_date_ymd] => 2024-12-31 09:54:05 [RateCDR] => 1 ) [2024-12-31 09:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:54:05' and `end` < '2024-12-31 09:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:54:20] Production.INFO: count ==1534 [2024-12-31 09:54:21] Production.ERROR: pbx CDR StartTime 2024-12-31 06:54:05 - End Time 2024-12-31 09:54:05 [2024-12-31 09:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142759', 'tblTempUsageDetail_20' ) start [2024-12-31 09:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142759', 'tblTempUsageDetail_20' ) end [2024-12-31 09:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142759', 'tblTempVendorCDR_20' ) start [2024-12-31 09:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142759', 'tblTempVendorCDR_20' ) end [2024-12-31 09:54:21] Production.INFO: ProcessCDR(1,14142759,1,1,2) [2024-12-31 09:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142759', 'tblTempUsageDetail_20' ) start [2024-12-31 09:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142759', 'tblTempUsageDetail_20' ) end [2024-12-31 09:54:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:54:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:54:25] Production.INFO: ==5915== Releasing lock... [2024-12-31 09:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:54:25] Production.INFO: 39.75 MB #Memory Used# [2024-12-31 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:55:05 [end_date_ymd] => 2024-12-31 09:55:05 [RateCDR] => 1 ) [2024-12-31 09:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:55:05' and `end` < '2024-12-31 09:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:55:19] Production.INFO: count ==1556 [2024-12-31 09:55:20] Production.ERROR: pbx CDR StartTime 2024-12-31 06:55:05 - End Time 2024-12-31 09:55:05 [2024-12-31 09:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142764', 'tblTempUsageDetail_20' ) start [2024-12-31 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142764', 'tblTempUsageDetail_20' ) end [2024-12-31 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142764', 'tblTempVendorCDR_20' ) start [2024-12-31 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142764', 'tblTempVendorCDR_20' ) end [2024-12-31 09:55:20] Production.INFO: ProcessCDR(1,14142764,1,1,2) [2024-12-31 09:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142764', 'tblTempUsageDetail_20' ) start [2024-12-31 09:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142764', 'tblTempUsageDetail_20' ) end [2024-12-31 09:55:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:55:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:55:23] Production.INFO: ==5989== Releasing lock... [2024-12-31 09:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:55:23] Production.INFO: 39.75 MB #Memory Used# [2024-12-31 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:56:04 [end_date_ymd] => 2024-12-31 09:56:04 [RateCDR] => 1 ) [2024-12-31 09:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:56:04' and `end` < '2024-12-31 09:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:56:17] Production.INFO: count ==1559 [2024-12-31 09:56:18] Production.ERROR: pbx CDR StartTime 2024-12-31 06:56:04 - End Time 2024-12-31 09:56:04 [2024-12-31 09:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142769', 'tblTempUsageDetail_20' ) start [2024-12-31 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142769', 'tblTempUsageDetail_20' ) end [2024-12-31 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142769', 'tblTempVendorCDR_20' ) start [2024-12-31 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142769', 'tblTempVendorCDR_20' ) end [2024-12-31 09:56:18] Production.INFO: ProcessCDR(1,14142769,1,1,2) [2024-12-31 09:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142769', 'tblTempUsageDetail_20' ) start [2024-12-31 09:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142769', 'tblTempUsageDetail_20' ) end [2024-12-31 09:56:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:56:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:56:23] Production.INFO: ==6061== Releasing lock... [2024-12-31 09:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:56:23] Production.INFO: 39.75 MB #Memory Used# [2024-12-31 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:57:05 [end_date_ymd] => 2024-12-31 09:57:05 [RateCDR] => 1 ) [2024-12-31 09:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:57:05' and `end` < '2024-12-31 09:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:57:18] Production.INFO: count ==1580 [2024-12-31 09:57:18] Production.ERROR: pbx CDR StartTime 2024-12-31 06:57:05 - End Time 2024-12-31 09:57:05 [2024-12-31 09:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142774', 'tblTempUsageDetail_20' ) start [2024-12-31 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142774', 'tblTempUsageDetail_20' ) end [2024-12-31 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142774', 'tblTempVendorCDR_20' ) start [2024-12-31 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142774', 'tblTempVendorCDR_20' ) end [2024-12-31 09:57:18] Production.INFO: ProcessCDR(1,14142774,1,1,2) [2024-12-31 09:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142774', 'tblTempUsageDetail_20' ) start [2024-12-31 09:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142774', 'tblTempUsageDetail_20' ) end [2024-12-31 09:57:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:57:23] Production.INFO: ==6134== Releasing lock... [2024-12-31 09:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:57:23] Production.INFO: 40.5 MB #Memory Used# [2024-12-31 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:58:05 [end_date_ymd] => 2024-12-31 09:58:05 [RateCDR] => 1 ) [2024-12-31 09:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:58:05' and `end` < '2024-12-31 09:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:58:18] Production.INFO: count ==1597 [2024-12-31 09:58:19] Production.ERROR: pbx CDR StartTime 2024-12-31 06:58:05 - End Time 2024-12-31 09:58:05 [2024-12-31 09:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142779', 'tblTempUsageDetail_20' ) start [2024-12-31 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142779', 'tblTempUsageDetail_20' ) end [2024-12-31 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142779', 'tblTempVendorCDR_20' ) start [2024-12-31 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142779', 'tblTempVendorCDR_20' ) end [2024-12-31 09:58:19] Production.INFO: ProcessCDR(1,14142779,1,1,2) [2024-12-31 09:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142779', 'tblTempUsageDetail_20' ) start [2024-12-31 09:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142779', 'tblTempUsageDetail_20' ) end [2024-12-31 09:58:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:58:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:58:23] Production.INFO: ==6206== Releasing lock... [2024-12-31 09:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:58:23] Production.INFO: 40 MB #Memory Used# [2024-12-31 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 06:59:05 [end_date_ymd] => 2024-12-31 09:59:05 [RateCDR] => 1 ) [2024-12-31 09:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 06:59:05' and `end` < '2024-12-31 09:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 09:59:18] Production.INFO: count ==1609 [2024-12-31 09:59:18] Production.ERROR: pbx CDR StartTime 2024-12-31 06:59:05 - End Time 2024-12-31 09:59:05 [2024-12-31 09:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142784', 'tblTempUsageDetail_20' ) start [2024-12-31 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142784', 'tblTempUsageDetail_20' ) end [2024-12-31 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142784', 'tblTempVendorCDR_20' ) start [2024-12-31 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142784', 'tblTempVendorCDR_20' ) end [2024-12-31 09:59:18] Production.INFO: ProcessCDR(1,14142784,1,1,2) [2024-12-31 09:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 09:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142784', 'tblTempUsageDetail_20' ) start [2024-12-31 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142784', 'tblTempUsageDetail_20' ) end [2024-12-31 09:59:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 09:59:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 09:59:23] Production.INFO: ==6278== Releasing lock... [2024-12-31 09:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 09:59:23] Production.INFO: 40.25 MB #Memory Used# [2024-12-31 10:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:00:05 [end_date_ymd] => 2024-12-31 10:00:05 [RateCDR] => 1 ) [2024-12-31 10:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:00:05' and `end` < '2024-12-31 10:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:00:21] Production.INFO: count ==1633 [2024-12-31 10:00:22] Production.ERROR: pbx CDR StartTime 2024-12-31 07:00:05 - End Time 2024-12-31 10:00:05 [2024-12-31 10:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142790', 'tblTempUsageDetail_20' ) start [2024-12-31 10:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142790', 'tblTempUsageDetail_20' ) end [2024-12-31 10:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142790', 'tblTempVendorCDR_20' ) start [2024-12-31 10:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142790', 'tblTempVendorCDR_20' ) end [2024-12-31 10:00:22] Production.INFO: ProcessCDR(1,14142790,1,1,2) [2024-12-31 10:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142790', 'tblTempUsageDetail_20' ) start [2024-12-31 10:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142790', 'tblTempUsageDetail_20' ) end [2024-12-31 10:00:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:00:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:00:26] Production.INFO: ==6391== Releasing lock... [2024-12-31 10:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:00:26] Production.INFO: 40.25 MB #Memory Used# [2024-12-31 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:01:05 [end_date_ymd] => 2024-12-31 10:01:05 [RateCDR] => 1 ) [2024-12-31 10:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:01:05' and `end` < '2024-12-31 10:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:01:19] Production.INFO: count ==1696 [2024-12-31 10:01:19] Production.ERROR: pbx CDR StartTime 2024-12-31 07:01:05 - End Time 2024-12-31 10:01:05 [2024-12-31 10:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142795', 'tblTempUsageDetail_20' ) start [2024-12-31 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142795', 'tblTempUsageDetail_20' ) end [2024-12-31 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142795', 'tblTempVendorCDR_20' ) start [2024-12-31 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142795', 'tblTempVendorCDR_20' ) end [2024-12-31 10:01:19] Production.INFO: ProcessCDR(1,14142795,1,1,2) [2024-12-31 10:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142795', 'tblTempUsageDetail_20' ) start [2024-12-31 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142795', 'tblTempUsageDetail_20' ) end [2024-12-31 10:01:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:01:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:01:24] Production.INFO: ==6475== Releasing lock... [2024-12-31 10:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:01:24] Production.INFO: 41 MB #Memory Used# [2024-12-31 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:02:05 [end_date_ymd] => 2024-12-31 10:02:05 [RateCDR] => 1 ) [2024-12-31 10:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:02:05' and `end` < '2024-12-31 10:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:02:18] Production.INFO: count ==1714 [2024-12-31 10:02:18] Production.ERROR: pbx CDR StartTime 2024-12-31 07:02:05 - End Time 2024-12-31 10:02:05 [2024-12-31 10:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142800', 'tblTempUsageDetail_20' ) start [2024-12-31 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142800', 'tblTempUsageDetail_20' ) end [2024-12-31 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142800', 'tblTempVendorCDR_20' ) start [2024-12-31 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142800', 'tblTempVendorCDR_20' ) end [2024-12-31 10:02:18] Production.INFO: ProcessCDR(1,14142800,1,1,2) [2024-12-31 10:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142800', 'tblTempUsageDetail_20' ) start [2024-12-31 10:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142800', 'tblTempUsageDetail_20' ) end [2024-12-31 10:02:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:02:23] Production.INFO: ==6551== Releasing lock... [2024-12-31 10:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:02:23] Production.INFO: 41.25 MB #Memory Used# [2024-12-31 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:03:05 [end_date_ymd] => 2024-12-31 10:03:05 [RateCDR] => 1 ) [2024-12-31 10:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:03:05' and `end` < '2024-12-31 10:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:03:21] Production.INFO: count ==1735 [2024-12-31 10:03:21] Production.ERROR: pbx CDR StartTime 2024-12-31 07:03:05 - End Time 2024-12-31 10:03:05 [2024-12-31 10:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142805', 'tblTempUsageDetail_20' ) start [2024-12-31 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142805', 'tblTempUsageDetail_20' ) end [2024-12-31 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142805', 'tblTempVendorCDR_20' ) start [2024-12-31 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142805', 'tblTempVendorCDR_20' ) end [2024-12-31 10:03:21] Production.INFO: ProcessCDR(1,14142805,1,1,2) [2024-12-31 10:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142805', 'tblTempUsageDetail_20' ) start [2024-12-31 10:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142805', 'tblTempUsageDetail_20' ) end [2024-12-31 10:03:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:03:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:03:26] Production.INFO: ==6622== Releasing lock... [2024-12-31 10:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:03:26] Production.INFO: 40.75 MB #Memory Used# [2024-12-31 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:04:05 [end_date_ymd] => 2024-12-31 10:04:05 [RateCDR] => 1 ) [2024-12-31 10:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:04:05' and `end` < '2024-12-31 10:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:04:22] Production.INFO: count ==1763 [2024-12-31 10:04:23] Production.ERROR: pbx CDR StartTime 2024-12-31 07:04:05 - End Time 2024-12-31 10:04:05 [2024-12-31 10:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142810', 'tblTempUsageDetail_20' ) start [2024-12-31 10:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142810', 'tblTempUsageDetail_20' ) end [2024-12-31 10:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142810', 'tblTempVendorCDR_20' ) start [2024-12-31 10:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142810', 'tblTempVendorCDR_20' ) end [2024-12-31 10:04:23] Production.INFO: ProcessCDR(1,14142810,1,1,2) [2024-12-31 10:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142810', 'tblTempUsageDetail_20' ) start [2024-12-31 10:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142810', 'tblTempUsageDetail_20' ) end [2024-12-31 10:04:28] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:04:28] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:04:28] Production.INFO: ==6691== Releasing lock... [2024-12-31 10:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:04:28] Production.INFO: 41.25 MB #Memory Used# [2024-12-31 10:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:05:04 [end_date_ymd] => 2024-12-31 10:05:04 [RateCDR] => 1 ) [2024-12-31 10:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:05:04' and `end` < '2024-12-31 10:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:05:21] Production.INFO: count ==1790 [2024-12-31 10:05:22] Production.ERROR: pbx CDR StartTime 2024-12-31 07:05:04 - End Time 2024-12-31 10:05:04 [2024-12-31 10:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142815', 'tblTempUsageDetail_20' ) start [2024-12-31 10:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142815', 'tblTempUsageDetail_20' ) end [2024-12-31 10:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142815', 'tblTempVendorCDR_20' ) start [2024-12-31 10:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142815', 'tblTempVendorCDR_20' ) end [2024-12-31 10:05:22] Production.INFO: ProcessCDR(1,14142815,1,1,2) [2024-12-31 10:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142815', 'tblTempUsageDetail_20' ) start [2024-12-31 10:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142815', 'tblTempUsageDetail_20' ) end [2024-12-31 10:05:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:05:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:05:26] Production.INFO: ==6761== Releasing lock... [2024-12-31 10:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:05:26] Production.INFO: 41.5 MB #Memory Used# [2024-12-31 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:06:05 [end_date_ymd] => 2024-12-31 10:06:05 [RateCDR] => 1 ) [2024-12-31 10:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:06:05' and `end` < '2024-12-31 10:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:06:20] Production.INFO: count ==1806 [2024-12-31 10:06:21] Production.ERROR: pbx CDR StartTime 2024-12-31 07:06:05 - End Time 2024-12-31 10:06:05 [2024-12-31 10:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142820', 'tblTempUsageDetail_20' ) start [2024-12-31 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142820', 'tblTempUsageDetail_20' ) end [2024-12-31 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142820', 'tblTempVendorCDR_20' ) start [2024-12-31 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142820', 'tblTempVendorCDR_20' ) end [2024-12-31 10:06:21] Production.INFO: ProcessCDR(1,14142820,1,1,2) [2024-12-31 10:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142820', 'tblTempUsageDetail_20' ) start [2024-12-31 10:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142820', 'tblTempUsageDetail_20' ) end [2024-12-31 10:06:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:06:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:06:25] Production.INFO: ==6833== Releasing lock... [2024-12-31 10:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:06:25] Production.INFO: 41.5 MB #Memory Used# [2024-12-31 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:07:05 [end_date_ymd] => 2024-12-31 10:07:05 [RateCDR] => 1 ) [2024-12-31 10:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:07:05' and `end` < '2024-12-31 10:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:07:19] Production.INFO: count ==1810 [2024-12-31 10:07:20] Production.ERROR: pbx CDR StartTime 2024-12-31 07:07:05 - End Time 2024-12-31 10:07:05 [2024-12-31 10:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142825', 'tblTempUsageDetail_20' ) start [2024-12-31 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142825', 'tblTempUsageDetail_20' ) end [2024-12-31 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142825', 'tblTempVendorCDR_20' ) start [2024-12-31 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142825', 'tblTempVendorCDR_20' ) end [2024-12-31 10:07:20] Production.INFO: ProcessCDR(1,14142825,1,1,2) [2024-12-31 10:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142825', 'tblTempUsageDetail_20' ) start [2024-12-31 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142825', 'tblTempUsageDetail_20' ) end [2024-12-31 10:07:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:07:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:07:25] Production.INFO: ==6903== Releasing lock... [2024-12-31 10:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:07:25] Production.INFO: 42 MB #Memory Used# [2024-12-31 10:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:08:04 [end_date_ymd] => 2024-12-31 10:08:04 [RateCDR] => 1 ) [2024-12-31 10:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:08:04' and `end` < '2024-12-31 10:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:08:18] Production.INFO: count ==1846 [2024-12-31 10:08:18] Production.ERROR: pbx CDR StartTime 2024-12-31 07:08:04 - End Time 2024-12-31 10:08:04 [2024-12-31 10:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142830', 'tblTempUsageDetail_20' ) start [2024-12-31 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142830', 'tblTempUsageDetail_20' ) end [2024-12-31 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142830', 'tblTempVendorCDR_20' ) start [2024-12-31 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142830', 'tblTempVendorCDR_20' ) end [2024-12-31 10:08:18] Production.INFO: ProcessCDR(1,14142830,1,1,2) [2024-12-31 10:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142830', 'tblTempUsageDetail_20' ) start [2024-12-31 10:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142830', 'tblTempUsageDetail_20' ) end [2024-12-31 10:08:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:08:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:08:23] Production.INFO: ==6979== Releasing lock... [2024-12-31 10:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:08:23] Production.INFO: 42.25 MB #Memory Used# [2024-12-31 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:09:05 [end_date_ymd] => 2024-12-31 10:09:05 [RateCDR] => 1 ) [2024-12-31 10:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:09:05' and `end` < '2024-12-31 10:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:09:18] Production.INFO: count ==1877 [2024-12-31 10:09:19] Production.ERROR: pbx CDR StartTime 2024-12-31 07:09:05 - End Time 2024-12-31 10:09:05 [2024-12-31 10:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142835', 'tblTempUsageDetail_20' ) start [2024-12-31 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142835', 'tblTempUsageDetail_20' ) end [2024-12-31 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142835', 'tblTempVendorCDR_20' ) start [2024-12-31 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142835', 'tblTempVendorCDR_20' ) end [2024-12-31 10:09:19] Production.INFO: ProcessCDR(1,14142835,1,1,2) [2024-12-31 10:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142835', 'tblTempUsageDetail_20' ) start [2024-12-31 10:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142835', 'tblTempUsageDetail_20' ) end [2024-12-31 10:09:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:09:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:09:23] Production.INFO: ==7052== Releasing lock... [2024-12-31 10:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:09:23] Production.INFO: 42.25 MB #Memory Used# [2024-12-31 10:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:10:05 [end_date_ymd] => 2024-12-31 10:10:05 [RateCDR] => 1 ) [2024-12-31 10:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:10:05' and `end` < '2024-12-31 10:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:10:18] Production.INFO: count ==1900 [2024-12-31 10:10:19] Production.ERROR: pbx CDR StartTime 2024-12-31 07:10:05 - End Time 2024-12-31 10:10:05 [2024-12-31 10:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142840', 'tblTempUsageDetail_20' ) start [2024-12-31 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142840', 'tblTempUsageDetail_20' ) end [2024-12-31 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142840', 'tblTempVendorCDR_20' ) start [2024-12-31 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142840', 'tblTempVendorCDR_20' ) end [2024-12-31 10:10:19] Production.INFO: ProcessCDR(1,14142840,1,1,2) [2024-12-31 10:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142840', 'tblTempUsageDetail_20' ) start [2024-12-31 10:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142840', 'tblTempUsageDetail_20' ) end [2024-12-31 10:10:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:10:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:10:24] Production.INFO: ==7126== Releasing lock... [2024-12-31 10:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:10:24] Production.INFO: 42.25 MB #Memory Used# [2024-12-31 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:11:05 [end_date_ymd] => 2024-12-31 10:11:05 [RateCDR] => 1 ) [2024-12-31 10:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:11:05' and `end` < '2024-12-31 10:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:11:26] Production.INFO: count ==1975 [2024-12-31 10:11:27] Production.ERROR: pbx CDR StartTime 2024-12-31 07:11:05 - End Time 2024-12-31 10:11:05 [2024-12-31 10:11:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142846', 'tblTempUsageDetail_20' ) start [2024-12-31 10:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142846', 'tblTempUsageDetail_20' ) end [2024-12-31 10:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142846', 'tblTempVendorCDR_20' ) start [2024-12-31 10:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142846', 'tblTempVendorCDR_20' ) end [2024-12-31 10:11:27] Production.INFO: ProcessCDR(1,14142846,1,1,2) [2024-12-31 10:11:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:11:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:11:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:11:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142846', 'tblTempUsageDetail_20' ) start [2024-12-31 10:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142846', 'tblTempUsageDetail_20' ) end [2024-12-31 10:11:32] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:11:32] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:11:32] Production.INFO: ==7200== Releasing lock... [2024-12-31 10:11:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:11:32] Production.INFO: 43 MB #Memory Used# [2024-12-31 10:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:12:04 [end_date_ymd] => 2024-12-31 10:12:04 [RateCDR] => 1 ) [2024-12-31 10:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:12:04' and `end` < '2024-12-31 10:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:12:21] Production.INFO: count ==1988 [2024-12-31 10:12:22] Production.ERROR: pbx CDR StartTime 2024-12-31 07:12:04 - End Time 2024-12-31 10:12:04 [2024-12-31 10:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142851', 'tblTempUsageDetail_20' ) start [2024-12-31 10:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142851', 'tblTempUsageDetail_20' ) end [2024-12-31 10:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142851', 'tblTempVendorCDR_20' ) start [2024-12-31 10:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142851', 'tblTempVendorCDR_20' ) end [2024-12-31 10:12:22] Production.INFO: ProcessCDR(1,14142851,1,1,2) [2024-12-31 10:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142851', 'tblTempUsageDetail_20' ) start [2024-12-31 10:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142851', 'tblTempUsageDetail_20' ) end [2024-12-31 10:12:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:12:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:12:25] Production.INFO: ==7269== Releasing lock... [2024-12-31 10:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:12:25] Production.INFO: 43.25 MB #Memory Used# [2024-12-31 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:13:05 [end_date_ymd] => 2024-12-31 10:13:05 [RateCDR] => 1 ) [2024-12-31 10:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:13:05' and `end` < '2024-12-31 10:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:13:19] Production.INFO: count ==2000 [2024-12-31 10:13:19] Production.ERROR: pbx CDR StartTime 2024-12-31 07:13:05 - End Time 2024-12-31 10:13:05 [2024-12-31 10:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142856', 'tblTempUsageDetail_20' ) start [2024-12-31 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142856', 'tblTempUsageDetail_20' ) end [2024-12-31 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142856', 'tblTempVendorCDR_20' ) start [2024-12-31 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142856', 'tblTempVendorCDR_20' ) end [2024-12-31 10:13:19] Production.INFO: ProcessCDR(1,14142856,1,1,2) [2024-12-31 10:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142856', 'tblTempUsageDetail_20' ) start [2024-12-31 10:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142856', 'tblTempUsageDetail_20' ) end [2024-12-31 10:13:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:13:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:13:24] Production.INFO: ==7341== Releasing lock... [2024-12-31 10:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:13:24] Production.INFO: 43 MB #Memory Used# [2024-12-31 10:14:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:14:06 [end_date_ymd] => 2024-12-31 10:14:06 [RateCDR] => 1 ) [2024-12-31 10:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:14:06' and `end` < '2024-12-31 10:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:14:19] Production.INFO: count ==2010 [2024-12-31 10:14:19] Production.ERROR: pbx CDR StartTime 2024-12-31 07:14:06 - End Time 2024-12-31 10:14:06 [2024-12-31 10:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142861', 'tblTempUsageDetail_20' ) start [2024-12-31 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142861', 'tblTempUsageDetail_20' ) end [2024-12-31 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142861', 'tblTempVendorCDR_20' ) start [2024-12-31 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142861', 'tblTempVendorCDR_20' ) end [2024-12-31 10:14:19] Production.INFO: ProcessCDR(1,14142861,1,1,2) [2024-12-31 10:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142861', 'tblTempUsageDetail_20' ) start [2024-12-31 10:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142861', 'tblTempUsageDetail_20' ) end [2024-12-31 10:14:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:14:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:14:24] Production.INFO: ==7415== Releasing lock... [2024-12-31 10:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:14:24] Production.INFO: 43.25 MB #Memory Used# [2024-12-31 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:15:05 [end_date_ymd] => 2024-12-31 10:15:05 [RateCDR] => 1 ) [2024-12-31 10:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:15:05' and `end` < '2024-12-31 10:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:15:25] Production.INFO: count ==2014 [2024-12-31 10:15:26] Production.ERROR: pbx CDR StartTime 2024-12-31 07:15:05 - End Time 2024-12-31 10:15:05 [2024-12-31 10:15:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142866', 'tblTempUsageDetail_20' ) start [2024-12-31 10:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142866', 'tblTempUsageDetail_20' ) end [2024-12-31 10:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142866', 'tblTempVendorCDR_20' ) start [2024-12-31 10:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142866', 'tblTempVendorCDR_20' ) end [2024-12-31 10:15:26] Production.INFO: ProcessCDR(1,14142866,1,1,2) [2024-12-31 10:15:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:15:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:15:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:15:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142866', 'tblTempUsageDetail_20' ) start [2024-12-31 10:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142866', 'tblTempUsageDetail_20' ) end [2024-12-31 10:15:31] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:15:31] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:15:31] Production.INFO: ==7485== Releasing lock... [2024-12-31 10:15:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:15:31] Production.INFO: 43.25 MB #Memory Used# [2024-12-31 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:16:05 [end_date_ymd] => 2024-12-31 10:16:05 [RateCDR] => 1 ) [2024-12-31 10:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:16:05' and `end` < '2024-12-31 10:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:16:21] Production.INFO: count ==2023 [2024-12-31 10:16:22] Production.ERROR: pbx CDR StartTime 2024-12-31 07:16:05 - End Time 2024-12-31 10:16:05 [2024-12-31 10:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142871', 'tblTempUsageDetail_20' ) start [2024-12-31 10:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142871', 'tblTempUsageDetail_20' ) end [2024-12-31 10:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142871', 'tblTempVendorCDR_20' ) start [2024-12-31 10:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142871', 'tblTempVendorCDR_20' ) end [2024-12-31 10:16:22] Production.INFO: ProcessCDR(1,14142871,1,1,2) [2024-12-31 10:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142871', 'tblTempUsageDetail_20' ) start [2024-12-31 10:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142871', 'tblTempUsageDetail_20' ) end [2024-12-31 10:16:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:16:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:16:27] Production.INFO: ==7597== Releasing lock... [2024-12-31 10:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:16:27] Production.INFO: 43.25 MB #Memory Used# [2024-12-31 10:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:17:04 [end_date_ymd] => 2024-12-31 10:17:04 [RateCDR] => 1 ) [2024-12-31 10:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:17:04' and `end` < '2024-12-31 10:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:17:17] Production.INFO: count ==2049 [2024-12-31 10:17:18] Production.ERROR: pbx CDR StartTime 2024-12-31 07:17:04 - End Time 2024-12-31 10:17:04 [2024-12-31 10:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142876', 'tblTempUsageDetail_20' ) start [2024-12-31 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142876', 'tblTempUsageDetail_20' ) end [2024-12-31 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142876', 'tblTempVendorCDR_20' ) start [2024-12-31 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142876', 'tblTempVendorCDR_20' ) end [2024-12-31 10:17:18] Production.INFO: ProcessCDR(1,14142876,1,1,2) [2024-12-31 10:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142876', 'tblTempUsageDetail_20' ) start [2024-12-31 10:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142876', 'tblTempUsageDetail_20' ) end [2024-12-31 10:17:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:17:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:17:23] Production.INFO: ==7667== Releasing lock... [2024-12-31 10:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:17:23] Production.INFO: 43.5 MB #Memory Used# [2024-12-31 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:18:05 [end_date_ymd] => 2024-12-31 10:18:05 [RateCDR] => 1 ) [2024-12-31 10:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:18:05' and `end` < '2024-12-31 10:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:18:20] Production.INFO: count ==2056 [2024-12-31 10:18:21] Production.ERROR: pbx CDR StartTime 2024-12-31 07:18:05 - End Time 2024-12-31 10:18:05 [2024-12-31 10:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142881', 'tblTempUsageDetail_20' ) start [2024-12-31 10:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142881', 'tblTempUsageDetail_20' ) end [2024-12-31 10:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142881', 'tblTempVendorCDR_20' ) start [2024-12-31 10:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142881', 'tblTempVendorCDR_20' ) end [2024-12-31 10:18:21] Production.INFO: ProcessCDR(1,14142881,1,1,2) [2024-12-31 10:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142881', 'tblTempUsageDetail_20' ) start [2024-12-31 10:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142881', 'tblTempUsageDetail_20' ) end [2024-12-31 10:18:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:18:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:18:25] Production.INFO: ==7738== Releasing lock... [2024-12-31 10:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:18:25] Production.INFO: 43.5 MB #Memory Used# [2024-12-31 10:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:19:04 [end_date_ymd] => 2024-12-31 10:19:04 [RateCDR] => 1 ) [2024-12-31 10:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:19:04' and `end` < '2024-12-31 10:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:19:17] Production.INFO: count ==2081 [2024-12-31 10:19:18] Production.ERROR: pbx CDR StartTime 2024-12-31 07:19:04 - End Time 2024-12-31 10:19:04 [2024-12-31 10:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142886', 'tblTempUsageDetail_20' ) start [2024-12-31 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142886', 'tblTempUsageDetail_20' ) end [2024-12-31 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142886', 'tblTempVendorCDR_20' ) start [2024-12-31 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142886', 'tblTempVendorCDR_20' ) end [2024-12-31 10:19:18] Production.INFO: ProcessCDR(1,14142886,1,1,2) [2024-12-31 10:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142886', 'tblTempUsageDetail_20' ) start [2024-12-31 10:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142886', 'tblTempUsageDetail_20' ) end [2024-12-31 10:19:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:19:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:19:23] Production.INFO: ==7807== Releasing lock... [2024-12-31 10:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:19:23] Production.INFO: 43.75 MB #Memory Used# [2024-12-31 10:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:20:05 [end_date_ymd] => 2024-12-31 10:20:05 [RateCDR] => 1 ) [2024-12-31 10:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:20:05' and `end` < '2024-12-31 10:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:20:20] Production.INFO: count ==2114 [2024-12-31 10:20:21] Production.ERROR: pbx CDR StartTime 2024-12-31 07:20:05 - End Time 2024-12-31 10:20:05 [2024-12-31 10:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142892', 'tblTempUsageDetail_20' ) start [2024-12-31 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142892', 'tblTempUsageDetail_20' ) end [2024-12-31 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142892', 'tblTempVendorCDR_20' ) start [2024-12-31 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142892', 'tblTempVendorCDR_20' ) end [2024-12-31 10:20:21] Production.INFO: ProcessCDR(1,14142892,1,1,2) [2024-12-31 10:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142892', 'tblTempUsageDetail_20' ) start [2024-12-31 10:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142892', 'tblTempUsageDetail_20' ) end [2024-12-31 10:20:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:20:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:20:25] Production.INFO: ==7882== Releasing lock... [2024-12-31 10:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:20:25] Production.INFO: 44 MB #Memory Used# [2024-12-31 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:21:05 [end_date_ymd] => 2024-12-31 10:21:05 [RateCDR] => 1 ) [2024-12-31 10:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:21:05' and `end` < '2024-12-31 10:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:21:20] Production.INFO: count ==2183 [2024-12-31 10:21:21] Production.ERROR: pbx CDR StartTime 2024-12-31 07:21:05 - End Time 2024-12-31 10:21:05 [2024-12-31 10:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142897', 'tblTempUsageDetail_20' ) start [2024-12-31 10:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142897', 'tblTempUsageDetail_20' ) end [2024-12-31 10:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142897', 'tblTempVendorCDR_20' ) start [2024-12-31 10:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142897', 'tblTempVendorCDR_20' ) end [2024-12-31 10:21:21] Production.INFO: ProcessCDR(1,14142897,1,1,2) [2024-12-31 10:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142897', 'tblTempUsageDetail_20' ) start [2024-12-31 10:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142897', 'tblTempUsageDetail_20' ) end [2024-12-31 10:21:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:21:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:21:26] Production.INFO: ==7956== Releasing lock... [2024-12-31 10:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:21:26] Production.INFO: 44.5 MB #Memory Used# [2024-12-31 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:22:05 [end_date_ymd] => 2024-12-31 10:22:05 [RateCDR] => 1 ) [2024-12-31 10:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:22:05' and `end` < '2024-12-31 10:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:22:19] Production.INFO: count ==2197 [2024-12-31 10:22:20] Production.ERROR: pbx CDR StartTime 2024-12-31 07:22:05 - End Time 2024-12-31 10:22:05 [2024-12-31 10:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142902', 'tblTempUsageDetail_20' ) start [2024-12-31 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142902', 'tblTempUsageDetail_20' ) end [2024-12-31 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142902', 'tblTempVendorCDR_20' ) start [2024-12-31 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142902', 'tblTempVendorCDR_20' ) end [2024-12-31 10:22:20] Production.INFO: ProcessCDR(1,14142902,1,1,2) [2024-12-31 10:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142902', 'tblTempUsageDetail_20' ) start [2024-12-31 10:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142902', 'tblTempUsageDetail_20' ) end [2024-12-31 10:22:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:22:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:22:23] Production.INFO: ==8025== Releasing lock... [2024-12-31 10:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:22:23] Production.INFO: 44.5 MB #Memory Used# [2024-12-31 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:23:05 [end_date_ymd] => 2024-12-31 10:23:05 [RateCDR] => 1 ) [2024-12-31 10:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:23:05' and `end` < '2024-12-31 10:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:23:18] Production.INFO: count ==2217 [2024-12-31 10:23:19] Production.ERROR: pbx CDR StartTime 2024-12-31 07:23:05 - End Time 2024-12-31 10:23:05 [2024-12-31 10:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142907', 'tblTempUsageDetail_20' ) start [2024-12-31 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142907', 'tblTempUsageDetail_20' ) end [2024-12-31 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142907', 'tblTempVendorCDR_20' ) start [2024-12-31 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142907', 'tblTempVendorCDR_20' ) end [2024-12-31 10:23:19] Production.INFO: ProcessCDR(1,14142907,1,1,2) [2024-12-31 10:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142907', 'tblTempUsageDetail_20' ) start [2024-12-31 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142907', 'tblTempUsageDetail_20' ) end [2024-12-31 10:23:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:23:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:23:24] Production.INFO: ==8097== Releasing lock... [2024-12-31 10:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:23:24] Production.INFO: 44.75 MB #Memory Used# [2024-12-31 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:24:05 [end_date_ymd] => 2024-12-31 10:24:05 [RateCDR] => 1 ) [2024-12-31 10:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:24:05' and `end` < '2024-12-31 10:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:24:28] Production.INFO: count ==2231 [2024-12-31 10:24:29] Production.ERROR: pbx CDR StartTime 2024-12-31 07:24:05 - End Time 2024-12-31 10:24:05 [2024-12-31 10:24:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142912', 'tblTempUsageDetail_20' ) start [2024-12-31 10:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142912', 'tblTempUsageDetail_20' ) end [2024-12-31 10:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142912', 'tblTempVendorCDR_20' ) start [2024-12-31 10:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142912', 'tblTempVendorCDR_20' ) end [2024-12-31 10:24:29] Production.INFO: ProcessCDR(1,14142912,1,1,2) [2024-12-31 10:24:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:24:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:24:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:24:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:24:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142912', 'tblTempUsageDetail_20' ) start [2024-12-31 10:24:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142912', 'tblTempUsageDetail_20' ) end [2024-12-31 10:24:33] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:24:33] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:24:33] Production.INFO: ==8174== Releasing lock... [2024-12-31 10:24:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:24:33] Production.INFO: 45 MB #Memory Used# [2024-12-31 10:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:25:04 [end_date_ymd] => 2024-12-31 10:25:04 [RateCDR] => 1 ) [2024-12-31 10:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:25:04' and `end` < '2024-12-31 10:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:25:23] Production.INFO: count ==2257 [2024-12-31 10:25:24] Production.ERROR: pbx CDR StartTime 2024-12-31 07:25:04 - End Time 2024-12-31 10:25:04 [2024-12-31 10:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142917', 'tblTempUsageDetail_20' ) start [2024-12-31 10:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142917', 'tblTempUsageDetail_20' ) end [2024-12-31 10:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142917', 'tblTempVendorCDR_20' ) start [2024-12-31 10:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142917', 'tblTempVendorCDR_20' ) end [2024-12-31 10:25:24] Production.INFO: ProcessCDR(1,14142917,1,1,2) [2024-12-31 10:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142917', 'tblTempUsageDetail_20' ) start [2024-12-31 10:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142917', 'tblTempUsageDetail_20' ) end [2024-12-31 10:25:29] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:25:29] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:25:29] Production.INFO: ==8245== Releasing lock... [2024-12-31 10:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:25:29] Production.INFO: 45 MB #Memory Used# [2024-12-31 10:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:26:04 [end_date_ymd] => 2024-12-31 10:26:04 [RateCDR] => 1 ) [2024-12-31 10:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:26:04' and `end` < '2024-12-31 10:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:26:21] Production.INFO: count ==2277 [2024-12-31 10:26:22] Production.ERROR: pbx CDR StartTime 2024-12-31 07:26:04 - End Time 2024-12-31 10:26:04 [2024-12-31 10:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142922', 'tblTempUsageDetail_20' ) start [2024-12-31 10:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142922', 'tblTempUsageDetail_20' ) end [2024-12-31 10:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142922', 'tblTempVendorCDR_20' ) start [2024-12-31 10:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142922', 'tblTempVendorCDR_20' ) end [2024-12-31 10:26:22] Production.INFO: ProcessCDR(1,14142922,1,1,2) [2024-12-31 10:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142922', 'tblTempUsageDetail_20' ) start [2024-12-31 10:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142922', 'tblTempUsageDetail_20' ) end [2024-12-31 10:26:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:26:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:26:27] Production.INFO: ==8316== Releasing lock... [2024-12-31 10:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:26:27] Production.INFO: 45.25 MB #Memory Used# [2024-12-31 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:27:05 [end_date_ymd] => 2024-12-31 10:27:05 [RateCDR] => 1 ) [2024-12-31 10:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:27:05' and `end` < '2024-12-31 10:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:27:20] Production.INFO: count ==2281 [2024-12-31 10:27:21] Production.ERROR: pbx CDR StartTime 2024-12-31 07:27:05 - End Time 2024-12-31 10:27:05 [2024-12-31 10:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142927', 'tblTempUsageDetail_20' ) start [2024-12-31 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142927', 'tblTempUsageDetail_20' ) end [2024-12-31 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142927', 'tblTempVendorCDR_20' ) start [2024-12-31 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142927', 'tblTempVendorCDR_20' ) end [2024-12-31 10:27:21] Production.INFO: ProcessCDR(1,14142927,1,1,2) [2024-12-31 10:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142927', 'tblTempUsageDetail_20' ) start [2024-12-31 10:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142927', 'tblTempUsageDetail_20' ) end [2024-12-31 10:27:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:27:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:27:25] Production.INFO: ==8390== Releasing lock... [2024-12-31 10:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:27:25] Production.INFO: 45.5 MB #Memory Used# [2024-12-31 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:28:05 [end_date_ymd] => 2024-12-31 10:28:05 [RateCDR] => 1 ) [2024-12-31 10:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:28:05' and `end` < '2024-12-31 10:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:28:19] Production.INFO: count ==2306 [2024-12-31 10:28:20] Production.ERROR: pbx CDR StartTime 2024-12-31 07:28:05 - End Time 2024-12-31 10:28:05 [2024-12-31 10:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142932', 'tblTempUsageDetail_20' ) start [2024-12-31 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142932', 'tblTempUsageDetail_20' ) end [2024-12-31 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142932', 'tblTempVendorCDR_20' ) start [2024-12-31 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142932', 'tblTempVendorCDR_20' ) end [2024-12-31 10:28:20] Production.INFO: ProcessCDR(1,14142932,1,1,2) [2024-12-31 10:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142932', 'tblTempUsageDetail_20' ) start [2024-12-31 10:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142932', 'tblTempUsageDetail_20' ) end [2024-12-31 10:28:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:28:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:28:24] Production.INFO: ==8460== Releasing lock... [2024-12-31 10:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:28:24] Production.INFO: 45.75 MB #Memory Used# [2024-12-31 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:29:05 [end_date_ymd] => 2024-12-31 10:29:05 [RateCDR] => 1 ) [2024-12-31 10:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:29:05' and `end` < '2024-12-31 10:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:29:22] Production.INFO: count ==2355 [2024-12-31 10:29:22] Production.ERROR: pbx CDR StartTime 2024-12-31 07:29:05 - End Time 2024-12-31 10:29:05 [2024-12-31 10:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142937', 'tblTempUsageDetail_20' ) start [2024-12-31 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142937', 'tblTempUsageDetail_20' ) end [2024-12-31 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142937', 'tblTempVendorCDR_20' ) start [2024-12-31 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142937', 'tblTempVendorCDR_20' ) end [2024-12-31 10:29:23] Production.INFO: ProcessCDR(1,14142937,1,1,2) [2024-12-31 10:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142937', 'tblTempUsageDetail_20' ) start [2024-12-31 10:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142937', 'tblTempUsageDetail_20' ) end [2024-12-31 10:29:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:29:28] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:29:28] Production.INFO: ==8531== Releasing lock... [2024-12-31 10:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:29:28] Production.INFO: 45.75 MB #Memory Used# [2024-12-31 10:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:30:05 [end_date_ymd] => 2024-12-31 10:30:05 [RateCDR] => 1 ) [2024-12-31 10:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:30:05' and `end` < '2024-12-31 10:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:30:35] Production.INFO: count ==2383 [2024-12-31 10:30:36] Production.ERROR: pbx CDR StartTime 2024-12-31 07:30:05 - End Time 2024-12-31 10:30:05 [2024-12-31 10:30:36] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:30:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142943', 'tblTempUsageDetail_20' ) start [2024-12-31 10:30:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142943', 'tblTempUsageDetail_20' ) end [2024-12-31 10:30:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142943', 'tblTempVendorCDR_20' ) start [2024-12-31 10:30:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142943', 'tblTempVendorCDR_20' ) end [2024-12-31 10:30:36] Production.INFO: ProcessCDR(1,14142943,1,1,2) [2024-12-31 10:30:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:30:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:30:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:30:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:30:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142943', 'tblTempUsageDetail_20' ) start [2024-12-31 10:30:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142943', 'tblTempUsageDetail_20' ) end [2024-12-31 10:30:41] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:30:41] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:30:41] Production.INFO: ==8602== Releasing lock... [2024-12-31 10:30:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:30:41] Production.INFO: 46 MB #Memory Used# [2024-12-31 10:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:31:04 [end_date_ymd] => 2024-12-31 10:31:04 [RateCDR] => 1 ) [2024-12-31 10:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:31:04' and `end` < '2024-12-31 10:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:31:24] Production.INFO: count ==2472 [2024-12-31 10:31:25] Production.ERROR: pbx CDR StartTime 2024-12-31 07:31:04 - End Time 2024-12-31 10:31:04 [2024-12-31 10:31:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142948', 'tblTempUsageDetail_20' ) start [2024-12-31 10:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142948', 'tblTempUsageDetail_20' ) end [2024-12-31 10:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142948', 'tblTempVendorCDR_20' ) start [2024-12-31 10:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142948', 'tblTempVendorCDR_20' ) end [2024-12-31 10:31:25] Production.INFO: ProcessCDR(1,14142948,1,1,2) [2024-12-31 10:31:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:31:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:31:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142948', 'tblTempUsageDetail_20' ) start [2024-12-31 10:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142948', 'tblTempUsageDetail_20' ) end [2024-12-31 10:31:30] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:31:30] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:31:30] Production.INFO: ==8674== Releasing lock... [2024-12-31 10:31:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:31:30] Production.INFO: 46.75 MB #Memory Used# [2024-12-31 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:32:05 [end_date_ymd] => 2024-12-31 10:32:05 [RateCDR] => 1 ) [2024-12-31 10:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:32:05' and `end` < '2024-12-31 10:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:32:19] Production.INFO: count ==2482 [2024-12-31 10:32:20] Production.ERROR: pbx CDR StartTime 2024-12-31 07:32:05 - End Time 2024-12-31 10:32:05 [2024-12-31 10:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142953', 'tblTempUsageDetail_20' ) start [2024-12-31 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142953', 'tblTempUsageDetail_20' ) end [2024-12-31 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142953', 'tblTempVendorCDR_20' ) start [2024-12-31 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142953', 'tblTempVendorCDR_20' ) end [2024-12-31 10:32:21] Production.INFO: ProcessCDR(1,14142953,1,1,2) [2024-12-31 10:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142953', 'tblTempUsageDetail_20' ) start [2024-12-31 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142953', 'tblTempUsageDetail_20' ) end [2024-12-31 10:32:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:32:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:32:25] Production.INFO: ==8784== Releasing lock... [2024-12-31 10:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:32:25] Production.INFO: 46.75 MB #Memory Used# [2024-12-31 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:33:05 [end_date_ymd] => 2024-12-31 10:33:05 [RateCDR] => 1 ) [2024-12-31 10:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:33:05' and `end` < '2024-12-31 10:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:33:18] Production.INFO: count ==2489 [2024-12-31 10:33:19] Production.ERROR: pbx CDR StartTime 2024-12-31 07:33:05 - End Time 2024-12-31 10:33:05 [2024-12-31 10:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142958', 'tblTempUsageDetail_20' ) start [2024-12-31 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142958', 'tblTempUsageDetail_20' ) end [2024-12-31 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142958', 'tblTempVendorCDR_20' ) start [2024-12-31 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142958', 'tblTempVendorCDR_20' ) end [2024-12-31 10:33:19] Production.INFO: ProcessCDR(1,14142958,1,1,2) [2024-12-31 10:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142958', 'tblTempUsageDetail_20' ) start [2024-12-31 10:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142958', 'tblTempUsageDetail_20' ) end [2024-12-31 10:33:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:33:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:33:24] Production.INFO: ==8857== Releasing lock... [2024-12-31 10:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:33:24] Production.INFO: 47 MB #Memory Used# [2024-12-31 10:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:34:04 [end_date_ymd] => 2024-12-31 10:34:04 [RateCDR] => 1 ) [2024-12-31 10:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:34:04' and `end` < '2024-12-31 10:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:34:20] Production.INFO: count ==2492 [2024-12-31 10:34:21] Production.ERROR: pbx CDR StartTime 2024-12-31 07:34:04 - End Time 2024-12-31 10:34:04 [2024-12-31 10:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142963', 'tblTempUsageDetail_20' ) start [2024-12-31 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142963', 'tblTempUsageDetail_20' ) end [2024-12-31 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142963', 'tblTempVendorCDR_20' ) start [2024-12-31 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142963', 'tblTempVendorCDR_20' ) end [2024-12-31 10:34:21] Production.INFO: ProcessCDR(1,14142963,1,1,2) [2024-12-31 10:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142963', 'tblTempUsageDetail_20' ) start [2024-12-31 10:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142963', 'tblTempUsageDetail_20' ) end [2024-12-31 10:34:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:34:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:34:25] Production.INFO: ==8932== Releasing lock... [2024-12-31 10:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:34:26] Production.INFO: 46.75 MB #Memory Used# [2024-12-31 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:35:05 [end_date_ymd] => 2024-12-31 10:35:05 [RateCDR] => 1 ) [2024-12-31 10:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:35:05' and `end` < '2024-12-31 10:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:35:18] Production.INFO: count ==2496 [2024-12-31 10:35:19] Production.ERROR: pbx CDR StartTime 2024-12-31 07:35:05 - End Time 2024-12-31 10:35:05 [2024-12-31 10:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142968', 'tblTempUsageDetail_20' ) start [2024-12-31 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142968', 'tblTempUsageDetail_20' ) end [2024-12-31 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142968', 'tblTempVendorCDR_20' ) start [2024-12-31 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142968', 'tblTempVendorCDR_20' ) end [2024-12-31 10:35:19] Production.INFO: ProcessCDR(1,14142968,1,1,2) [2024-12-31 10:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142968', 'tblTempUsageDetail_20' ) start [2024-12-31 10:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142968', 'tblTempUsageDetail_20' ) end [2024-12-31 10:35:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:35:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:35:24] Production.INFO: ==9006== Releasing lock... [2024-12-31 10:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:35:24] Production.INFO: 46.75 MB #Memory Used# [2024-12-31 10:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:36:04 [end_date_ymd] => 2024-12-31 10:36:04 [RateCDR] => 1 ) [2024-12-31 10:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:36:04' and `end` < '2024-12-31 10:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:36:20] Production.INFO: count ==2507 [2024-12-31 10:36:21] Production.ERROR: pbx CDR StartTime 2024-12-31 07:36:04 - End Time 2024-12-31 10:36:04 [2024-12-31 10:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142973', 'tblTempUsageDetail_20' ) start [2024-12-31 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142973', 'tblTempUsageDetail_20' ) end [2024-12-31 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142973', 'tblTempVendorCDR_20' ) start [2024-12-31 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142973', 'tblTempVendorCDR_20' ) end [2024-12-31 10:36:21] Production.INFO: ProcessCDR(1,14142973,1,1,2) [2024-12-31 10:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142973', 'tblTempUsageDetail_20' ) start [2024-12-31 10:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142973', 'tblTempUsageDetail_20' ) end [2024-12-31 10:36:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:36:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:36:26] Production.INFO: ==9079== Releasing lock... [2024-12-31 10:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:36:26] Production.INFO: 47 MB #Memory Used# [2024-12-31 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:37:05 [end_date_ymd] => 2024-12-31 10:37:05 [RateCDR] => 1 ) [2024-12-31 10:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:37:05' and `end` < '2024-12-31 10:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:37:22] Production.INFO: count ==2529 [2024-12-31 10:37:23] Production.ERROR: pbx CDR StartTime 2024-12-31 07:37:05 - End Time 2024-12-31 10:37:05 [2024-12-31 10:37:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142978', 'tblTempUsageDetail_20' ) start [2024-12-31 10:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142978', 'tblTempUsageDetail_20' ) end [2024-12-31 10:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142978', 'tblTempVendorCDR_20' ) start [2024-12-31 10:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142978', 'tblTempVendorCDR_20' ) end [2024-12-31 10:37:23] Production.INFO: ProcessCDR(1,14142978,1,1,2) [2024-12-31 10:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142978', 'tblTempUsageDetail_20' ) start [2024-12-31 10:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142978', 'tblTempUsageDetail_20' ) end [2024-12-31 10:37:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:37:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:37:27] Production.INFO: ==9149== Releasing lock... [2024-12-31 10:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:37:27] Production.INFO: 47.25 MB #Memory Used# [2024-12-31 10:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:38:04 [end_date_ymd] => 2024-12-31 10:38:04 [RateCDR] => 1 ) [2024-12-31 10:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:38:04' and `end` < '2024-12-31 10:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:38:19] Production.INFO: count ==2538 [2024-12-31 10:38:19] Production.ERROR: pbx CDR StartTime 2024-12-31 07:38:04 - End Time 2024-12-31 10:38:04 [2024-12-31 10:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142983', 'tblTempUsageDetail_20' ) start [2024-12-31 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142983', 'tblTempUsageDetail_20' ) end [2024-12-31 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142983', 'tblTempVendorCDR_20' ) start [2024-12-31 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142983', 'tblTempVendorCDR_20' ) end [2024-12-31 10:38:20] Production.INFO: ProcessCDR(1,14142983,1,1,2) [2024-12-31 10:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142983', 'tblTempUsageDetail_20' ) start [2024-12-31 10:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142983', 'tblTempUsageDetail_20' ) end [2024-12-31 10:38:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:38:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:38:24] Production.INFO: ==9218== Releasing lock... [2024-12-31 10:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:38:24] Production.INFO: 47.25 MB #Memory Used# [2024-12-31 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:39:05 [end_date_ymd] => 2024-12-31 10:39:05 [RateCDR] => 1 ) [2024-12-31 10:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:39:05' and `end` < '2024-12-31 10:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:39:21] Production.INFO: count ==2561 [2024-12-31 10:39:22] Production.ERROR: pbx CDR StartTime 2024-12-31 07:39:05 - End Time 2024-12-31 10:39:05 [2024-12-31 10:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142988', 'tblTempUsageDetail_20' ) start [2024-12-31 10:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142988', 'tblTempUsageDetail_20' ) end [2024-12-31 10:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142988', 'tblTempVendorCDR_20' ) start [2024-12-31 10:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142988', 'tblTempVendorCDR_20' ) end [2024-12-31 10:39:23] Production.INFO: ProcessCDR(1,14142988,1,1,2) [2024-12-31 10:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142988', 'tblTempUsageDetail_20' ) start [2024-12-31 10:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142988', 'tblTempUsageDetail_20' ) end [2024-12-31 10:39:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:39:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:39:27] Production.INFO: ==9289== Releasing lock... [2024-12-31 10:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:39:27] Production.INFO: 47.5 MB #Memory Used# [2024-12-31 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:40:06 [end_date_ymd] => 2024-12-31 10:40:06 [RateCDR] => 1 ) [2024-12-31 10:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:40:06' and `end` < '2024-12-31 10:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:40:23] Production.INFO: count ==2581 [2024-12-31 10:40:24] Production.ERROR: pbx CDR StartTime 2024-12-31 07:40:06 - End Time 2024-12-31 10:40:06 [2024-12-31 10:40:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142994', 'tblTempUsageDetail_20' ) start [2024-12-31 10:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142994', 'tblTempUsageDetail_20' ) end [2024-12-31 10:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142994', 'tblTempVendorCDR_20' ) start [2024-12-31 10:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142994', 'tblTempVendorCDR_20' ) end [2024-12-31 10:40:24] Production.INFO: ProcessCDR(1,14142994,1,1,2) [2024-12-31 10:40:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:40:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:40:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142994', 'tblTempUsageDetail_20' ) start [2024-12-31 10:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142994', 'tblTempUsageDetail_20' ) end [2024-12-31 10:40:29] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:40:29] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:40:29] Production.INFO: ==9371== Releasing lock... [2024-12-31 10:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:40:29] Production.INFO: 47.75 MB #Memory Used# [2024-12-31 10:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:41:04 [end_date_ymd] => 2024-12-31 10:41:04 [RateCDR] => 1 ) [2024-12-31 10:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:41:04' and `end` < '2024-12-31 10:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:41:19] Production.INFO: count ==2673 [2024-12-31 10:41:20] Production.ERROR: pbx CDR StartTime 2024-12-31 07:41:04 - End Time 2024-12-31 10:41:04 [2024-12-31 10:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142999', 'tblTempUsageDetail_20' ) start [2024-12-31 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14142999', 'tblTempUsageDetail_20' ) end [2024-12-31 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142999', 'tblTempVendorCDR_20' ) start [2024-12-31 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14142999', 'tblTempVendorCDR_20' ) end [2024-12-31 10:41:20] Production.INFO: ProcessCDR(1,14142999,1,1,2) [2024-12-31 10:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14142999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14142999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14142999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14142999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142999', 'tblTempUsageDetail_20' ) start [2024-12-31 10:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14142999', 'tblTempUsageDetail_20' ) end [2024-12-31 10:41:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:41:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:41:25] Production.INFO: ==9447== Releasing lock... [2024-12-31 10:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:41:25] Production.INFO: 48.25 MB #Memory Used# [2024-12-31 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:42:05 [end_date_ymd] => 2024-12-31 10:42:05 [RateCDR] => 1 ) [2024-12-31 10:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:42:05' and `end` < '2024-12-31 10:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:42:21] Production.INFO: count ==2694 [2024-12-31 10:42:22] Production.ERROR: pbx CDR StartTime 2024-12-31 07:42:05 - End Time 2024-12-31 10:42:05 [2024-12-31 10:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143004', 'tblTempUsageDetail_20' ) start [2024-12-31 10:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143004', 'tblTempUsageDetail_20' ) end [2024-12-31 10:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143004', 'tblTempVendorCDR_20' ) start [2024-12-31 10:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143004', 'tblTempVendorCDR_20' ) end [2024-12-31 10:42:22] Production.INFO: ProcessCDR(1,14143004,1,1,2) [2024-12-31 10:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143004', 'tblTempUsageDetail_20' ) start [2024-12-31 10:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143004', 'tblTempUsageDetail_20' ) end [2024-12-31 10:42:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:42:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:42:27] Production.INFO: ==9518== Releasing lock... [2024-12-31 10:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:42:27] Production.INFO: 48.25 MB #Memory Used# [2024-12-31 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:43:04 [end_date_ymd] => 2024-12-31 10:43:04 [RateCDR] => 1 ) [2024-12-31 10:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:43:04' and `end` < '2024-12-31 10:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:43:19] Production.INFO: count ==2711 [2024-12-31 10:43:20] Production.ERROR: pbx CDR StartTime 2024-12-31 07:43:04 - End Time 2024-12-31 10:43:04 [2024-12-31 10:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143009', 'tblTempUsageDetail_20' ) start [2024-12-31 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143009', 'tblTempUsageDetail_20' ) end [2024-12-31 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143009', 'tblTempVendorCDR_20' ) start [2024-12-31 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143009', 'tblTempVendorCDR_20' ) end [2024-12-31 10:43:20] Production.INFO: ProcessCDR(1,14143009,1,1,2) [2024-12-31 10:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143009', 'tblTempUsageDetail_20' ) start [2024-12-31 10:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143009', 'tblTempUsageDetail_20' ) end [2024-12-31 10:43:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:43:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:43:24] Production.INFO: ==9590== Releasing lock... [2024-12-31 10:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:43:24] Production.INFO: 49 MB #Memory Used# [2024-12-31 10:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:44:04 [end_date_ymd] => 2024-12-31 10:44:04 [RateCDR] => 1 ) [2024-12-31 10:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:44:04' and `end` < '2024-12-31 10:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:44:20] Production.INFO: count ==2734 [2024-12-31 10:44:21] Production.ERROR: pbx CDR StartTime 2024-12-31 07:44:04 - End Time 2024-12-31 10:44:04 [2024-12-31 10:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143014', 'tblTempUsageDetail_20' ) start [2024-12-31 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143014', 'tblTempUsageDetail_20' ) end [2024-12-31 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143014', 'tblTempVendorCDR_20' ) start [2024-12-31 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143014', 'tblTempVendorCDR_20' ) end [2024-12-31 10:44:21] Production.INFO: ProcessCDR(1,14143014,1,1,2) [2024-12-31 10:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143014', 'tblTempUsageDetail_20' ) start [2024-12-31 10:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143014', 'tblTempUsageDetail_20' ) end [2024-12-31 10:44:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:44:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:44:26] Production.INFO: ==9659== Releasing lock... [2024-12-31 10:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:44:26] Production.INFO: 49 MB #Memory Used# [2024-12-31 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:45:05 [end_date_ymd] => 2024-12-31 10:45:05 [RateCDR] => 1 ) [2024-12-31 10:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:45:05' and `end` < '2024-12-31 10:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:45:21] Production.INFO: count ==2757 [2024-12-31 10:45:23] Production.ERROR: pbx CDR StartTime 2024-12-31 07:45:05 - End Time 2024-12-31 10:45:05 [2024-12-31 10:45:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143019', 'tblTempUsageDetail_20' ) start [2024-12-31 10:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143019', 'tblTempUsageDetail_20' ) end [2024-12-31 10:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143019', 'tblTempVendorCDR_20' ) start [2024-12-31 10:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143019', 'tblTempVendorCDR_20' ) end [2024-12-31 10:45:23] Production.INFO: ProcessCDR(1,14143019,1,1,2) [2024-12-31 10:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143019', 'tblTempUsageDetail_20' ) start [2024-12-31 10:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143019', 'tblTempUsageDetail_20' ) end [2024-12-31 10:45:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:45:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:45:27] Production.INFO: ==9730== Releasing lock... [2024-12-31 10:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:45:27] Production.INFO: 49.5 MB #Memory Used# [2024-12-31 10:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:46:04 [end_date_ymd] => 2024-12-31 10:46:04 [RateCDR] => 1 ) [2024-12-31 10:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:46:04' and `end` < '2024-12-31 10:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:46:26] Production.INFO: count ==2780 [2024-12-31 10:46:27] Production.ERROR: pbx CDR StartTime 2024-12-31 07:46:04 - End Time 2024-12-31 10:46:04 [2024-12-31 10:46:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143024', 'tblTempUsageDetail_20' ) start [2024-12-31 10:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143024', 'tblTempUsageDetail_20' ) end [2024-12-31 10:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143024', 'tblTempVendorCDR_20' ) start [2024-12-31 10:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143024', 'tblTempVendorCDR_20' ) end [2024-12-31 10:46:27] Production.INFO: ProcessCDR(1,14143024,1,1,2) [2024-12-31 10:46:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:46:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:46:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:46:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143024', 'tblTempUsageDetail_20' ) start [2024-12-31 10:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143024', 'tblTempUsageDetail_20' ) end [2024-12-31 10:46:31] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:46:31] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:46:31] Production.INFO: ==9801== Releasing lock... [2024-12-31 10:46:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:46:31] Production.INFO: 49.75 MB #Memory Used# [2024-12-31 10:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:47:04 [end_date_ymd] => 2024-12-31 10:47:04 [RateCDR] => 1 ) [2024-12-31 10:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:47:04' and `end` < '2024-12-31 10:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:47:23] Production.INFO: count ==2817 [2024-12-31 10:47:24] Production.ERROR: pbx CDR StartTime 2024-12-31 07:47:04 - End Time 2024-12-31 10:47:04 [2024-12-31 10:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143029', 'tblTempUsageDetail_20' ) start [2024-12-31 10:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143029', 'tblTempUsageDetail_20' ) end [2024-12-31 10:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143029', 'tblTempVendorCDR_20' ) start [2024-12-31 10:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143029', 'tblTempVendorCDR_20' ) end [2024-12-31 10:47:24] Production.INFO: ProcessCDR(1,14143029,1,1,2) [2024-12-31 10:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143029', 'tblTempUsageDetail_20' ) start [2024-12-31 10:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143029', 'tblTempUsageDetail_20' ) end [2024-12-31 10:47:29] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:47:29] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:47:29] Production.INFO: ==9913== Releasing lock... [2024-12-31 10:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:47:29] Production.INFO: 49.25 MB #Memory Used# [2024-12-31 10:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:48:04 [end_date_ymd] => 2024-12-31 10:48:04 [RateCDR] => 1 ) [2024-12-31 10:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:48:04' and `end` < '2024-12-31 10:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:48:24] Production.INFO: count ==2836 [2024-12-31 10:48:25] Production.ERROR: pbx CDR StartTime 2024-12-31 07:48:04 - End Time 2024-12-31 10:48:04 [2024-12-31 10:48:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143034', 'tblTempUsageDetail_20' ) start [2024-12-31 10:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143034', 'tblTempUsageDetail_20' ) end [2024-12-31 10:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143034', 'tblTempVendorCDR_20' ) start [2024-12-31 10:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143034', 'tblTempVendorCDR_20' ) end [2024-12-31 10:48:25] Production.INFO: ProcessCDR(1,14143034,1,1,2) [2024-12-31 10:48:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:48:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:48:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:48:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143034', 'tblTempUsageDetail_20' ) start [2024-12-31 10:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143034', 'tblTempUsageDetail_20' ) end [2024-12-31 10:48:30] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:48:30] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:48:30] Production.INFO: ==9986== Releasing lock... [2024-12-31 10:48:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:48:30] Production.INFO: 49.5 MB #Memory Used# [2024-12-31 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:49:05 [end_date_ymd] => 2024-12-31 10:49:05 [RateCDR] => 1 ) [2024-12-31 10:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:49:05' and `end` < '2024-12-31 10:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:49:20] Production.INFO: count ==2864 [2024-12-31 10:49:21] Production.ERROR: pbx CDR StartTime 2024-12-31 07:49:05 - End Time 2024-12-31 10:49:05 [2024-12-31 10:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143039', 'tblTempUsageDetail_20' ) start [2024-12-31 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143039', 'tblTempUsageDetail_20' ) end [2024-12-31 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143039', 'tblTempVendorCDR_20' ) start [2024-12-31 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143039', 'tblTempVendorCDR_20' ) end [2024-12-31 10:49:21] Production.INFO: ProcessCDR(1,14143039,1,1,2) [2024-12-31 10:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143039', 'tblTempUsageDetail_20' ) start [2024-12-31 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143039', 'tblTempUsageDetail_20' ) end [2024-12-31 10:49:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:49:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:49:26] Production.INFO: ==10061== Releasing lock... [2024-12-31 10:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:49:26] Production.INFO: 50 MB #Memory Used# [2024-12-31 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:50:06 [end_date_ymd] => 2024-12-31 10:50:06 [RateCDR] => 1 ) [2024-12-31 10:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:50:06' and `end` < '2024-12-31 10:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:50:23] Production.INFO: count ==2882 [2024-12-31 10:50:24] Production.ERROR: pbx CDR StartTime 2024-12-31 07:50:06 - End Time 2024-12-31 10:50:06 [2024-12-31 10:50:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143044', 'tblTempUsageDetail_20' ) start [2024-12-31 10:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143044', 'tblTempUsageDetail_20' ) end [2024-12-31 10:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143044', 'tblTempVendorCDR_20' ) start [2024-12-31 10:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143044', 'tblTempVendorCDR_20' ) end [2024-12-31 10:50:24] Production.INFO: ProcessCDR(1,14143044,1,1,2) [2024-12-31 10:50:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143044', 'tblTempUsageDetail_20' ) start [2024-12-31 10:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143044', 'tblTempUsageDetail_20' ) end [2024-12-31 10:50:29] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:50:29] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:50:29] Production.INFO: ==10136== Releasing lock... [2024-12-31 10:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:50:29] Production.INFO: 49.75 MB #Memory Used# [2024-12-31 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:51:05 [end_date_ymd] => 2024-12-31 10:51:05 [RateCDR] => 1 ) [2024-12-31 10:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:51:05' and `end` < '2024-12-31 10:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:51:18] Production.INFO: count ==2985 [2024-12-31 10:51:19] Production.ERROR: pbx CDR StartTime 2024-12-31 07:51:05 - End Time 2024-12-31 10:51:05 [2024-12-31 10:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143050', 'tblTempUsageDetail_20' ) start [2024-12-31 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143050', 'tblTempUsageDetail_20' ) end [2024-12-31 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143050', 'tblTempVendorCDR_20' ) start [2024-12-31 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143050', 'tblTempVendorCDR_20' ) end [2024-12-31 10:51:20] Production.INFO: ProcessCDR(1,14143050,1,1,2) [2024-12-31 10:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143050', 'tblTempUsageDetail_20' ) start [2024-12-31 10:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143050', 'tblTempUsageDetail_20' ) end [2024-12-31 10:51:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:51:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:51:24] Production.INFO: ==10208== Releasing lock... [2024-12-31 10:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:51:24] Production.INFO: 51.25 MB #Memory Used# [2024-12-31 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:52:05 [end_date_ymd] => 2024-12-31 10:52:05 [RateCDR] => 1 ) [2024-12-31 10:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:52:05' and `end` < '2024-12-31 10:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:52:19] Production.INFO: count ==2999 [2024-12-31 10:52:20] Production.ERROR: pbx CDR StartTime 2024-12-31 07:52:05 - End Time 2024-12-31 10:52:05 [2024-12-31 10:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143055', 'tblTempUsageDetail_20' ) start [2024-12-31 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143055', 'tblTempUsageDetail_20' ) end [2024-12-31 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143055', 'tblTempVendorCDR_20' ) start [2024-12-31 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143055', 'tblTempVendorCDR_20' ) end [2024-12-31 10:52:20] Production.INFO: ProcessCDR(1,14143055,1,1,2) [2024-12-31 10:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143055', 'tblTempUsageDetail_20' ) start [2024-12-31 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143055', 'tblTempUsageDetail_20' ) end [2024-12-31 10:52:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:52:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:52:25] Production.INFO: ==10278== Releasing lock... [2024-12-31 10:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:52:25] Production.INFO: 50.75 MB #Memory Used# [2024-12-31 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:53:05 [end_date_ymd] => 2024-12-31 10:53:05 [RateCDR] => 1 ) [2024-12-31 10:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:53:05' and `end` < '2024-12-31 10:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:53:18] Production.INFO: count ==3006 [2024-12-31 10:53:19] Production.ERROR: pbx CDR StartTime 2024-12-31 07:53:05 - End Time 2024-12-31 10:53:05 [2024-12-31 10:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143060', 'tblTempUsageDetail_20' ) start [2024-12-31 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143060', 'tblTempUsageDetail_20' ) end [2024-12-31 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143060', 'tblTempVendorCDR_20' ) start [2024-12-31 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143060', 'tblTempVendorCDR_20' ) end [2024-12-31 10:53:19] Production.INFO: ProcessCDR(1,14143060,1,1,2) [2024-12-31 10:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143060', 'tblTempUsageDetail_20' ) start [2024-12-31 10:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143060', 'tblTempUsageDetail_20' ) end [2024-12-31 10:53:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:53:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:53:24] Production.INFO: ==10352== Releasing lock... [2024-12-31 10:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:53:24] Production.INFO: 50.75 MB #Memory Used# [2024-12-31 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:54:05 [end_date_ymd] => 2024-12-31 10:54:05 [RateCDR] => 1 ) [2024-12-31 10:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:54:05' and `end` < '2024-12-31 10:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:54:21] Production.INFO: count ==3030 [2024-12-31 10:54:22] Production.ERROR: pbx CDR StartTime 2024-12-31 07:54:05 - End Time 2024-12-31 10:54:05 [2024-12-31 10:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143065', 'tblTempUsageDetail_20' ) start [2024-12-31 10:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143065', 'tblTempUsageDetail_20' ) end [2024-12-31 10:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143065', 'tblTempVendorCDR_20' ) start [2024-12-31 10:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143065', 'tblTempVendorCDR_20' ) end [2024-12-31 10:54:22] Production.INFO: ProcessCDR(1,14143065,1,1,2) [2024-12-31 10:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143065', 'tblTempUsageDetail_20' ) start [2024-12-31 10:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143065', 'tblTempUsageDetail_20' ) end [2024-12-31 10:54:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:54:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:54:27] Production.INFO: ==10423== Releasing lock... [2024-12-31 10:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:54:27] Production.INFO: 50.5 MB #Memory Used# [2024-12-31 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:55:05 [end_date_ymd] => 2024-12-31 10:55:05 [RateCDR] => 1 ) [2024-12-31 10:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:55:05' and `end` < '2024-12-31 10:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:55:18] Production.INFO: count ==3049 [2024-12-31 10:55:19] Production.ERROR: pbx CDR StartTime 2024-12-31 07:55:05 - End Time 2024-12-31 10:55:05 [2024-12-31 10:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143070', 'tblTempUsageDetail_20' ) start [2024-12-31 10:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143070', 'tblTempUsageDetail_20' ) end [2024-12-31 10:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143070', 'tblTempVendorCDR_20' ) start [2024-12-31 10:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143070', 'tblTempVendorCDR_20' ) end [2024-12-31 10:55:19] Production.INFO: ProcessCDR(1,14143070,1,1,2) [2024-12-31 10:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143070', 'tblTempUsageDetail_20' ) start [2024-12-31 10:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143070', 'tblTempUsageDetail_20' ) end [2024-12-31 10:55:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:55:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:55:24] Production.INFO: ==10496== Releasing lock... [2024-12-31 10:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:55:24] Production.INFO: 51.75 MB #Memory Used# [2024-12-31 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:56:05 [end_date_ymd] => 2024-12-31 10:56:05 [RateCDR] => 1 ) [2024-12-31 10:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:56:05' and `end` < '2024-12-31 10:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:56:22] Production.INFO: count ==3060 [2024-12-31 10:56:23] Production.ERROR: pbx CDR StartTime 2024-12-31 07:56:05 - End Time 2024-12-31 10:56:05 [2024-12-31 10:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143075', 'tblTempUsageDetail_20' ) start [2024-12-31 10:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143075', 'tblTempUsageDetail_20' ) end [2024-12-31 10:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143075', 'tblTempVendorCDR_20' ) start [2024-12-31 10:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143075', 'tblTempVendorCDR_20' ) end [2024-12-31 10:56:23] Production.INFO: ProcessCDR(1,14143075,1,1,2) [2024-12-31 10:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143075', 'tblTempUsageDetail_20' ) start [2024-12-31 10:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143075', 'tblTempUsageDetail_20' ) end [2024-12-31 10:56:28] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:56:28] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:56:28] Production.INFO: ==10567== Releasing lock... [2024-12-31 10:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:56:28] Production.INFO: 51.25 MB #Memory Used# [2024-12-31 10:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:57:04 [end_date_ymd] => 2024-12-31 10:57:04 [RateCDR] => 1 ) [2024-12-31 10:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:57:04' and `end` < '2024-12-31 10:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:57:26] Production.INFO: count ==3085 [2024-12-31 10:57:27] Production.ERROR: pbx CDR StartTime 2024-12-31 07:57:04 - End Time 2024-12-31 10:57:04 [2024-12-31 10:57:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143080', 'tblTempUsageDetail_20' ) start [2024-12-31 10:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143080', 'tblTempUsageDetail_20' ) end [2024-12-31 10:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143080', 'tblTempVendorCDR_20' ) start [2024-12-31 10:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143080', 'tblTempVendorCDR_20' ) end [2024-12-31 10:57:27] Production.INFO: ProcessCDR(1,14143080,1,1,2) [2024-12-31 10:57:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:57:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:57:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:57:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:57:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143080', 'tblTempUsageDetail_20' ) start [2024-12-31 10:57:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143080', 'tblTempUsageDetail_20' ) end [2024-12-31 10:57:32] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:57:32] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:57:32] Production.INFO: ==10637== Releasing lock... [2024-12-31 10:57:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:57:32] Production.INFO: 52 MB #Memory Used# [2024-12-31 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:58:05 [end_date_ymd] => 2024-12-31 10:58:05 [RateCDR] => 1 ) [2024-12-31 10:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:58:05' and `end` < '2024-12-31 10:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:58:22] Production.INFO: count ==3098 [2024-12-31 10:58:24] Production.ERROR: pbx CDR StartTime 2024-12-31 07:58:05 - End Time 2024-12-31 10:58:05 [2024-12-31 10:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143085', 'tblTempUsageDetail_20' ) start [2024-12-31 10:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143085', 'tblTempUsageDetail_20' ) end [2024-12-31 10:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143085', 'tblTempVendorCDR_20' ) start [2024-12-31 10:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143085', 'tblTempVendorCDR_20' ) end [2024-12-31 10:58:24] Production.INFO: ProcessCDR(1,14143085,1,1,2) [2024-12-31 10:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143085', 'tblTempUsageDetail_20' ) start [2024-12-31 10:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143085', 'tblTempUsageDetail_20' ) end [2024-12-31 10:58:28] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:58:28] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:58:28] Production.INFO: ==10709== Releasing lock... [2024-12-31 10:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:58:28] Production.INFO: 51.25 MB #Memory Used# [2024-12-31 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 07:59:05 [end_date_ymd] => 2024-12-31 10:59:05 [RateCDR] => 1 ) [2024-12-31 10:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 07:59:05' and `end` < '2024-12-31 10:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 10:59:21] Production.INFO: count ==3104 [2024-12-31 10:59:23] Production.ERROR: pbx CDR StartTime 2024-12-31 07:59:05 - End Time 2024-12-31 10:59:05 [2024-12-31 10:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 10:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143090', 'tblTempUsageDetail_20' ) start [2024-12-31 10:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143090', 'tblTempUsageDetail_20' ) end [2024-12-31 10:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143090', 'tblTempVendorCDR_20' ) start [2024-12-31 10:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143090', 'tblTempVendorCDR_20' ) end [2024-12-31 10:59:23] Production.INFO: ProcessCDR(1,14143090,1,1,2) [2024-12-31 10:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 10:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 10:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143090', 'tblTempUsageDetail_20' ) start [2024-12-31 10:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143090', 'tblTempUsageDetail_20' ) end [2024-12-31 10:59:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 10:59:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 10:59:27] Production.INFO: ==10785== Releasing lock... [2024-12-31 10:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 10:59:27] Production.INFO: 51.5 MB #Memory Used# [2024-12-31 11:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:00:05 [end_date_ymd] => 2024-12-31 11:00:05 [RateCDR] => 1 ) [2024-12-31 11:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:00:05' and `end` < '2024-12-31 11:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:00:19] Production.INFO: count ==3115 [2024-12-31 11:00:20] Production.ERROR: pbx CDR StartTime 2024-12-31 08:00:05 - End Time 2024-12-31 11:00:05 [2024-12-31 11:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143096', 'tblTempUsageDetail_20' ) start [2024-12-31 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143096', 'tblTempUsageDetail_20' ) end [2024-12-31 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143096', 'tblTempVendorCDR_20' ) start [2024-12-31 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143096', 'tblTempVendorCDR_20' ) end [2024-12-31 11:00:20] Production.INFO: ProcessCDR(1,14143096,1,1,2) [2024-12-31 11:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143096', 'tblTempUsageDetail_20' ) start [2024-12-31 11:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143096', 'tblTempUsageDetail_20' ) end [2024-12-31 11:00:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:00:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:00:25] Production.INFO: ==10858== Releasing lock... [2024-12-31 11:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:00:25] Production.INFO: 51.75 MB #Memory Used# [2024-12-31 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:01:05 [end_date_ymd] => 2024-12-31 11:01:05 [RateCDR] => 1 ) [2024-12-31 11:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:01:05' and `end` < '2024-12-31 11:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:01:18] Production.INFO: count ==3193 [2024-12-31 11:01:19] Production.ERROR: pbx CDR StartTime 2024-12-31 08:01:05 - End Time 2024-12-31 11:01:05 [2024-12-31 11:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143101', 'tblTempUsageDetail_20' ) start [2024-12-31 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143101', 'tblTempUsageDetail_20' ) end [2024-12-31 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143101', 'tblTempVendorCDR_20' ) start [2024-12-31 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143101', 'tblTempVendorCDR_20' ) end [2024-12-31 11:01:19] Production.INFO: ProcessCDR(1,14143101,1,1,2) [2024-12-31 11:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143101', 'tblTempUsageDetail_20' ) start [2024-12-31 11:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143101', 'tblTempUsageDetail_20' ) end [2024-12-31 11:01:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:01:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:01:24] Production.INFO: ==10942== Releasing lock... [2024-12-31 11:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:01:24] Production.INFO: 52.75 MB #Memory Used# [2024-12-31 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:02:05 [end_date_ymd] => 2024-12-31 11:02:05 [RateCDR] => 1 ) [2024-12-31 11:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:02:05' and `end` < '2024-12-31 11:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:02:18] Production.INFO: count ==3194 [2024-12-31 11:02:19] Production.ERROR: pbx CDR StartTime 2024-12-31 08:02:05 - End Time 2024-12-31 11:02:05 [2024-12-31 11:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143106', 'tblTempUsageDetail_20' ) start [2024-12-31 11:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143106', 'tblTempUsageDetail_20' ) end [2024-12-31 11:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143106', 'tblTempVendorCDR_20' ) start [2024-12-31 11:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143106', 'tblTempVendorCDR_20' ) end [2024-12-31 11:02:19] Production.INFO: ProcessCDR(1,14143106,1,1,2) [2024-12-31 11:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143106', 'tblTempUsageDetail_20' ) start [2024-12-31 11:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143106', 'tblTempUsageDetail_20' ) end [2024-12-31 11:02:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:02:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:02:24] Production.INFO: ==11090== Releasing lock... [2024-12-31 11:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:02:24] Production.INFO: 53 MB #Memory Used# [2024-12-31 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:03:05 [end_date_ymd] => 2024-12-31 11:03:05 [RateCDR] => 1 ) [2024-12-31 11:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:03:05' and `end` < '2024-12-31 11:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:03:19] Production.INFO: count ==3201 [2024-12-31 11:03:20] Production.ERROR: pbx CDR StartTime 2024-12-31 08:03:05 - End Time 2024-12-31 11:03:05 [2024-12-31 11:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143111', 'tblTempUsageDetail_20' ) start [2024-12-31 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143111', 'tblTempUsageDetail_20' ) end [2024-12-31 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143111', 'tblTempVendorCDR_20' ) start [2024-12-31 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143111', 'tblTempVendorCDR_20' ) end [2024-12-31 11:03:20] Production.INFO: ProcessCDR(1,14143111,1,1,2) [2024-12-31 11:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143111', 'tblTempUsageDetail_20' ) start [2024-12-31 11:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143111', 'tblTempUsageDetail_20' ) end [2024-12-31 11:03:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:03:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:03:25] Production.INFO: ==11201== Releasing lock... [2024-12-31 11:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:03:25] Production.INFO: 52.25 MB #Memory Used# [2024-12-31 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:04:05 [end_date_ymd] => 2024-12-31 11:04:05 [RateCDR] => 1 ) [2024-12-31 11:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:04:05' and `end` < '2024-12-31 11:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:04:19] Production.INFO: count ==3208 [2024-12-31 11:04:20] Production.ERROR: pbx CDR StartTime 2024-12-31 08:04:05 - End Time 2024-12-31 11:04:05 [2024-12-31 11:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143116', 'tblTempUsageDetail_20' ) start [2024-12-31 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143116', 'tblTempUsageDetail_20' ) end [2024-12-31 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143116', 'tblTempVendorCDR_20' ) start [2024-12-31 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143116', 'tblTempVendorCDR_20' ) end [2024-12-31 11:04:20] Production.INFO: ProcessCDR(1,14143116,1,1,2) [2024-12-31 11:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143116', 'tblTempUsageDetail_20' ) start [2024-12-31 11:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143116', 'tblTempUsageDetail_20' ) end [2024-12-31 11:04:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:04:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:04:23] Production.INFO: ==11274== Releasing lock... [2024-12-31 11:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:04:23] Production.INFO: 52.5 MB #Memory Used# [2024-12-31 11:05:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:05:06 [end_date_ymd] => 2024-12-31 11:05:06 [RateCDR] => 1 ) [2024-12-31 11:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:05:06' and `end` < '2024-12-31 11:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:05:21] Production.INFO: count ==3227 [2024-12-31 11:05:22] Production.ERROR: pbx CDR StartTime 2024-12-31 08:05:06 - End Time 2024-12-31 11:05:06 [2024-12-31 11:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143121', 'tblTempUsageDetail_20' ) start [2024-12-31 11:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143121', 'tblTempUsageDetail_20' ) end [2024-12-31 11:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143121', 'tblTempVendorCDR_20' ) start [2024-12-31 11:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143121', 'tblTempVendorCDR_20' ) end [2024-12-31 11:05:22] Production.INFO: ProcessCDR(1,14143121,1,1,2) [2024-12-31 11:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143121', 'tblTempUsageDetail_20' ) start [2024-12-31 11:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143121', 'tblTempUsageDetail_20' ) end [2024-12-31 11:05:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:05:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:05:27] Production.INFO: ==11428== Releasing lock... [2024-12-31 11:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:05:27] Production.INFO: 52.25 MB #Memory Used# [2024-12-31 11:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:06:04 [end_date_ymd] => 2024-12-31 11:06:04 [RateCDR] => 1 ) [2024-12-31 11:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:06:04' and `end` < '2024-12-31 11:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:06:20] Production.INFO: count ==3229 [2024-12-31 11:06:21] Production.ERROR: pbx CDR StartTime 2024-12-31 08:06:04 - End Time 2024-12-31 11:06:04 [2024-12-31 11:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143126', 'tblTempUsageDetail_20' ) start [2024-12-31 11:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143126', 'tblTempUsageDetail_20' ) end [2024-12-31 11:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143126', 'tblTempVendorCDR_20' ) start [2024-12-31 11:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143126', 'tblTempVendorCDR_20' ) end [2024-12-31 11:06:22] Production.INFO: ProcessCDR(1,14143126,1,1,2) [2024-12-31 11:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143126', 'tblTempUsageDetail_20' ) start [2024-12-31 11:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143126', 'tblTempUsageDetail_20' ) end [2024-12-31 11:06:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:06:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:06:27] Production.INFO: ==11499== Releasing lock... [2024-12-31 11:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:06:27] Production.INFO: 52.25 MB #Memory Used# [2024-12-31 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:07:05 [end_date_ymd] => 2024-12-31 11:07:05 [RateCDR] => 1 ) [2024-12-31 11:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:07:05' and `end` < '2024-12-31 11:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:07:21] Production.INFO: count ==3238 [2024-12-31 11:07:22] Production.ERROR: pbx CDR StartTime 2024-12-31 08:07:05 - End Time 2024-12-31 11:07:05 [2024-12-31 11:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143131', 'tblTempUsageDetail_20' ) start [2024-12-31 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143131', 'tblTempUsageDetail_20' ) end [2024-12-31 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143131', 'tblTempVendorCDR_20' ) start [2024-12-31 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143131', 'tblTempVendorCDR_20' ) end [2024-12-31 11:07:22] Production.INFO: ProcessCDR(1,14143131,1,1,2) [2024-12-31 11:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143131', 'tblTempUsageDetail_20' ) start [2024-12-31 11:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143131', 'tblTempUsageDetail_20' ) end [2024-12-31 11:07:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:07:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:07:27] Production.INFO: ==11570== Releasing lock... [2024-12-31 11:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:07:27] Production.INFO: 52.5 MB #Memory Used# [2024-12-31 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:08:05 [end_date_ymd] => 2024-12-31 11:08:05 [RateCDR] => 1 ) [2024-12-31 11:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:08:05' and `end` < '2024-12-31 11:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:08:18] Production.INFO: count ==3242 [2024-12-31 11:08:20] Production.ERROR: pbx CDR StartTime 2024-12-31 08:08:05 - End Time 2024-12-31 11:08:05 [2024-12-31 11:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143136', 'tblTempUsageDetail_20' ) start [2024-12-31 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143136', 'tblTempUsageDetail_20' ) end [2024-12-31 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143136', 'tblTempVendorCDR_20' ) start [2024-12-31 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143136', 'tblTempVendorCDR_20' ) end [2024-12-31 11:08:20] Production.INFO: ProcessCDR(1,14143136,1,1,2) [2024-12-31 11:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143136', 'tblTempUsageDetail_20' ) start [2024-12-31 11:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143136', 'tblTempUsageDetail_20' ) end [2024-12-31 11:08:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:08:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:08:24] Production.INFO: ==11721== Releasing lock... [2024-12-31 11:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:08:24] Production.INFO: 53.25 MB #Memory Used# [2024-12-31 11:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:09:04 [end_date_ymd] => 2024-12-31 11:09:04 [RateCDR] => 1 ) [2024-12-31 11:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:09:04' and `end` < '2024-12-31 11:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:09:18] Production.INFO: count ==3257 [2024-12-31 11:09:19] Production.ERROR: pbx CDR StartTime 2024-12-31 08:09:04 - End Time 2024-12-31 11:09:04 [2024-12-31 11:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143141', 'tblTempUsageDetail_20' ) start [2024-12-31 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143141', 'tblTempUsageDetail_20' ) end [2024-12-31 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143141', 'tblTempVendorCDR_20' ) start [2024-12-31 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143141', 'tblTempVendorCDR_20' ) end [2024-12-31 11:09:19] Production.INFO: ProcessCDR(1,14143141,1,1,2) [2024-12-31 11:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143141', 'tblTempUsageDetail_20' ) start [2024-12-31 11:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143141', 'tblTempUsageDetail_20' ) end [2024-12-31 11:09:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:09:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:09:24] Production.INFO: ==11800== Releasing lock... [2024-12-31 11:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:09:24] Production.INFO: 52.5 MB #Memory Used# [2024-12-31 11:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:10:05 [end_date_ymd] => 2024-12-31 11:10:05 [RateCDR] => 1 ) [2024-12-31 11:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:10:05' and `end` < '2024-12-31 11:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:10:18] Production.INFO: count ==3261 [2024-12-31 11:10:19] Production.ERROR: pbx CDR StartTime 2024-12-31 08:10:05 - End Time 2024-12-31 11:10:05 [2024-12-31 11:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143147', 'tblTempUsageDetail_20' ) start [2024-12-31 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143147', 'tblTempUsageDetail_20' ) end [2024-12-31 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143147', 'tblTempVendorCDR_20' ) start [2024-12-31 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143147', 'tblTempVendorCDR_20' ) end [2024-12-31 11:10:20] Production.INFO: ProcessCDR(1,14143147,1,1,2) [2024-12-31 11:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143147', 'tblTempUsageDetail_20' ) start [2024-12-31 11:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143147', 'tblTempUsageDetail_20' ) end [2024-12-31 11:10:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:10:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:10:24] Production.INFO: ==11909== Releasing lock... [2024-12-31 11:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:10:24] Production.INFO: 52.75 MB #Memory Used# [2024-12-31 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:11:05 [end_date_ymd] => 2024-12-31 11:11:05 [RateCDR] => 1 ) [2024-12-31 11:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:11:05' and `end` < '2024-12-31 11:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:11:18] Production.INFO: count ==3324 [2024-12-31 11:11:19] Production.ERROR: pbx CDR StartTime 2024-12-31 08:11:05 - End Time 2024-12-31 11:11:05 [2024-12-31 11:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143152', 'tblTempUsageDetail_20' ) start [2024-12-31 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143152', 'tblTempUsageDetail_20' ) end [2024-12-31 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143152', 'tblTempVendorCDR_20' ) start [2024-12-31 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143152', 'tblTempVendorCDR_20' ) end [2024-12-31 11:11:20] Production.INFO: ProcessCDR(1,14143152,1,1,2) [2024-12-31 11:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143152', 'tblTempUsageDetail_20' ) start [2024-12-31 11:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143152', 'tblTempUsageDetail_20' ) end [2024-12-31 11:11:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:11:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:11:25] Production.INFO: ==12007== Releasing lock... [2024-12-31 11:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:11:25] Production.INFO: 53.25 MB #Memory Used# [2024-12-31 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:12:05 [end_date_ymd] => 2024-12-31 11:12:05 [RateCDR] => 1 ) [2024-12-31 11:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:12:05' and `end` < '2024-12-31 11:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:12:18] Production.INFO: count ==3328 [2024-12-31 11:12:20] Production.ERROR: pbx CDR StartTime 2024-12-31 08:12:05 - End Time 2024-12-31 11:12:05 [2024-12-31 11:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143157', 'tblTempUsageDetail_20' ) start [2024-12-31 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143157', 'tblTempUsageDetail_20' ) end [2024-12-31 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143157', 'tblTempVendorCDR_20' ) start [2024-12-31 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143157', 'tblTempVendorCDR_20' ) end [2024-12-31 11:12:20] Production.INFO: ProcessCDR(1,14143157,1,1,2) [2024-12-31 11:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143157', 'tblTempUsageDetail_20' ) start [2024-12-31 11:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143157', 'tblTempUsageDetail_20' ) end [2024-12-31 11:12:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:12:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:12:25] Production.INFO: ==12166== Releasing lock... [2024-12-31 11:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:12:25] Production.INFO: 53 MB #Memory Used# [2024-12-31 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:13:05 [end_date_ymd] => 2024-12-31 11:13:05 [RateCDR] => 1 ) [2024-12-31 11:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:13:05' and `end` < '2024-12-31 11:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:13:19] Production.INFO: count ==3332 [2024-12-31 11:13:20] Production.ERROR: pbx CDR StartTime 2024-12-31 08:13:05 - End Time 2024-12-31 11:13:05 [2024-12-31 11:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143162', 'tblTempUsageDetail_20' ) start [2024-12-31 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143162', 'tblTempUsageDetail_20' ) end [2024-12-31 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143162', 'tblTempVendorCDR_20' ) start [2024-12-31 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143162', 'tblTempVendorCDR_20' ) end [2024-12-31 11:13:20] Production.INFO: ProcessCDR(1,14143162,1,1,2) [2024-12-31 11:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143162', 'tblTempUsageDetail_20' ) start [2024-12-31 11:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143162', 'tblTempUsageDetail_20' ) end [2024-12-31 11:13:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:13:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:13:25] Production.INFO: ==12236== Releasing lock... [2024-12-31 11:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:13:25] Production.INFO: 53.5 MB #Memory Used# [2024-12-31 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:14:05 [end_date_ymd] => 2024-12-31 11:14:05 [RateCDR] => 1 ) [2024-12-31 11:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:14:05' and `end` < '2024-12-31 11:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:14:21] Production.INFO: count ==3338 [2024-12-31 11:14:22] Production.ERROR: pbx CDR StartTime 2024-12-31 08:14:05 - End Time 2024-12-31 11:14:05 [2024-12-31 11:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143167', 'tblTempUsageDetail_20' ) start [2024-12-31 11:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143167', 'tblTempUsageDetail_20' ) end [2024-12-31 11:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143167', 'tblTempVendorCDR_20' ) start [2024-12-31 11:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143167', 'tblTempVendorCDR_20' ) end [2024-12-31 11:14:23] Production.INFO: ProcessCDR(1,14143167,1,1,2) [2024-12-31 11:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143167', 'tblTempUsageDetail_20' ) start [2024-12-31 11:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143167', 'tblTempUsageDetail_20' ) end [2024-12-31 11:14:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:14:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:14:27] Production.INFO: ==12307== Releasing lock... [2024-12-31 11:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:14:27] Production.INFO: 53.5 MB #Memory Used# [2024-12-31 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:15:05 [end_date_ymd] => 2024-12-31 11:15:05 [RateCDR] => 1 ) [2024-12-31 11:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:15:05' and `end` < '2024-12-31 11:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:15:21] Production.INFO: count ==3342 [2024-12-31 11:15:22] Production.ERROR: pbx CDR StartTime 2024-12-31 08:15:05 - End Time 2024-12-31 11:15:05 [2024-12-31 11:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143172', 'tblTempUsageDetail_20' ) start [2024-12-31 11:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143172', 'tblTempUsageDetail_20' ) end [2024-12-31 11:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143172', 'tblTempVendorCDR_20' ) start [2024-12-31 11:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143172', 'tblTempVendorCDR_20' ) end [2024-12-31 11:15:22] Production.INFO: ProcessCDR(1,14143172,1,1,2) [2024-12-31 11:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143172', 'tblTempUsageDetail_20' ) start [2024-12-31 11:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143172', 'tblTempUsageDetail_20' ) end [2024-12-31 11:15:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:15:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:15:27] Production.INFO: ==12455== Releasing lock... [2024-12-31 11:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:15:27] Production.INFO: 54 MB #Memory Used# [2024-12-31 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:16:05 [end_date_ymd] => 2024-12-31 11:16:05 [RateCDR] => 1 ) [2024-12-31 11:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:16:05' and `end` < '2024-12-31 11:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:16:18] Production.INFO: count ==3347 [2024-12-31 11:16:20] Production.ERROR: pbx CDR StartTime 2024-12-31 08:16:05 - End Time 2024-12-31 11:16:05 [2024-12-31 11:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143177', 'tblTempUsageDetail_20' ) start [2024-12-31 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143177', 'tblTempUsageDetail_20' ) end [2024-12-31 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143177', 'tblTempVendorCDR_20' ) start [2024-12-31 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143177', 'tblTempVendorCDR_20' ) end [2024-12-31 11:16:20] Production.INFO: ProcessCDR(1,14143177,1,1,2) [2024-12-31 11:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143177', 'tblTempUsageDetail_20' ) start [2024-12-31 11:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143177', 'tblTempUsageDetail_20' ) end [2024-12-31 11:16:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:16:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:16:24] Production.INFO: ==12526== Releasing lock... [2024-12-31 11:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:16:24] Production.INFO: 54 MB #Memory Used# [2024-12-31 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:17:05 [end_date_ymd] => 2024-12-31 11:17:05 [RateCDR] => 1 ) [2024-12-31 11:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:17:05' and `end` < '2024-12-31 11:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:17:18] Production.INFO: count ==3348 [2024-12-31 11:17:20] Production.ERROR: pbx CDR StartTime 2024-12-31 08:17:05 - End Time 2024-12-31 11:17:05 [2024-12-31 11:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143182', 'tblTempUsageDetail_20' ) start [2024-12-31 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143182', 'tblTempUsageDetail_20' ) end [2024-12-31 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143182', 'tblTempVendorCDR_20' ) start [2024-12-31 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143182', 'tblTempVendorCDR_20' ) end [2024-12-31 11:17:20] Production.INFO: ProcessCDR(1,14143182,1,1,2) [2024-12-31 11:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143182', 'tblTempUsageDetail_20' ) start [2024-12-31 11:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143182', 'tblTempUsageDetail_20' ) end [2024-12-31 11:17:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:17:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:17:24] Production.INFO: ==12598== Releasing lock... [2024-12-31 11:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:17:24] Production.INFO: 54 MB #Memory Used# [2024-12-31 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:18:05 [end_date_ymd] => 2024-12-31 11:18:05 [RateCDR] => 1 ) [2024-12-31 11:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:18:05' and `end` < '2024-12-31 11:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:18:19] Production.INFO: count ==3362 [2024-12-31 11:18:20] Production.ERROR: pbx CDR StartTime 2024-12-31 08:18:05 - End Time 2024-12-31 11:18:05 [2024-12-31 11:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143187', 'tblTempUsageDetail_20' ) start [2024-12-31 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143187', 'tblTempUsageDetail_20' ) end [2024-12-31 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143187', 'tblTempVendorCDR_20' ) start [2024-12-31 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143187', 'tblTempVendorCDR_20' ) end [2024-12-31 11:18:20] Production.INFO: ProcessCDR(1,14143187,1,1,2) [2024-12-31 11:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143187', 'tblTempUsageDetail_20' ) start [2024-12-31 11:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143187', 'tblTempUsageDetail_20' ) end [2024-12-31 11:18:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:18:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:18:25] Production.INFO: ==12673== Releasing lock... [2024-12-31 11:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:18:25] Production.INFO: 54.5 MB #Memory Used# [2024-12-31 11:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:19:04 [end_date_ymd] => 2024-12-31 11:19:04 [RateCDR] => 1 ) [2024-12-31 11:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:19:04' and `end` < '2024-12-31 11:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:19:18] Production.INFO: count ==3377 [2024-12-31 11:19:19] Production.ERROR: pbx CDR StartTime 2024-12-31 08:19:04 - End Time 2024-12-31 11:19:04 [2024-12-31 11:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143192', 'tblTempUsageDetail_20' ) start [2024-12-31 11:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143192', 'tblTempUsageDetail_20' ) end [2024-12-31 11:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143192', 'tblTempVendorCDR_20' ) start [2024-12-31 11:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143192', 'tblTempVendorCDR_20' ) end [2024-12-31 11:19:19] Production.INFO: ProcessCDR(1,14143192,1,1,2) [2024-12-31 11:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143192', 'tblTempUsageDetail_20' ) start [2024-12-31 11:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143192', 'tblTempUsageDetail_20' ) end [2024-12-31 11:19:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:19:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:19:24] Production.INFO: ==12783== Releasing lock... [2024-12-31 11:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:19:24] Production.INFO: 54.75 MB #Memory Used# [2024-12-31 11:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:20:05 [end_date_ymd] => 2024-12-31 11:20:05 [RateCDR] => 1 ) [2024-12-31 11:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:20:05' and `end` < '2024-12-31 11:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:20:19] Production.INFO: count ==3373 [2024-12-31 11:20:20] Production.ERROR: pbx CDR StartTime 2024-12-31 08:20:05 - End Time 2024-12-31 11:20:05 [2024-12-31 11:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143197', 'tblTempUsageDetail_20' ) start [2024-12-31 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143197', 'tblTempUsageDetail_20' ) end [2024-12-31 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143197', 'tblTempVendorCDR_20' ) start [2024-12-31 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143197', 'tblTempVendorCDR_20' ) end [2024-12-31 11:20:20] Production.INFO: ProcessCDR(1,14143197,1,1,2) [2024-12-31 11:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143197', 'tblTempUsageDetail_20' ) start [2024-12-31 11:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143197', 'tblTempUsageDetail_20' ) end [2024-12-31 11:20:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:20:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:20:23] Production.INFO: ==12857== Releasing lock... [2024-12-31 11:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:20:23] Production.INFO: 53.25 MB #Memory Used# [2024-12-31 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:21:05 [end_date_ymd] => 2024-12-31 11:21:05 [RateCDR] => 1 ) [2024-12-31 11:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:21:05' and `end` < '2024-12-31 11:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:21:19] Production.INFO: count ==3435 [2024-12-31 11:21:20] Production.ERROR: pbx CDR StartTime 2024-12-31 08:21:05 - End Time 2024-12-31 11:21:05 [2024-12-31 11:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143203', 'tblTempUsageDetail_20' ) start [2024-12-31 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143203', 'tblTempUsageDetail_20' ) end [2024-12-31 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143203', 'tblTempVendorCDR_20' ) start [2024-12-31 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143203', 'tblTempVendorCDR_20' ) end [2024-12-31 11:21:20] Production.INFO: ProcessCDR(1,14143203,1,1,2) [2024-12-31 11:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143203', 'tblTempUsageDetail_20' ) start [2024-12-31 11:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143203', 'tblTempUsageDetail_20' ) end [2024-12-31 11:21:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:21:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:21:25] Production.INFO: ==12932== Releasing lock... [2024-12-31 11:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:21:25] Production.INFO: 54.25 MB #Memory Used# [2024-12-31 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:22:05 [end_date_ymd] => 2024-12-31 11:22:05 [RateCDR] => 1 ) [2024-12-31 11:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:22:05' and `end` < '2024-12-31 11:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:22:18] Production.INFO: count ==3443 [2024-12-31 11:22:20] Production.ERROR: pbx CDR StartTime 2024-12-31 08:22:05 - End Time 2024-12-31 11:22:05 [2024-12-31 11:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143208', 'tblTempUsageDetail_20' ) start [2024-12-31 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143208', 'tblTempUsageDetail_20' ) end [2024-12-31 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143208', 'tblTempVendorCDR_20' ) start [2024-12-31 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143208', 'tblTempVendorCDR_20' ) end [2024-12-31 11:22:20] Production.INFO: ProcessCDR(1,14143208,1,1,2) [2024-12-31 11:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143208', 'tblTempUsageDetail_20' ) start [2024-12-31 11:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143208', 'tblTempUsageDetail_20' ) end [2024-12-31 11:22:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:22:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:22:25] Production.INFO: ==13003== Releasing lock... [2024-12-31 11:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:22:25] Production.INFO: 54.75 MB #Memory Used# [2024-12-31 11:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:23:04 [end_date_ymd] => 2024-12-31 11:23:04 [RateCDR] => 1 ) [2024-12-31 11:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:23:04' and `end` < '2024-12-31 11:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:23:19] Production.INFO: count ==3448 [2024-12-31 11:23:20] Production.ERROR: pbx CDR StartTime 2024-12-31 08:23:04 - End Time 2024-12-31 11:23:04 [2024-12-31 11:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143213', 'tblTempUsageDetail_20' ) start [2024-12-31 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143213', 'tblTempUsageDetail_20' ) end [2024-12-31 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143213', 'tblTempVendorCDR_20' ) start [2024-12-31 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143213', 'tblTempVendorCDR_20' ) end [2024-12-31 11:23:20] Production.INFO: ProcessCDR(1,14143213,1,1,2) [2024-12-31 11:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143213', 'tblTempUsageDetail_20' ) start [2024-12-31 11:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143213', 'tblTempUsageDetail_20' ) end [2024-12-31 11:23:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:23:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:23:25] Production.INFO: ==13077== Releasing lock... [2024-12-31 11:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:23:25] Production.INFO: 54.25 MB #Memory Used# [2024-12-31 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:24:05 [end_date_ymd] => 2024-12-31 11:24:05 [RateCDR] => 1 ) [2024-12-31 11:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:24:05' and `end` < '2024-12-31 11:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:24:18] Production.INFO: count ==3472 [2024-12-31 11:24:20] Production.ERROR: pbx CDR StartTime 2024-12-31 08:24:05 - End Time 2024-12-31 11:24:05 [2024-12-31 11:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143218', 'tblTempUsageDetail_20' ) start [2024-12-31 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143218', 'tblTempUsageDetail_20' ) end [2024-12-31 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143218', 'tblTempVendorCDR_20' ) start [2024-12-31 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143218', 'tblTempVendorCDR_20' ) end [2024-12-31 11:24:20] Production.INFO: ProcessCDR(1,14143218,1,1,2) [2024-12-31 11:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143218', 'tblTempUsageDetail_20' ) start [2024-12-31 11:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143218', 'tblTempUsageDetail_20' ) end [2024-12-31 11:24:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:24:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:24:25] Production.INFO: ==13194== Releasing lock... [2024-12-31 11:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:24:25] Production.INFO: 54.5 MB #Memory Used# [2024-12-31 11:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:25:04 [end_date_ymd] => 2024-12-31 11:25:04 [RateCDR] => 1 ) [2024-12-31 11:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:25:04' and `end` < '2024-12-31 11:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:25:17] Production.INFO: count ==3485 [2024-12-31 11:25:19] Production.ERROR: pbx CDR StartTime 2024-12-31 08:25:04 - End Time 2024-12-31 11:25:04 [2024-12-31 11:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143223', 'tblTempUsageDetail_20' ) start [2024-12-31 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143223', 'tblTempUsageDetail_20' ) end [2024-12-31 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143223', 'tblTempVendorCDR_20' ) start [2024-12-31 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143223', 'tblTempVendorCDR_20' ) end [2024-12-31 11:25:19] Production.INFO: ProcessCDR(1,14143223,1,1,2) [2024-12-31 11:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143223', 'tblTempUsageDetail_20' ) start [2024-12-31 11:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143223', 'tblTempUsageDetail_20' ) end [2024-12-31 11:25:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:25:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:25:23] Production.INFO: ==13309== Releasing lock... [2024-12-31 11:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:25:23] Production.INFO: 54.5 MB #Memory Used# [2024-12-31 11:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:26:04 [end_date_ymd] => 2024-12-31 11:26:04 [RateCDR] => 1 ) [2024-12-31 11:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:26:04' and `end` < '2024-12-31 11:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:26:19] Production.INFO: count ==3501 [2024-12-31 11:26:20] Production.ERROR: pbx CDR StartTime 2024-12-31 08:26:04 - End Time 2024-12-31 11:26:04 [2024-12-31 11:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143228', 'tblTempUsageDetail_20' ) start [2024-12-31 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143228', 'tblTempUsageDetail_20' ) end [2024-12-31 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143228', 'tblTempVendorCDR_20' ) start [2024-12-31 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143228', 'tblTempVendorCDR_20' ) end [2024-12-31 11:26:20] Production.INFO: ProcessCDR(1,14143228,1,1,2) [2024-12-31 11:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143228', 'tblTempUsageDetail_20' ) start [2024-12-31 11:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143228', 'tblTempUsageDetail_20' ) end [2024-12-31 11:26:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:26:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:26:24] Production.INFO: ==13429== Releasing lock... [2024-12-31 11:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:26:24] Production.INFO: 54.5 MB #Memory Used# [2024-12-31 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:27:05 [end_date_ymd] => 2024-12-31 11:27:05 [RateCDR] => 1 ) [2024-12-31 11:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:27:05' and `end` < '2024-12-31 11:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:27:19] Production.INFO: count ==3528 [2024-12-31 11:27:20] Production.ERROR: pbx CDR StartTime 2024-12-31 08:27:05 - End Time 2024-12-31 11:27:05 [2024-12-31 11:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143233', 'tblTempUsageDetail_20' ) start [2024-12-31 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143233', 'tblTempUsageDetail_20' ) end [2024-12-31 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143233', 'tblTempVendorCDR_20' ) start [2024-12-31 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143233', 'tblTempVendorCDR_20' ) end [2024-12-31 11:27:20] Production.INFO: ProcessCDR(1,14143233,1,1,2) [2024-12-31 11:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143233', 'tblTempUsageDetail_20' ) start [2024-12-31 11:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143233', 'tblTempUsageDetail_20' ) end [2024-12-31 11:27:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:27:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:27:25] Production.INFO: ==13550== Releasing lock... [2024-12-31 11:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:27:25] Production.INFO: 54.75 MB #Memory Used# [2024-12-31 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:28:05 [end_date_ymd] => 2024-12-31 11:28:05 [RateCDR] => 1 ) [2024-12-31 11:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:28:05' and `end` < '2024-12-31 11:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:28:23] Production.INFO: count ==3552 [2024-12-31 11:28:24] Production.ERROR: pbx CDR StartTime 2024-12-31 08:28:05 - End Time 2024-12-31 11:28:05 [2024-12-31 11:28:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143238', 'tblTempUsageDetail_20' ) start [2024-12-31 11:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143238', 'tblTempUsageDetail_20' ) end [2024-12-31 11:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143238', 'tblTempVendorCDR_20' ) start [2024-12-31 11:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143238', 'tblTempVendorCDR_20' ) end [2024-12-31 11:28:24] Production.INFO: ProcessCDR(1,14143238,1,1,2) [2024-12-31 11:28:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:28:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:28:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143238', 'tblTempUsageDetail_20' ) start [2024-12-31 11:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143238', 'tblTempUsageDetail_20' ) end [2024-12-31 11:28:29] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:28:29] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:28:29] Production.INFO: ==13670== Releasing lock... [2024-12-31 11:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:28:29] Production.INFO: 55.5 MB #Memory Used# [2024-12-31 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:29:05 [end_date_ymd] => 2024-12-31 11:29:05 [RateCDR] => 1 ) [2024-12-31 11:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:29:05' and `end` < '2024-12-31 11:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:29:24] Production.INFO: count ==3553 [2024-12-31 11:29:26] Production.ERROR: pbx CDR StartTime 2024-12-31 08:29:05 - End Time 2024-12-31 11:29:05 [2024-12-31 11:29:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143243', 'tblTempUsageDetail_20' ) start [2024-12-31 11:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143243', 'tblTempUsageDetail_20' ) end [2024-12-31 11:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143243', 'tblTempVendorCDR_20' ) start [2024-12-31 11:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143243', 'tblTempVendorCDR_20' ) end [2024-12-31 11:29:26] Production.INFO: ProcessCDR(1,14143243,1,1,2) [2024-12-31 11:29:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:29:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:29:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:29:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143243', 'tblTempUsageDetail_20' ) start [2024-12-31 11:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143243', 'tblTempUsageDetail_20' ) end [2024-12-31 11:29:30] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:29:30] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:29:30] Production.INFO: ==13784== Releasing lock... [2024-12-31 11:29:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:29:30] Production.INFO: 54.5 MB #Memory Used# [2024-12-31 11:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:30:05 [end_date_ymd] => 2024-12-31 11:30:05 [RateCDR] => 1 ) [2024-12-31 11:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:30:05' and `end` < '2024-12-31 11:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:30:24] Production.INFO: count ==3580 [2024-12-31 11:30:25] Production.ERROR: pbx CDR StartTime 2024-12-31 08:30:05 - End Time 2024-12-31 11:30:05 [2024-12-31 11:30:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143249', 'tblTempUsageDetail_20' ) start [2024-12-31 11:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143249', 'tblTempUsageDetail_20' ) end [2024-12-31 11:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143249', 'tblTempVendorCDR_20' ) start [2024-12-31 11:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143249', 'tblTempVendorCDR_20' ) end [2024-12-31 11:30:25] Production.INFO: ProcessCDR(1,14143249,1,1,2) [2024-12-31 11:30:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:30:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:30:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:30:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143249', 'tblTempUsageDetail_20' ) start [2024-12-31 11:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143249', 'tblTempUsageDetail_20' ) end [2024-12-31 11:30:30] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:30:30] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:30:30] Production.INFO: ==13904== Releasing lock... [2024-12-31 11:30:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:30:30] Production.INFO: 55.25 MB #Memory Used# [2024-12-31 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:31:05 [end_date_ymd] => 2024-12-31 11:31:05 [RateCDR] => 1 ) [2024-12-31 11:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:31:05' and `end` < '2024-12-31 11:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:31:25] Production.INFO: count ==3651 [2024-12-31 11:31:26] Production.ERROR: pbx CDR StartTime 2024-12-31 08:31:05 - End Time 2024-12-31 11:31:05 [2024-12-31 11:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143254', 'tblTempUsageDetail_20' ) start [2024-12-31 11:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143254', 'tblTempUsageDetail_20' ) end [2024-12-31 11:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143254', 'tblTempVendorCDR_20' ) start [2024-12-31 11:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143254', 'tblTempVendorCDR_20' ) end [2024-12-31 11:31:26] Production.INFO: ProcessCDR(1,14143254,1,1,2) [2024-12-31 11:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:31:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:31:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:31:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143254', 'tblTempUsageDetail_20' ) start [2024-12-31 11:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143254', 'tblTempUsageDetail_20' ) end [2024-12-31 11:31:31] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:31:31] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:31:31] Production.INFO: ==14024== Releasing lock... [2024-12-31 11:31:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:31:31] Production.INFO: 56 MB #Memory Used# [2024-12-31 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:32:05 [end_date_ymd] => 2024-12-31 11:32:05 [RateCDR] => 1 ) [2024-12-31 11:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:32:05' and `end` < '2024-12-31 11:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:32:18] Production.INFO: count ==3670 [2024-12-31 11:32:20] Production.ERROR: pbx CDR StartTime 2024-12-31 08:32:05 - End Time 2024-12-31 11:32:05 [2024-12-31 11:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143259', 'tblTempUsageDetail_20' ) start [2024-12-31 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143259', 'tblTempUsageDetail_20' ) end [2024-12-31 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143259', 'tblTempVendorCDR_20' ) start [2024-12-31 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143259', 'tblTempVendorCDR_20' ) end [2024-12-31 11:32:20] Production.INFO: ProcessCDR(1,14143259,1,1,2) [2024-12-31 11:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143259', 'tblTempUsageDetail_20' ) start [2024-12-31 11:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143259', 'tblTempUsageDetail_20' ) end [2024-12-31 11:32:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:32:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:32:24] Production.INFO: ==14140== Releasing lock... [2024-12-31 11:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:32:24] Production.INFO: 55.5 MB #Memory Used# [2024-12-31 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:33:05 [end_date_ymd] => 2024-12-31 11:33:05 [RateCDR] => 1 ) [2024-12-31 11:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:33:05' and `end` < '2024-12-31 11:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:33:22] Production.INFO: count ==3663 [2024-12-31 11:33:23] Production.ERROR: pbx CDR StartTime 2024-12-31 08:33:05 - End Time 2024-12-31 11:33:05 [2024-12-31 11:33:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143264', 'tblTempUsageDetail_20' ) start [2024-12-31 11:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143264', 'tblTempUsageDetail_20' ) end [2024-12-31 11:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143264', 'tblTempVendorCDR_20' ) start [2024-12-31 11:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143264', 'tblTempVendorCDR_20' ) end [2024-12-31 11:33:23] Production.INFO: ProcessCDR(1,14143264,1,1,2) [2024-12-31 11:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143264', 'tblTempUsageDetail_20' ) start [2024-12-31 11:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143264', 'tblTempUsageDetail_20' ) end [2024-12-31 11:33:28] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:33:28] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:33:28] Production.INFO: ==14258== Releasing lock... [2024-12-31 11:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:33:28] Production.INFO: 55.5 MB #Memory Used# [2024-12-31 11:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:34:04 [end_date_ymd] => 2024-12-31 11:34:04 [RateCDR] => 1 ) [2024-12-31 11:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:34:04' and `end` < '2024-12-31 11:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:34:22] Production.INFO: count ==3668 [2024-12-31 11:34:23] Production.ERROR: pbx CDR StartTime 2024-12-31 08:34:04 - End Time 2024-12-31 11:34:04 [2024-12-31 11:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143269', 'tblTempUsageDetail_20' ) start [2024-12-31 11:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143269', 'tblTempUsageDetail_20' ) end [2024-12-31 11:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143269', 'tblTempVendorCDR_20' ) start [2024-12-31 11:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143269', 'tblTempVendorCDR_20' ) end [2024-12-31 11:34:23] Production.INFO: ProcessCDR(1,14143269,1,1,2) [2024-12-31 11:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143269', 'tblTempUsageDetail_20' ) start [2024-12-31 11:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143269', 'tblTempUsageDetail_20' ) end [2024-12-31 11:34:28] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:34:28] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:34:28] Production.INFO: ==14417== Releasing lock... [2024-12-31 11:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:34:28] Production.INFO: 56 MB #Memory Used# [2024-12-31 11:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:35:04 [end_date_ymd] => 2024-12-31 11:35:04 [RateCDR] => 1 ) [2024-12-31 11:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:35:04' and `end` < '2024-12-31 11:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:35:24] Production.INFO: count ==3677 [2024-12-31 11:35:26] Production.ERROR: pbx CDR StartTime 2024-12-31 08:35:04 - End Time 2024-12-31 11:35:04 [2024-12-31 11:35:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143270', 'tblTempUsageDetail_20' ) start [2024-12-31 11:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143270', 'tblTempUsageDetail_20' ) end [2024-12-31 11:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143270', 'tblTempVendorCDR_20' ) start [2024-12-31 11:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143270', 'tblTempVendorCDR_20' ) end [2024-12-31 11:35:26] Production.INFO: ProcessCDR(1,14143270,1,1,2) [2024-12-31 11:35:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:35:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:35:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:35:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143270', 'tblTempUsageDetail_20' ) start [2024-12-31 11:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143270', 'tblTempUsageDetail_20' ) end [2024-12-31 11:35:30] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:35:30] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:35:30] Production.INFO: ==14533== Releasing lock... [2024-12-31 11:35:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:35:30] Production.INFO: 56.5 MB #Memory Used# [2024-12-31 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:36:05 [end_date_ymd] => 2024-12-31 11:36:05 [RateCDR] => 1 ) [2024-12-31 11:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:36:05' and `end` < '2024-12-31 11:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:36:24] Production.INFO: count ==3694 [2024-12-31 11:36:25] Production.ERROR: pbx CDR StartTime 2024-12-31 08:36:05 - End Time 2024-12-31 11:36:05 [2024-12-31 11:36:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143279', 'tblTempUsageDetail_20' ) start [2024-12-31 11:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143279', 'tblTempUsageDetail_20' ) end [2024-12-31 11:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143279', 'tblTempVendorCDR_20' ) start [2024-12-31 11:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143279', 'tblTempVendorCDR_20' ) end [2024-12-31 11:36:25] Production.INFO: ProcessCDR(1,14143279,1,1,2) [2024-12-31 11:36:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:36:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:36:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:36:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143279', 'tblTempUsageDetail_20' ) start [2024-12-31 11:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143279', 'tblTempUsageDetail_20' ) end [2024-12-31 11:36:30] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:36:30] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:36:30] Production.INFO: ==14646== Releasing lock... [2024-12-31 11:36:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:36:30] Production.INFO: 55.5 MB #Memory Used# [2024-12-31 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:37:05 [end_date_ymd] => 2024-12-31 11:37:05 [RateCDR] => 1 ) [2024-12-31 11:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:37:05' and `end` < '2024-12-31 11:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:37:22] Production.INFO: count ==3703 [2024-12-31 11:37:23] Production.ERROR: pbx CDR StartTime 2024-12-31 08:37:05 - End Time 2024-12-31 11:37:05 [2024-12-31 11:37:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143284', 'tblTempUsageDetail_20' ) start [2024-12-31 11:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143284', 'tblTempUsageDetail_20' ) end [2024-12-31 11:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143284', 'tblTempVendorCDR_20' ) start [2024-12-31 11:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143284', 'tblTempVendorCDR_20' ) end [2024-12-31 11:37:24] Production.INFO: ProcessCDR(1,14143284,1,1,2) [2024-12-31 11:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143284', 'tblTempUsageDetail_20' ) start [2024-12-31 11:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143284', 'tblTempUsageDetail_20' ) end [2024-12-31 11:37:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:37:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:37:27] Production.INFO: ==14764== Releasing lock... [2024-12-31 11:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:37:27] Production.INFO: 56.25 MB #Memory Used# [2024-12-31 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:38:05 [end_date_ymd] => 2024-12-31 11:38:05 [RateCDR] => 1 ) [2024-12-31 11:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:38:05' and `end` < '2024-12-31 11:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:38:21] Production.INFO: count ==3705 [2024-12-31 11:38:23] Production.ERROR: pbx CDR StartTime 2024-12-31 08:38:05 - End Time 2024-12-31 11:38:05 [2024-12-31 11:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143289', 'tblTempUsageDetail_20' ) start [2024-12-31 11:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143289', 'tblTempUsageDetail_20' ) end [2024-12-31 11:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143289', 'tblTempVendorCDR_20' ) start [2024-12-31 11:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143289', 'tblTempVendorCDR_20' ) end [2024-12-31 11:38:23] Production.INFO: ProcessCDR(1,14143289,1,1,2) [2024-12-31 11:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143289', 'tblTempUsageDetail_20' ) start [2024-12-31 11:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143289', 'tblTempUsageDetail_20' ) end [2024-12-31 11:38:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:38:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:38:27] Production.INFO: ==14881== Releasing lock... [2024-12-31 11:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:38:27] Production.INFO: 56 MB #Memory Used# [2024-12-31 11:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:39:04 [end_date_ymd] => 2024-12-31 11:39:04 [RateCDR] => 1 ) [2024-12-31 11:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:39:04' and `end` < '2024-12-31 11:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:39:18] Production.INFO: count ==3709 [2024-12-31 11:39:19] Production.ERROR: pbx CDR StartTime 2024-12-31 08:39:04 - End Time 2024-12-31 11:39:04 [2024-12-31 11:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143294', 'tblTempUsageDetail_20' ) start [2024-12-31 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143294', 'tblTempUsageDetail_20' ) end [2024-12-31 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143294', 'tblTempVendorCDR_20' ) start [2024-12-31 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143294', 'tblTempVendorCDR_20' ) end [2024-12-31 11:39:19] Production.INFO: ProcessCDR(1,14143294,1,1,2) [2024-12-31 11:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143294', 'tblTempUsageDetail_20' ) start [2024-12-31 11:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143294', 'tblTempUsageDetail_20' ) end [2024-12-31 11:39:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:39:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:39:24] Production.INFO: ==15001== Releasing lock... [2024-12-31 11:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:39:24] Production.INFO: 56.25 MB #Memory Used# [2024-12-31 11:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:40:05 [end_date_ymd] => 2024-12-31 11:40:05 [RateCDR] => 1 ) [2024-12-31 11:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:40:05' and `end` < '2024-12-31 11:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:40:26] Production.INFO: count ==3728 [2024-12-31 11:40:28] Production.ERROR: pbx CDR StartTime 2024-12-31 08:40:05 - End Time 2024-12-31 11:40:05 [2024-12-31 11:40:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143300', 'tblTempUsageDetail_20' ) start [2024-12-31 11:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143300', 'tblTempUsageDetail_20' ) end [2024-12-31 11:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143300', 'tblTempVendorCDR_20' ) start [2024-12-31 11:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143300', 'tblTempVendorCDR_20' ) end [2024-12-31 11:40:28] Production.INFO: ProcessCDR(1,14143300,1,1,2) [2024-12-31 11:40:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:40:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:40:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:40:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143300', 'tblTempUsageDetail_20' ) start [2024-12-31 11:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143300', 'tblTempUsageDetail_20' ) end [2024-12-31 11:40:32] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:40:32] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:40:32] Production.INFO: ==15126== Releasing lock... [2024-12-31 11:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:40:32] Production.INFO: 55.75 MB #Memory Used# [2024-12-31 11:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:41:04 [end_date_ymd] => 2024-12-31 11:41:04 [RateCDR] => 1 ) [2024-12-31 11:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:41:04' and `end` < '2024-12-31 11:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:41:19] Production.INFO: count ==3780 [2024-12-31 11:41:21] Production.ERROR: pbx CDR StartTime 2024-12-31 08:41:04 - End Time 2024-12-31 11:41:04 [2024-12-31 11:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143305', 'tblTempUsageDetail_20' ) start [2024-12-31 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143305', 'tblTempUsageDetail_20' ) end [2024-12-31 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143305', 'tblTempVendorCDR_20' ) start [2024-12-31 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143305', 'tblTempVendorCDR_20' ) end [2024-12-31 11:41:21] Production.INFO: ProcessCDR(1,14143305,1,1,2) [2024-12-31 11:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143305', 'tblTempUsageDetail_20' ) start [2024-12-31 11:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143305', 'tblTempUsageDetail_20' ) end [2024-12-31 11:41:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:41:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:41:26] Production.INFO: ==15244== Releasing lock... [2024-12-31 11:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:41:26] Production.INFO: 56.25 MB #Memory Used# [2024-12-31 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:42:05 [end_date_ymd] => 2024-12-31 11:42:05 [RateCDR] => 1 ) [2024-12-31 11:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:42:05' and `end` < '2024-12-31 11:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:42:19] Production.INFO: count ==3791 [2024-12-31 11:42:20] Production.ERROR: pbx CDR StartTime 2024-12-31 08:42:05 - End Time 2024-12-31 11:42:05 [2024-12-31 11:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143310', 'tblTempUsageDetail_20' ) start [2024-12-31 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143310', 'tblTempUsageDetail_20' ) end [2024-12-31 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143310', 'tblTempVendorCDR_20' ) start [2024-12-31 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143310', 'tblTempVendorCDR_20' ) end [2024-12-31 11:42:20] Production.INFO: ProcessCDR(1,14143310,1,1,2) [2024-12-31 11:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143310', 'tblTempUsageDetail_20' ) start [2024-12-31 11:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143310', 'tblTempUsageDetail_20' ) end [2024-12-31 11:42:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:42:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:42:25] Production.INFO: ==15360== Releasing lock... [2024-12-31 11:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:42:25] Production.INFO: 56.5 MB #Memory Used# [2024-12-31 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:43:05 [end_date_ymd] => 2024-12-31 11:43:05 [RateCDR] => 1 ) [2024-12-31 11:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:43:05' and `end` < '2024-12-31 11:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:43:24] Production.INFO: count ==3799 [2024-12-31 11:43:25] Production.ERROR: pbx CDR StartTime 2024-12-31 08:43:05 - End Time 2024-12-31 11:43:05 [2024-12-31 11:43:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143315', 'tblTempUsageDetail_20' ) start [2024-12-31 11:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143315', 'tblTempUsageDetail_20' ) end [2024-12-31 11:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143315', 'tblTempVendorCDR_20' ) start [2024-12-31 11:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143315', 'tblTempVendorCDR_20' ) end [2024-12-31 11:43:25] Production.INFO: ProcessCDR(1,14143315,1,1,2) [2024-12-31 11:43:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:43:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:43:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:43:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143315', 'tblTempUsageDetail_20' ) start [2024-12-31 11:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143315', 'tblTempUsageDetail_20' ) end [2024-12-31 11:43:30] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:43:30] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:43:30] Production.INFO: ==15477== Releasing lock... [2024-12-31 11:43:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:43:30] Production.INFO: 56.5 MB #Memory Used# [2024-12-31 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:44:05 [end_date_ymd] => 2024-12-31 11:44:05 [RateCDR] => 1 ) [2024-12-31 11:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:44:05' and `end` < '2024-12-31 11:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:44:24] Production.INFO: count ==3798 [2024-12-31 11:44:26] Production.ERROR: pbx CDR StartTime 2024-12-31 08:44:05 - End Time 2024-12-31 11:44:05 [2024-12-31 11:44:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143320', 'tblTempUsageDetail_20' ) start [2024-12-31 11:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143320', 'tblTempUsageDetail_20' ) end [2024-12-31 11:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143320', 'tblTempVendorCDR_20' ) start [2024-12-31 11:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143320', 'tblTempVendorCDR_20' ) end [2024-12-31 11:44:26] Production.INFO: ProcessCDR(1,14143320,1,1,2) [2024-12-31 11:44:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:44:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:44:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:44:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143320', 'tblTempUsageDetail_20' ) start [2024-12-31 11:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143320', 'tblTempUsageDetail_20' ) end [2024-12-31 11:44:31] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:44:31] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:44:31] Production.INFO: ==15594== Releasing lock... [2024-12-31 11:44:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:44:31] Production.INFO: 56.75 MB #Memory Used# [2024-12-31 11:45:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:45:06 [end_date_ymd] => 2024-12-31 11:45:06 [RateCDR] => 1 ) [2024-12-31 11:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:45:06' and `end` < '2024-12-31 11:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:45:22] Production.INFO: count ==3814 [2024-12-31 11:45:23] Production.ERROR: pbx CDR StartTime 2024-12-31 08:45:06 - End Time 2024-12-31 11:45:06 [2024-12-31 11:45:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143325', 'tblTempUsageDetail_20' ) start [2024-12-31 11:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143325', 'tblTempUsageDetail_20' ) end [2024-12-31 11:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143325', 'tblTempVendorCDR_20' ) start [2024-12-31 11:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143325', 'tblTempVendorCDR_20' ) end [2024-12-31 11:45:24] Production.INFO: ProcessCDR(1,14143325,1,1,2) [2024-12-31 11:45:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143325', 'tblTempUsageDetail_20' ) start [2024-12-31 11:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143325', 'tblTempUsageDetail_20' ) end [2024-12-31 11:45:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:45:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:45:27] Production.INFO: ==15714== Releasing lock... [2024-12-31 11:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:45:27] Production.INFO: 56.5 MB #Memory Used# [2024-12-31 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:46:05 [end_date_ymd] => 2024-12-31 11:46:05 [RateCDR] => 1 ) [2024-12-31 11:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:46:05' and `end` < '2024-12-31 11:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:46:21] Production.INFO: count ==3825 [2024-12-31 11:46:22] Production.ERROR: pbx CDR StartTime 2024-12-31 08:46:05 - End Time 2024-12-31 11:46:05 [2024-12-31 11:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143330', 'tblTempUsageDetail_20' ) start [2024-12-31 11:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143330', 'tblTempUsageDetail_20' ) end [2024-12-31 11:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143330', 'tblTempVendorCDR_20' ) start [2024-12-31 11:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143330', 'tblTempVendorCDR_20' ) end [2024-12-31 11:46:23] Production.INFO: ProcessCDR(1,14143330,1,1,2) [2024-12-31 11:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143330', 'tblTempUsageDetail_20' ) start [2024-12-31 11:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143330', 'tblTempUsageDetail_20' ) end [2024-12-31 11:46:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:46:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:46:27] Production.INFO: ==15831== Releasing lock... [2024-12-31 11:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:46:27] Production.INFO: 56.5 MB #Memory Used# [2024-12-31 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:47:05 [end_date_ymd] => 2024-12-31 11:47:05 [RateCDR] => 1 ) [2024-12-31 11:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:47:05' and `end` < '2024-12-31 11:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:47:19] Production.INFO: count ==3829 [2024-12-31 11:47:20] Production.ERROR: pbx CDR StartTime 2024-12-31 08:47:05 - End Time 2024-12-31 11:47:05 [2024-12-31 11:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143335', 'tblTempUsageDetail_20' ) start [2024-12-31 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143335', 'tblTempUsageDetail_20' ) end [2024-12-31 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143335', 'tblTempVendorCDR_20' ) start [2024-12-31 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143335', 'tblTempVendorCDR_20' ) end [2024-12-31 11:47:20] Production.INFO: ProcessCDR(1,14143335,1,1,2) [2024-12-31 11:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143335', 'tblTempUsageDetail_20' ) start [2024-12-31 11:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143335', 'tblTempUsageDetail_20' ) end [2024-12-31 11:47:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:47:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:47:25] Production.INFO: ==15947== Releasing lock... [2024-12-31 11:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:47:25] Production.INFO: 56.5 MB #Memory Used# [2024-12-31 11:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:48:04 [end_date_ymd] => 2024-12-31 11:48:04 [RateCDR] => 1 ) [2024-12-31 11:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:48:04' and `end` < '2024-12-31 11:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:48:21] Production.INFO: count ==3830 [2024-12-31 11:48:22] Production.ERROR: pbx CDR StartTime 2024-12-31 08:48:04 - End Time 2024-12-31 11:48:04 [2024-12-31 11:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143340', 'tblTempUsageDetail_20' ) start [2024-12-31 11:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143340', 'tblTempUsageDetail_20' ) end [2024-12-31 11:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143340', 'tblTempVendorCDR_20' ) start [2024-12-31 11:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143340', 'tblTempVendorCDR_20' ) end [2024-12-31 11:48:22] Production.INFO: ProcessCDR(1,14143340,1,1,2) [2024-12-31 11:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143340', 'tblTempUsageDetail_20' ) start [2024-12-31 11:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143340', 'tblTempUsageDetail_20' ) end [2024-12-31 11:48:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:48:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:48:27] Production.INFO: ==16061== Releasing lock... [2024-12-31 11:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:48:27] Production.INFO: 56.5 MB #Memory Used# [2024-12-31 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:49:05 [end_date_ymd] => 2024-12-31 11:49:05 [RateCDR] => 1 ) [2024-12-31 11:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:49:05' and `end` < '2024-12-31 11:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:49:20] Production.INFO: count ==3830 [2024-12-31 11:49:22] Production.ERROR: pbx CDR StartTime 2024-12-31 08:49:05 - End Time 2024-12-31 11:49:05 [2024-12-31 11:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143345', 'tblTempUsageDetail_20' ) start [2024-12-31 11:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143345', 'tblTempUsageDetail_20' ) end [2024-12-31 11:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143345', 'tblTempVendorCDR_20' ) start [2024-12-31 11:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143345', 'tblTempVendorCDR_20' ) end [2024-12-31 11:49:22] Production.INFO: ProcessCDR(1,14143345,1,1,2) [2024-12-31 11:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143345', 'tblTempUsageDetail_20' ) start [2024-12-31 11:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143345', 'tblTempUsageDetail_20' ) end [2024-12-31 11:49:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:49:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:49:27] Production.INFO: ==16183== Releasing lock... [2024-12-31 11:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:49:27] Production.INFO: 56.75 MB #Memory Used# [2024-12-31 11:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:50:05 [end_date_ymd] => 2024-12-31 11:50:05 [RateCDR] => 1 ) [2024-12-31 11:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:50:05' and `end` < '2024-12-31 11:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:50:22] Production.INFO: count ==3846 [2024-12-31 11:50:24] Production.ERROR: pbx CDR StartTime 2024-12-31 08:50:05 - End Time 2024-12-31 11:50:05 [2024-12-31 11:50:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143351', 'tblTempUsageDetail_20' ) start [2024-12-31 11:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143351', 'tblTempUsageDetail_20' ) end [2024-12-31 11:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143351', 'tblTempVendorCDR_20' ) start [2024-12-31 11:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143351', 'tblTempVendorCDR_20' ) end [2024-12-31 11:50:24] Production.INFO: ProcessCDR(1,14143351,1,1,2) [2024-12-31 11:50:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143351', 'tblTempUsageDetail_20' ) start [2024-12-31 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143351', 'tblTempUsageDetail_20' ) end [2024-12-31 11:50:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:50:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:50:27] Production.INFO: ==16341== Releasing lock... [2024-12-31 11:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:50:27] Production.INFO: 57 MB #Memory Used# [2024-12-31 11:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:51:04 [end_date_ymd] => 2024-12-31 11:51:04 [RateCDR] => 1 ) [2024-12-31 11:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:51:04' and `end` < '2024-12-31 11:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:51:20] Production.INFO: count ==3912 [2024-12-31 11:51:21] Production.ERROR: pbx CDR StartTime 2024-12-31 08:51:04 - End Time 2024-12-31 11:51:04 [2024-12-31 11:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143356', 'tblTempUsageDetail_20' ) start [2024-12-31 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143356', 'tblTempUsageDetail_20' ) end [2024-12-31 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143356', 'tblTempVendorCDR_20' ) start [2024-12-31 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143356', 'tblTempVendorCDR_20' ) end [2024-12-31 11:51:21] Production.INFO: ProcessCDR(1,14143356,1,1,2) [2024-12-31 11:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143356', 'tblTempUsageDetail_20' ) start [2024-12-31 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143356', 'tblTempUsageDetail_20' ) end [2024-12-31 11:51:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:51:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:51:26] Production.INFO: ==16451== Releasing lock... [2024-12-31 11:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:51:26] Production.INFO: 57.5 MB #Memory Used# [2024-12-31 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:52:05 [end_date_ymd] => 2024-12-31 11:52:05 [RateCDR] => 1 ) [2024-12-31 11:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:52:05' and `end` < '2024-12-31 11:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:52:21] Production.INFO: count ==3910 [2024-12-31 11:52:23] Production.ERROR: pbx CDR StartTime 2024-12-31 08:52:05 - End Time 2024-12-31 11:52:05 [2024-12-31 11:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143361', 'tblTempUsageDetail_20' ) start [2024-12-31 11:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143361', 'tblTempUsageDetail_20' ) end [2024-12-31 11:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143361', 'tblTempVendorCDR_20' ) start [2024-12-31 11:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143361', 'tblTempVendorCDR_20' ) end [2024-12-31 11:52:23] Production.INFO: ProcessCDR(1,14143361,1,1,2) [2024-12-31 11:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143361', 'tblTempUsageDetail_20' ) start [2024-12-31 11:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143361', 'tblTempUsageDetail_20' ) end [2024-12-31 11:52:28] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:52:28] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:52:28] Production.INFO: ==16524== Releasing lock... [2024-12-31 11:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:52:28] Production.INFO: 57.25 MB #Memory Used# [2024-12-31 11:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:53:04 [end_date_ymd] => 2024-12-31 11:53:04 [RateCDR] => 1 ) [2024-12-31 11:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:53:04' and `end` < '2024-12-31 11:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:53:18] Production.INFO: count ==3922 [2024-12-31 11:53:19] Production.ERROR: pbx CDR StartTime 2024-12-31 08:53:04 - End Time 2024-12-31 11:53:04 [2024-12-31 11:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143366', 'tblTempUsageDetail_20' ) start [2024-12-31 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143366', 'tblTempUsageDetail_20' ) end [2024-12-31 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143366', 'tblTempVendorCDR_20' ) start [2024-12-31 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143366', 'tblTempVendorCDR_20' ) end [2024-12-31 11:53:20] Production.INFO: ProcessCDR(1,14143366,1,1,2) [2024-12-31 11:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143366', 'tblTempUsageDetail_20' ) start [2024-12-31 11:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143366', 'tblTempUsageDetail_20' ) end [2024-12-31 11:53:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:53:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:53:24] Production.INFO: ==16594== Releasing lock... [2024-12-31 11:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:53:24] Production.INFO: 57.25 MB #Memory Used# [2024-12-31 11:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:54:04 [end_date_ymd] => 2024-12-31 11:54:04 [RateCDR] => 1 ) [2024-12-31 11:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:54:04' and `end` < '2024-12-31 11:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:54:18] Production.INFO: count ==3919 [2024-12-31 11:54:20] Production.ERROR: pbx CDR StartTime 2024-12-31 08:54:04 - End Time 2024-12-31 11:54:04 [2024-12-31 11:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143371', 'tblTempUsageDetail_20' ) start [2024-12-31 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143371', 'tblTempUsageDetail_20' ) end [2024-12-31 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143371', 'tblTempVendorCDR_20' ) start [2024-12-31 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143371', 'tblTempVendorCDR_20' ) end [2024-12-31 11:54:20] Production.INFO: ProcessCDR(1,14143371,1,1,2) [2024-12-31 11:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143371', 'tblTempUsageDetail_20' ) start [2024-12-31 11:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143371', 'tblTempUsageDetail_20' ) end [2024-12-31 11:54:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:54:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:54:24] Production.INFO: ==16663== Releasing lock... [2024-12-31 11:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:54:24] Production.INFO: 57.25 MB #Memory Used# [2024-12-31 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:55:05 [end_date_ymd] => 2024-12-31 11:55:05 [RateCDR] => 1 ) [2024-12-31 11:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:55:05' and `end` < '2024-12-31 11:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:55:21] Production.INFO: count ==3922 [2024-12-31 11:55:23] Production.ERROR: pbx CDR StartTime 2024-12-31 08:55:05 - End Time 2024-12-31 11:55:05 [2024-12-31 11:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143376', 'tblTempUsageDetail_20' ) start [2024-12-31 11:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143376', 'tblTempUsageDetail_20' ) end [2024-12-31 11:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143376', 'tblTempVendorCDR_20' ) start [2024-12-31 11:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143376', 'tblTempVendorCDR_20' ) end [2024-12-31 11:55:23] Production.INFO: ProcessCDR(1,14143376,1,1,2) [2024-12-31 11:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143376', 'tblTempUsageDetail_20' ) start [2024-12-31 11:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143376', 'tblTempUsageDetail_20' ) end [2024-12-31 11:55:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:55:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:55:27] Production.INFO: ==16740== Releasing lock... [2024-12-31 11:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:55:27] Production.INFO: 57.25 MB #Memory Used# [2024-12-31 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:56:05 [end_date_ymd] => 2024-12-31 11:56:05 [RateCDR] => 1 ) [2024-12-31 11:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:56:05' and `end` < '2024-12-31 11:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:56:20] Production.INFO: count ==3923 [2024-12-31 11:56:21] Production.ERROR: pbx CDR StartTime 2024-12-31 08:56:05 - End Time 2024-12-31 11:56:05 [2024-12-31 11:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143381', 'tblTempUsageDetail_20' ) start [2024-12-31 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143381', 'tblTempUsageDetail_20' ) end [2024-12-31 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143381', 'tblTempVendorCDR_20' ) start [2024-12-31 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143381', 'tblTempVendorCDR_20' ) end [2024-12-31 11:56:22] Production.INFO: ProcessCDR(1,14143381,1,1,2) [2024-12-31 11:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143381', 'tblTempUsageDetail_20' ) start [2024-12-31 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143381', 'tblTempUsageDetail_20' ) end [2024-12-31 11:56:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:56:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:56:26] Production.INFO: ==16815== Releasing lock... [2024-12-31 11:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:56:26] Production.INFO: 57.5 MB #Memory Used# [2024-12-31 11:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:57:04 [end_date_ymd] => 2024-12-31 11:57:04 [RateCDR] => 1 ) [2024-12-31 11:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:57:04' and `end` < '2024-12-31 11:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:57:20] Production.INFO: count ==3920 [2024-12-31 11:57:21] Production.ERROR: pbx CDR StartTime 2024-12-31 08:57:04 - End Time 2024-12-31 11:57:04 [2024-12-31 11:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143386', 'tblTempUsageDetail_20' ) start [2024-12-31 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143386', 'tblTempUsageDetail_20' ) end [2024-12-31 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143386', 'tblTempVendorCDR_20' ) start [2024-12-31 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143386', 'tblTempVendorCDR_20' ) end [2024-12-31 11:57:21] Production.INFO: ProcessCDR(1,14143386,1,1,2) [2024-12-31 11:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143386', 'tblTempUsageDetail_20' ) start [2024-12-31 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143386', 'tblTempUsageDetail_20' ) end [2024-12-31 11:57:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:57:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:57:26] Production.INFO: ==16888== Releasing lock... [2024-12-31 11:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:57:26] Production.INFO: 57.25 MB #Memory Used# [2024-12-31 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:58:05 [end_date_ymd] => 2024-12-31 11:58:05 [RateCDR] => 1 ) [2024-12-31 11:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:58:05' and `end` < '2024-12-31 11:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:58:20] Production.INFO: count ==3928 [2024-12-31 11:58:22] Production.ERROR: pbx CDR StartTime 2024-12-31 08:58:05 - End Time 2024-12-31 11:58:05 [2024-12-31 11:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143391', 'tblTempUsageDetail_20' ) start [2024-12-31 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143391', 'tblTempUsageDetail_20' ) end [2024-12-31 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143391', 'tblTempVendorCDR_20' ) start [2024-12-31 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143391', 'tblTempVendorCDR_20' ) end [2024-12-31 11:58:22] Production.INFO: ProcessCDR(1,14143391,1,1,2) [2024-12-31 11:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143391', 'tblTempUsageDetail_20' ) start [2024-12-31 11:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143391', 'tblTempUsageDetail_20' ) end [2024-12-31 11:58:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:58:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:58:26] Production.INFO: ==16963== Releasing lock... [2024-12-31 11:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:58:26] Production.INFO: 57.5 MB #Memory Used# [2024-12-31 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 08:59:05 [end_date_ymd] => 2024-12-31 11:59:05 [RateCDR] => 1 ) [2024-12-31 11:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 08:59:05' and `end` < '2024-12-31 11:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 11:59:18] Production.INFO: count ==3938 [2024-12-31 11:59:19] Production.ERROR: pbx CDR StartTime 2024-12-31 08:59:05 - End Time 2024-12-31 11:59:05 [2024-12-31 11:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143396', 'tblTempUsageDetail_20' ) start [2024-12-31 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143396', 'tblTempUsageDetail_20' ) end [2024-12-31 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143396', 'tblTempVendorCDR_20' ) start [2024-12-31 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143396', 'tblTempVendorCDR_20' ) end [2024-12-31 11:59:20] Production.INFO: ProcessCDR(1,14143396,1,1,2) [2024-12-31 11:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 11:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 11:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143396', 'tblTempUsageDetail_20' ) start [2024-12-31 11:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143396', 'tblTempUsageDetail_20' ) end [2024-12-31 11:59:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 11:59:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 11:59:24] Production.INFO: ==17041== Releasing lock... [2024-12-31 11:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 11:59:24] Production.INFO: 57.5 MB #Memory Used# [2024-12-31 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:00:06 [end_date_ymd] => 2024-12-31 12:00:06 [RateCDR] => 1 ) [2024-12-31 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:00:06' and `end` < '2024-12-31 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:00:27] Production.INFO: count ==3937 [2024-12-31 12:00:28] Production.ERROR: pbx CDR StartTime 2024-12-31 09:00:06 - End Time 2024-12-31 12:00:06 [2024-12-31 12:00:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143401', 'tblTempUsageDetail_20' ) start [2024-12-31 12:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143401', 'tblTempUsageDetail_20' ) end [2024-12-31 12:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143401', 'tblTempVendorCDR_20' ) start [2024-12-31 12:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143401', 'tblTempVendorCDR_20' ) end [2024-12-31 12:00:28] Production.INFO: ProcessCDR(1,14143401,1,1,2) [2024-12-31 12:00:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:00:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:00:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143401', 'tblTempUsageDetail_20' ) start [2024-12-31 12:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143401', 'tblTempUsageDetail_20' ) end [2024-12-31 12:00:33] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:00:33] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:00:33] Production.INFO: ==17121== Releasing lock... [2024-12-31 12:00:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:00:33] Production.INFO: 57.5 MB #Memory Used# [2024-12-31 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:01:05 [end_date_ymd] => 2024-12-31 12:01:05 [RateCDR] => 1 ) [2024-12-31 12:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:01:05' and `end` < '2024-12-31 12:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:01:21] Production.INFO: count ==3988 [2024-12-31 12:01:22] Production.ERROR: pbx CDR StartTime 2024-12-31 09:01:05 - End Time 2024-12-31 12:01:05 [2024-12-31 12:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143407', 'tblTempUsageDetail_20' ) start [2024-12-31 12:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143407', 'tblTempUsageDetail_20' ) end [2024-12-31 12:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143407', 'tblTempVendorCDR_20' ) start [2024-12-31 12:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143407', 'tblTempVendorCDR_20' ) end [2024-12-31 12:01:23] Production.INFO: ProcessCDR(1,14143407,1,1,2) [2024-12-31 12:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143407', 'tblTempUsageDetail_20' ) start [2024-12-31 12:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143407', 'tblTempUsageDetail_20' ) end [2024-12-31 12:01:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:01:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:01:27] Production.INFO: ==17211== Releasing lock... [2024-12-31 12:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:01:27] Production.INFO: 57.75 MB #Memory Used# [2024-12-31 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:02:05 [end_date_ymd] => 2024-12-31 12:02:05 [RateCDR] => 1 ) [2024-12-31 12:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:02:05' and `end` < '2024-12-31 12:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:02:22] Production.INFO: count ==4007 [2024-12-31 12:02:24] Production.ERROR: pbx CDR StartTime 2024-12-31 09:02:05 - End Time 2024-12-31 12:02:05 [2024-12-31 12:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143412', 'tblTempUsageDetail_20' ) start [2024-12-31 12:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143412', 'tblTempUsageDetail_20' ) end [2024-12-31 12:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143412', 'tblTempVendorCDR_20' ) start [2024-12-31 12:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143412', 'tblTempVendorCDR_20' ) end [2024-12-31 12:02:24] Production.INFO: ProcessCDR(1,14143412,1,1,2) [2024-12-31 12:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143412', 'tblTempUsageDetail_20' ) start [2024-12-31 12:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143412', 'tblTempUsageDetail_20' ) end [2024-12-31 12:02:29] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:02:29] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:02:29] Production.INFO: ==17294== Releasing lock... [2024-12-31 12:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:02:29] Production.INFO: 58 MB #Memory Used# [2024-12-31 12:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:03:04 [end_date_ymd] => 2024-12-31 12:03:04 [RateCDR] => 1 ) [2024-12-31 12:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:03:04' and `end` < '2024-12-31 12:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:03:18] Production.INFO: count ==3998 [2024-12-31 12:03:20] Production.ERROR: pbx CDR StartTime 2024-12-31 09:03:04 - End Time 2024-12-31 12:03:04 [2024-12-31 12:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143417', 'tblTempUsageDetail_20' ) start [2024-12-31 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143417', 'tblTempUsageDetail_20' ) end [2024-12-31 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143417', 'tblTempVendorCDR_20' ) start [2024-12-31 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143417', 'tblTempVendorCDR_20' ) end [2024-12-31 12:03:20] Production.INFO: ProcessCDR(1,14143417,1,1,2) [2024-12-31 12:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143417', 'tblTempUsageDetail_20' ) start [2024-12-31 12:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143417', 'tblTempUsageDetail_20' ) end [2024-12-31 12:03:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:03:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:03:24] Production.INFO: ==17371== Releasing lock... [2024-12-31 12:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:03:24] Production.INFO: 58 MB #Memory Used# [2024-12-31 12:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:04:04 [end_date_ymd] => 2024-12-31 12:04:04 [RateCDR] => 1 ) [2024-12-31 12:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:04:04' and `end` < '2024-12-31 12:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:04:23] Production.INFO: count ==4016 [2024-12-31 12:04:24] Production.ERROR: pbx CDR StartTime 2024-12-31 09:04:04 - End Time 2024-12-31 12:04:04 [2024-12-31 12:04:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143421', 'tblTempUsageDetail_20' ) start [2024-12-31 12:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143421', 'tblTempUsageDetail_20' ) end [2024-12-31 12:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143421', 'tblTempVendorCDR_20' ) start [2024-12-31 12:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143421', 'tblTempVendorCDR_20' ) end [2024-12-31 12:04:24] Production.INFO: ProcessCDR(1,14143421,1,1,2) [2024-12-31 12:04:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:04:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143421', 'tblTempUsageDetail_20' ) start [2024-12-31 12:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143421', 'tblTempUsageDetail_20' ) end [2024-12-31 12:04:29] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:04:29] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:04:29] Production.INFO: ==17449== Releasing lock... [2024-12-31 12:04:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:04:29] Production.INFO: 58 MB #Memory Used# [2024-12-31 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:05:05 [end_date_ymd] => 2024-12-31 12:05:05 [RateCDR] => 1 ) [2024-12-31 12:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:05:05' and `end` < '2024-12-31 12:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:05:22] Production.INFO: count ==3980 [2024-12-31 12:05:23] Production.ERROR: pbx CDR StartTime 2024-12-31 09:05:05 - End Time 2024-12-31 12:05:05 [2024-12-31 12:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143427', 'tblTempUsageDetail_20' ) start [2024-12-31 12:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143427', 'tblTempUsageDetail_20' ) end [2024-12-31 12:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143427', 'tblTempVendorCDR_20' ) start [2024-12-31 12:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143427', 'tblTempVendorCDR_20' ) end [2024-12-31 12:05:23] Production.INFO: ProcessCDR(1,14143427,1,1,2) [2024-12-31 12:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143427', 'tblTempUsageDetail_20' ) start [2024-12-31 12:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143427', 'tblTempUsageDetail_20' ) end [2024-12-31 12:05:28] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:05:28] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:05:28] Production.INFO: ==17528== Releasing lock... [2024-12-31 12:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:05:28] Production.INFO: 57.75 MB #Memory Used# [2024-12-31 12:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:06:04 [end_date_ymd] => 2024-12-31 12:06:04 [RateCDR] => 1 ) [2024-12-31 12:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:06:04' and `end` < '2024-12-31 12:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:06:18] Production.INFO: count ==3961 [2024-12-31 12:06:19] Production.ERROR: pbx CDR StartTime 2024-12-31 09:06:04 - End Time 2024-12-31 12:06:04 [2024-12-31 12:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143432', 'tblTempUsageDetail_20' ) start [2024-12-31 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143432', 'tblTempUsageDetail_20' ) end [2024-12-31 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143432', 'tblTempVendorCDR_20' ) start [2024-12-31 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143432', 'tblTempVendorCDR_20' ) end [2024-12-31 12:06:19] Production.INFO: ProcessCDR(1,14143432,1,1,2) [2024-12-31 12:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143432', 'tblTempUsageDetail_20' ) start [2024-12-31 12:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143432', 'tblTempUsageDetail_20' ) end [2024-12-31 12:06:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:06:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:06:24] Production.INFO: ==17645== Releasing lock... [2024-12-31 12:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:06:24] Production.INFO: 57.5 MB #Memory Used# [2024-12-31 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:07:05 [end_date_ymd] => 2024-12-31 12:07:05 [RateCDR] => 1 ) [2024-12-31 12:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:07:05' and `end` < '2024-12-31 12:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:07:20] Production.INFO: count ==3944 [2024-12-31 12:07:21] Production.ERROR: pbx CDR StartTime 2024-12-31 09:07:05 - End Time 2024-12-31 12:07:05 [2024-12-31 12:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143437', 'tblTempUsageDetail_20' ) start [2024-12-31 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143437', 'tblTempUsageDetail_20' ) end [2024-12-31 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143437', 'tblTempVendorCDR_20' ) start [2024-12-31 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143437', 'tblTempVendorCDR_20' ) end [2024-12-31 12:07:21] Production.INFO: ProcessCDR(1,14143437,1,1,2) [2024-12-31 12:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143437', 'tblTempUsageDetail_20' ) start [2024-12-31 12:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143437', 'tblTempUsageDetail_20' ) end [2024-12-31 12:07:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:07:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:07:26] Production.INFO: ==17721== Releasing lock... [2024-12-31 12:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:07:26] Production.INFO: 57.5 MB #Memory Used# [2024-12-31 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:08:05 [end_date_ymd] => 2024-12-31 12:08:05 [RateCDR] => 1 ) [2024-12-31 12:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:08:05' and `end` < '2024-12-31 12:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:08:21] Production.INFO: count ==3952 [2024-12-31 12:08:23] Production.ERROR: pbx CDR StartTime 2024-12-31 09:08:05 - End Time 2024-12-31 12:08:05 [2024-12-31 12:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143442', 'tblTempUsageDetail_20' ) start [2024-12-31 12:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143442', 'tblTempUsageDetail_20' ) end [2024-12-31 12:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143442', 'tblTempVendorCDR_20' ) start [2024-12-31 12:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143442', 'tblTempVendorCDR_20' ) end [2024-12-31 12:08:23] Production.INFO: ProcessCDR(1,14143442,1,1,2) [2024-12-31 12:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143442', 'tblTempUsageDetail_20' ) start [2024-12-31 12:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143442', 'tblTempUsageDetail_20' ) end [2024-12-31 12:08:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:08:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:08:27] Production.INFO: ==17803== Releasing lock... [2024-12-31 12:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:08:27] Production.INFO: 57.5 MB #Memory Used# [2024-12-31 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:09:04 [end_date_ymd] => 2024-12-31 12:09:04 [RateCDR] => 1 ) [2024-12-31 12:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:09:04' and `end` < '2024-12-31 12:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:09:24] Production.INFO: count ==3948 [2024-12-31 12:09:25] Production.ERROR: pbx CDR StartTime 2024-12-31 09:09:04 - End Time 2024-12-31 12:09:04 [2024-12-31 12:09:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143447', 'tblTempUsageDetail_20' ) start [2024-12-31 12:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143447', 'tblTempUsageDetail_20' ) end [2024-12-31 12:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143447', 'tblTempVendorCDR_20' ) start [2024-12-31 12:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143447', 'tblTempVendorCDR_20' ) end [2024-12-31 12:09:25] Production.INFO: ProcessCDR(1,14143447,1,1,2) [2024-12-31 12:09:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:09:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:09:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:09:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143447', 'tblTempUsageDetail_20' ) start [2024-12-31 12:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143447', 'tblTempUsageDetail_20' ) end [2024-12-31 12:09:30] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:09:30] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:09:30] Production.INFO: ==17878== Releasing lock... [2024-12-31 12:09:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:09:30] Production.INFO: 58 MB #Memory Used# [2024-12-31 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:10:06 [end_date_ymd] => 2024-12-31 12:10:06 [RateCDR] => 1 ) [2024-12-31 12:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:10:06' and `end` < '2024-12-31 12:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:10:25] Production.INFO: count ==3938 [2024-12-31 12:10:26] Production.ERROR: pbx CDR StartTime 2024-12-31 09:10:06 - End Time 2024-12-31 12:10:06 [2024-12-31 12:10:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143452', 'tblTempUsageDetail_20' ) start [2024-12-31 12:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143452', 'tblTempUsageDetail_20' ) end [2024-12-31 12:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143452', 'tblTempVendorCDR_20' ) start [2024-12-31 12:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143452', 'tblTempVendorCDR_20' ) end [2024-12-31 12:10:26] Production.INFO: ProcessCDR(1,14143452,1,1,2) [2024-12-31 12:10:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:10:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:10:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:10:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143452', 'tblTempUsageDetail_20' ) start [2024-12-31 12:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143452', 'tblTempUsageDetail_20' ) end [2024-12-31 12:10:31] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:10:31] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:10:31] Production.INFO: ==17957== Releasing lock... [2024-12-31 12:10:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:10:31] Production.INFO: 57.5 MB #Memory Used# [2024-12-31 12:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:11:04 [end_date_ymd] => 2024-12-31 12:11:04 [RateCDR] => 1 ) [2024-12-31 12:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:11:04' and `end` < '2024-12-31 12:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:11:18] Production.INFO: count ==3946 [2024-12-31 12:11:19] Production.ERROR: pbx CDR StartTime 2024-12-31 09:11:04 - End Time 2024-12-31 12:11:04 [2024-12-31 12:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143458', 'tblTempUsageDetail_20' ) start [2024-12-31 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143458', 'tblTempUsageDetail_20' ) end [2024-12-31 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143458', 'tblTempVendorCDR_20' ) start [2024-12-31 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143458', 'tblTempVendorCDR_20' ) end [2024-12-31 12:11:19] Production.INFO: ProcessCDR(1,14143458,1,1,2) [2024-12-31 12:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143458', 'tblTempUsageDetail_20' ) start [2024-12-31 12:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143458', 'tblTempUsageDetail_20' ) end [2024-12-31 12:11:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:11:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:11:24] Production.INFO: ==18037== Releasing lock... [2024-12-31 12:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:11:24] Production.INFO: 57.5 MB #Memory Used# [2024-12-31 12:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:12:04 [end_date_ymd] => 2024-12-31 12:12:04 [RateCDR] => 1 ) [2024-12-31 12:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:12:04' and `end` < '2024-12-31 12:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:12:19] Production.INFO: count ==3946 [2024-12-31 12:12:21] Production.ERROR: pbx CDR StartTime 2024-12-31 09:12:04 - End Time 2024-12-31 12:12:04 [2024-12-31 12:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143463', 'tblTempUsageDetail_20' ) start [2024-12-31 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143463', 'tblTempUsageDetail_20' ) end [2024-12-31 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143463', 'tblTempVendorCDR_20' ) start [2024-12-31 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143463', 'tblTempVendorCDR_20' ) end [2024-12-31 12:12:21] Production.INFO: ProcessCDR(1,14143463,1,1,2) [2024-12-31 12:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143463', 'tblTempUsageDetail_20' ) start [2024-12-31 12:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143463', 'tblTempUsageDetail_20' ) end [2024-12-31 12:12:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:12:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:12:25] Production.INFO: ==18114== Releasing lock... [2024-12-31 12:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:12:25] Production.INFO: 57.75 MB #Memory Used# [2024-12-31 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:13:05 [end_date_ymd] => 2024-12-31 12:13:05 [RateCDR] => 1 ) [2024-12-31 12:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:13:05' and `end` < '2024-12-31 12:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:13:18] Production.INFO: count ==3931 [2024-12-31 12:13:20] Production.ERROR: pbx CDR StartTime 2024-12-31 09:13:05 - End Time 2024-12-31 12:13:05 [2024-12-31 12:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143468', 'tblTempUsageDetail_20' ) start [2024-12-31 12:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143468', 'tblTempUsageDetail_20' ) end [2024-12-31 12:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143468', 'tblTempVendorCDR_20' ) start [2024-12-31 12:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143468', 'tblTempVendorCDR_20' ) end [2024-12-31 12:13:20] Production.INFO: ProcessCDR(1,14143468,1,1,2) [2024-12-31 12:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143468', 'tblTempUsageDetail_20' ) start [2024-12-31 12:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143468', 'tblTempUsageDetail_20' ) end [2024-12-31 12:13:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:13:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:13:24] Production.INFO: ==18192== Releasing lock... [2024-12-31 12:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:13:24] Production.INFO: 57.5 MB #Memory Used# [2024-12-31 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:14:05 [end_date_ymd] => 2024-12-31 12:14:05 [RateCDR] => 1 ) [2024-12-31 12:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:14:05' and `end` < '2024-12-31 12:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:14:24] Production.INFO: count ==3919 [2024-12-31 12:14:25] Production.ERROR: pbx CDR StartTime 2024-12-31 09:14:05 - End Time 2024-12-31 12:14:05 [2024-12-31 12:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143473', 'tblTempUsageDetail_20' ) start [2024-12-31 12:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143473', 'tblTempUsageDetail_20' ) end [2024-12-31 12:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143473', 'tblTempVendorCDR_20' ) start [2024-12-31 12:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143473', 'tblTempVendorCDR_20' ) end [2024-12-31 12:14:25] Production.INFO: ProcessCDR(1,14143473,1,1,2) [2024-12-31 12:14:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:14:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:14:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143473', 'tblTempUsageDetail_20' ) start [2024-12-31 12:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143473', 'tblTempUsageDetail_20' ) end [2024-12-31 12:14:30] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:14:30] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:14:30] Production.INFO: ==18271== Releasing lock... [2024-12-31 12:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:14:30] Production.INFO: 57.5 MB #Memory Used# [2024-12-31 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:15:05 [end_date_ymd] => 2024-12-31 12:15:05 [RateCDR] => 1 ) [2024-12-31 12:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:15:05' and `end` < '2024-12-31 12:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:15:21] Production.INFO: count ==3933 [2024-12-31 12:15:22] Production.ERROR: pbx CDR StartTime 2024-12-31 09:15:05 - End Time 2024-12-31 12:15:05 [2024-12-31 12:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143478', 'tblTempUsageDetail_20' ) start [2024-12-31 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143478', 'tblTempUsageDetail_20' ) end [2024-12-31 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143478', 'tblTempVendorCDR_20' ) start [2024-12-31 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143478', 'tblTempVendorCDR_20' ) end [2024-12-31 12:15:22] Production.INFO: ProcessCDR(1,14143478,1,1,2) [2024-12-31 12:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143478', 'tblTempUsageDetail_20' ) start [2024-12-31 12:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143478', 'tblTempUsageDetail_20' ) end [2024-12-31 12:15:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:15:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:15:27] Production.INFO: ==18350== Releasing lock... [2024-12-31 12:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:15:27] Production.INFO: 57.5 MB #Memory Used# [2024-12-31 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:16:05 [end_date_ymd] => 2024-12-31 12:16:05 [RateCDR] => 1 ) [2024-12-31 12:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:16:05' and `end` < '2024-12-31 12:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:16:21] Production.INFO: count ==3927 [2024-12-31 12:16:22] Production.ERROR: pbx CDR StartTime 2024-12-31 09:16:05 - End Time 2024-12-31 12:16:05 [2024-12-31 12:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143483', 'tblTempUsageDetail_20' ) start [2024-12-31 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143483', 'tblTempUsageDetail_20' ) end [2024-12-31 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143483', 'tblTempVendorCDR_20' ) start [2024-12-31 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143483', 'tblTempVendorCDR_20' ) end [2024-12-31 12:16:22] Production.INFO: ProcessCDR(1,14143483,1,1,2) [2024-12-31 12:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143483', 'tblTempUsageDetail_20' ) start [2024-12-31 12:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143483', 'tblTempUsageDetail_20' ) end [2024-12-31 12:16:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:16:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:16:27] Production.INFO: ==18424== Releasing lock... [2024-12-31 12:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:16:27] Production.INFO: 57.25 MB #Memory Used# [2024-12-31 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:17:05 [end_date_ymd] => 2024-12-31 12:17:05 [RateCDR] => 1 ) [2024-12-31 12:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:17:05' and `end` < '2024-12-31 12:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:17:21] Production.INFO: count ==3946 [2024-12-31 12:17:23] Production.ERROR: pbx CDR StartTime 2024-12-31 09:17:05 - End Time 2024-12-31 12:17:05 [2024-12-31 12:17:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143488', 'tblTempUsageDetail_20' ) start [2024-12-31 12:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143488', 'tblTempUsageDetail_20' ) end [2024-12-31 12:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143488', 'tblTempVendorCDR_20' ) start [2024-12-31 12:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143488', 'tblTempVendorCDR_20' ) end [2024-12-31 12:17:23] Production.INFO: ProcessCDR(1,14143488,1,1,2) [2024-12-31 12:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143488', 'tblTempUsageDetail_20' ) start [2024-12-31 12:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143488', 'tblTempUsageDetail_20' ) end [2024-12-31 12:17:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:17:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:17:27] Production.INFO: ==18508== Releasing lock... [2024-12-31 12:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:17:27] Production.INFO: 57.75 MB #Memory Used# [2024-12-31 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:18:05 [end_date_ymd] => 2024-12-31 12:18:05 [RateCDR] => 1 ) [2024-12-31 12:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:18:05' and `end` < '2024-12-31 12:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:18:19] Production.INFO: count ==3953 [2024-12-31 12:18:21] Production.ERROR: pbx CDR StartTime 2024-12-31 09:18:05 - End Time 2024-12-31 12:18:05 [2024-12-31 12:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143493', 'tblTempUsageDetail_20' ) start [2024-12-31 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143493', 'tblTempUsageDetail_20' ) end [2024-12-31 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143493', 'tblTempVendorCDR_20' ) start [2024-12-31 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143493', 'tblTempVendorCDR_20' ) end [2024-12-31 12:18:21] Production.INFO: ProcessCDR(1,14143493,1,1,2) [2024-12-31 12:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143493', 'tblTempUsageDetail_20' ) start [2024-12-31 12:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143493', 'tblTempUsageDetail_20' ) end [2024-12-31 12:18:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:18:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:18:26] Production.INFO: ==18577== Releasing lock... [2024-12-31 12:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:18:26] Production.INFO: 57.5 MB #Memory Used# [2024-12-31 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:19:05 [end_date_ymd] => 2024-12-31 12:19:05 [RateCDR] => 1 ) [2024-12-31 12:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:19:05' and `end` < '2024-12-31 12:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:19:19] Production.INFO: count ==3969 [2024-12-31 12:19:20] Production.ERROR: pbx CDR StartTime 2024-12-31 09:19:05 - End Time 2024-12-31 12:19:05 [2024-12-31 12:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143498', 'tblTempUsageDetail_20' ) start [2024-12-31 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143498', 'tblTempUsageDetail_20' ) end [2024-12-31 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143498', 'tblTempVendorCDR_20' ) start [2024-12-31 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143498', 'tblTempVendorCDR_20' ) end [2024-12-31 12:19:21] Production.INFO: ProcessCDR(1,14143498,1,1,2) [2024-12-31 12:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143498', 'tblTempUsageDetail_20' ) start [2024-12-31 12:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143498', 'tblTempUsageDetail_20' ) end [2024-12-31 12:19:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:19:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:19:26] Production.INFO: ==18648== Releasing lock... [2024-12-31 12:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:19:26] Production.INFO: 57.75 MB #Memory Used# [2024-12-31 12:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:20:05 [end_date_ymd] => 2024-12-31 12:20:05 [RateCDR] => 1 ) [2024-12-31 12:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:20:05' and `end` < '2024-12-31 12:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:20:32] Production.INFO: count ==4005 [2024-12-31 12:20:34] Production.ERROR: pbx CDR StartTime 2024-12-31 09:20:05 - End Time 2024-12-31 12:20:05 [2024-12-31 12:20:34] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143504', 'tblTempUsageDetail_20' ) start [2024-12-31 12:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143504', 'tblTempUsageDetail_20' ) end [2024-12-31 12:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143504', 'tblTempVendorCDR_20' ) start [2024-12-31 12:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143504', 'tblTempVendorCDR_20' ) end [2024-12-31 12:20:34] Production.INFO: ProcessCDR(1,14143504,1,1,2) [2024-12-31 12:20:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:20:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:20:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:20:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:20:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143504', 'tblTempUsageDetail_20' ) start [2024-12-31 12:20:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143504', 'tblTempUsageDetail_20' ) end [2024-12-31 12:20:38] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:20:39] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:20:39] Production.INFO: ==18720== Releasing lock... [2024-12-31 12:20:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:20:39] Production.INFO: 58 MB #Memory Used# [2024-12-31 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:21:04 [end_date_ymd] => 2024-12-31 12:21:04 [RateCDR] => 1 ) [2024-12-31 12:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:21:04' and `end` < '2024-12-31 12:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:21:25] Production.INFO: count ==4052 [2024-12-31 12:21:27] Production.ERROR: pbx CDR StartTime 2024-12-31 09:21:04 - End Time 2024-12-31 12:21:04 [2024-12-31 12:21:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143509', 'tblTempUsageDetail_20' ) start [2024-12-31 12:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143509', 'tblTempUsageDetail_20' ) end [2024-12-31 12:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143509', 'tblTempVendorCDR_20' ) start [2024-12-31 12:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143509', 'tblTempVendorCDR_20' ) end [2024-12-31 12:21:27] Production.INFO: ProcessCDR(1,14143509,1,1,2) [2024-12-31 12:21:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:21:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:21:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:21:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143509', 'tblTempUsageDetail_20' ) start [2024-12-31 12:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143509', 'tblTempUsageDetail_20' ) end [2024-12-31 12:21:31] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:21:31] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:21:31] Production.INFO: ==18836== Releasing lock... [2024-12-31 12:21:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:21:31] Production.INFO: 58.25 MB #Memory Used# [2024-12-31 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:22:05 [end_date_ymd] => 2024-12-31 12:22:05 [RateCDR] => 1 ) [2024-12-31 12:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:22:05' and `end` < '2024-12-31 12:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:22:27] Production.INFO: count ==4072 [2024-12-31 12:22:29] Production.ERROR: pbx CDR StartTime 2024-12-31 09:22:05 - End Time 2024-12-31 12:22:05 [2024-12-31 12:22:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143514', 'tblTempUsageDetail_20' ) start [2024-12-31 12:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143514', 'tblTempUsageDetail_20' ) end [2024-12-31 12:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143514', 'tblTempVendorCDR_20' ) start [2024-12-31 12:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143514', 'tblTempVendorCDR_20' ) end [2024-12-31 12:22:29] Production.INFO: ProcessCDR(1,14143514,1,1,2) [2024-12-31 12:22:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:22:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:22:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:22:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:22:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143514', 'tblTempUsageDetail_20' ) start [2024-12-31 12:22:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143514', 'tblTempUsageDetail_20' ) end [2024-12-31 12:22:34] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:22:34] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:22:34] Production.INFO: ==18907== Releasing lock... [2024-12-31 12:22:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:22:34] Production.INFO: 58.5 MB #Memory Used# [2024-12-31 12:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:23:04 [end_date_ymd] => 2024-12-31 12:23:04 [RateCDR] => 1 ) [2024-12-31 12:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:23:04' and `end` < '2024-12-31 12:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:23:25] Production.INFO: count ==4108 [2024-12-31 12:23:26] Production.ERROR: pbx CDR StartTime 2024-12-31 09:23:04 - End Time 2024-12-31 12:23:04 [2024-12-31 12:23:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143519', 'tblTempUsageDetail_20' ) start [2024-12-31 12:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143519', 'tblTempUsageDetail_20' ) end [2024-12-31 12:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143519', 'tblTempVendorCDR_20' ) start [2024-12-31 12:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143519', 'tblTempVendorCDR_20' ) end [2024-12-31 12:23:26] Production.INFO: ProcessCDR(1,14143519,1,1,2) [2024-12-31 12:23:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:23:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:23:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:23:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:23:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143519', 'tblTempUsageDetail_20' ) start [2024-12-31 12:23:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143519', 'tblTempUsageDetail_20' ) end [2024-12-31 12:23:31] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:23:31] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:23:31] Production.INFO: ==18978== Releasing lock... [2024-12-31 12:23:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:23:31] Production.INFO: 58.75 MB #Memory Used# [2024-12-31 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:24:05 [end_date_ymd] => 2024-12-31 12:24:05 [RateCDR] => 1 ) [2024-12-31 12:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:24:05' and `end` < '2024-12-31 12:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:24:23] Production.INFO: count ==4092 [2024-12-31 12:24:24] Production.ERROR: pbx CDR StartTime 2024-12-31 09:24:05 - End Time 2024-12-31 12:24:05 [2024-12-31 12:24:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143524', 'tblTempUsageDetail_20' ) start [2024-12-31 12:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143524', 'tblTempUsageDetail_20' ) end [2024-12-31 12:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143524', 'tblTempVendorCDR_20' ) start [2024-12-31 12:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143524', 'tblTempVendorCDR_20' ) end [2024-12-31 12:24:24] Production.INFO: ProcessCDR(1,14143524,1,1,2) [2024-12-31 12:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:24:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143524', 'tblTempUsageDetail_20' ) start [2024-12-31 12:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143524', 'tblTempUsageDetail_20' ) end [2024-12-31 12:24:29] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:24:29] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:24:29] Production.INFO: ==19050== Releasing lock... [2024-12-31 12:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:24:29] Production.INFO: 58.5 MB #Memory Used# [2024-12-31 12:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:25:04 [end_date_ymd] => 2024-12-31 12:25:04 [RateCDR] => 1 ) [2024-12-31 12:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:25:04' and `end` < '2024-12-31 12:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:25:18] Production.INFO: count ==4086 [2024-12-31 12:25:19] Production.ERROR: pbx CDR StartTime 2024-12-31 09:25:04 - End Time 2024-12-31 12:25:04 [2024-12-31 12:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143529', 'tblTempUsageDetail_20' ) start [2024-12-31 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143529', 'tblTempUsageDetail_20' ) end [2024-12-31 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143529', 'tblTempVendorCDR_20' ) start [2024-12-31 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143529', 'tblTempVendorCDR_20' ) end [2024-12-31 12:25:19] Production.INFO: ProcessCDR(1,14143529,1,1,2) [2024-12-31 12:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143529', 'tblTempUsageDetail_20' ) start [2024-12-31 12:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143529', 'tblTempUsageDetail_20' ) end [2024-12-31 12:25:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:25:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:25:24] Production.INFO: ==19121== Releasing lock... [2024-12-31 12:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:25:24] Production.INFO: 58.5 MB #Memory Used# [2024-12-31 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:26:05 [end_date_ymd] => 2024-12-31 12:26:05 [RateCDR] => 1 ) [2024-12-31 12:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:26:05' and `end` < '2024-12-31 12:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:26:18] Production.INFO: count ==4095 [2024-12-31 12:26:20] Production.ERROR: pbx CDR StartTime 2024-12-31 09:26:05 - End Time 2024-12-31 12:26:05 [2024-12-31 12:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143534', 'tblTempUsageDetail_20' ) start [2024-12-31 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143534', 'tblTempUsageDetail_20' ) end [2024-12-31 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143534', 'tblTempVendorCDR_20' ) start [2024-12-31 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143534', 'tblTempVendorCDR_20' ) end [2024-12-31 12:26:20] Production.INFO: ProcessCDR(1,14143534,1,1,2) [2024-12-31 12:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143534', 'tblTempUsageDetail_20' ) start [2024-12-31 12:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143534', 'tblTempUsageDetail_20' ) end [2024-12-31 12:26:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:26:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:26:25] Production.INFO: ==19193== Releasing lock... [2024-12-31 12:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:26:25] Production.INFO: 58.5 MB #Memory Used# [2024-12-31 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:27:05 [end_date_ymd] => 2024-12-31 12:27:05 [RateCDR] => 1 ) [2024-12-31 12:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:27:05' and `end` < '2024-12-31 12:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:27:19] Production.INFO: count ==4098 [2024-12-31 12:27:21] Production.ERROR: pbx CDR StartTime 2024-12-31 09:27:05 - End Time 2024-12-31 12:27:05 [2024-12-31 12:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143539', 'tblTempUsageDetail_20' ) start [2024-12-31 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143539', 'tblTempUsageDetail_20' ) end [2024-12-31 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143539', 'tblTempVendorCDR_20' ) start [2024-12-31 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143539', 'tblTempVendorCDR_20' ) end [2024-12-31 12:27:21] Production.INFO: ProcessCDR(1,14143539,1,1,2) [2024-12-31 12:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143539', 'tblTempUsageDetail_20' ) start [2024-12-31 12:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143539', 'tblTempUsageDetail_20' ) end [2024-12-31 12:27:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:27:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:27:26] Production.INFO: ==19268== Releasing lock... [2024-12-31 12:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:27:26] Production.INFO: 58.75 MB #Memory Used# [2024-12-31 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:28:05 [end_date_ymd] => 2024-12-31 12:28:05 [RateCDR] => 1 ) [2024-12-31 12:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:28:05' and `end` < '2024-12-31 12:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:28:18] Production.INFO: count ==4100 [2024-12-31 12:28:20] Production.ERROR: pbx CDR StartTime 2024-12-31 09:28:05 - End Time 2024-12-31 12:28:05 [2024-12-31 12:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143544', 'tblTempUsageDetail_20' ) start [2024-12-31 12:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143544', 'tblTempUsageDetail_20' ) end [2024-12-31 12:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143544', 'tblTempVendorCDR_20' ) start [2024-12-31 12:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143544', 'tblTempVendorCDR_20' ) end [2024-12-31 12:28:20] Production.INFO: ProcessCDR(1,14143544,1,1,2) [2024-12-31 12:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143544', 'tblTempUsageDetail_20' ) start [2024-12-31 12:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143544', 'tblTempUsageDetail_20' ) end [2024-12-31 12:28:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:28:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:28:25] Production.INFO: ==19336== Releasing lock... [2024-12-31 12:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:28:25] Production.INFO: 58.75 MB #Memory Used# [2024-12-31 12:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:29:04 [end_date_ymd] => 2024-12-31 12:29:04 [RateCDR] => 1 ) [2024-12-31 12:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:29:04' and `end` < '2024-12-31 12:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:29:19] Production.INFO: count ==4105 [2024-12-31 12:29:21] Production.ERROR: pbx CDR StartTime 2024-12-31 09:29:04 - End Time 2024-12-31 12:29:04 [2024-12-31 12:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143549', 'tblTempUsageDetail_20' ) start [2024-12-31 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143549', 'tblTempUsageDetail_20' ) end [2024-12-31 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143549', 'tblTempVendorCDR_20' ) start [2024-12-31 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143549', 'tblTempVendorCDR_20' ) end [2024-12-31 12:29:21] Production.INFO: ProcessCDR(1,14143549,1,1,2) [2024-12-31 12:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143549', 'tblTempUsageDetail_20' ) start [2024-12-31 12:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143549', 'tblTempUsageDetail_20' ) end [2024-12-31 12:29:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:29:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:29:26] Production.INFO: ==19410== Releasing lock... [2024-12-31 12:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:29:26] Production.INFO: 58.75 MB #Memory Used# [2024-12-31 12:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:30:05 [end_date_ymd] => 2024-12-31 12:30:05 [RateCDR] => 1 ) [2024-12-31 12:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:30:05' and `end` < '2024-12-31 12:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:30:20] Production.INFO: count ==4085 [2024-12-31 12:30:21] Production.ERROR: pbx CDR StartTime 2024-12-31 09:30:05 - End Time 2024-12-31 12:30:05 [2024-12-31 12:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143555', 'tblTempUsageDetail_20' ) start [2024-12-31 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143555', 'tblTempUsageDetail_20' ) end [2024-12-31 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143555', 'tblTempVendorCDR_20' ) start [2024-12-31 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143555', 'tblTempVendorCDR_20' ) end [2024-12-31 12:30:21] Production.INFO: ProcessCDR(1,14143555,1,1,2) [2024-12-31 12:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143555', 'tblTempUsageDetail_20' ) start [2024-12-31 12:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143555', 'tblTempUsageDetail_20' ) end [2024-12-31 12:30:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:30:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:30:26] Production.INFO: ==19485== Releasing lock... [2024-12-31 12:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:30:26] Production.INFO: 58.5 MB #Memory Used# [2024-12-31 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:31:05 [end_date_ymd] => 2024-12-31 12:31:05 [RateCDR] => 1 ) [2024-12-31 12:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:31:05' and `end` < '2024-12-31 12:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:31:19] Production.INFO: count ==4066 [2024-12-31 12:31:20] Production.ERROR: pbx CDR StartTime 2024-12-31 09:31:05 - End Time 2024-12-31 12:31:05 [2024-12-31 12:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143560', 'tblTempUsageDetail_20' ) start [2024-12-31 12:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143560', 'tblTempUsageDetail_20' ) end [2024-12-31 12:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143560', 'tblTempVendorCDR_20' ) start [2024-12-31 12:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143560', 'tblTempVendorCDR_20' ) end [2024-12-31 12:31:20] Production.INFO: ProcessCDR(1,14143560,1,1,2) [2024-12-31 12:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143560', 'tblTempUsageDetail_20' ) start [2024-12-31 12:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143560', 'tblTempUsageDetail_20' ) end [2024-12-31 12:31:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:31:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:31:23] Production.INFO: ==19561== Releasing lock... [2024-12-31 12:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:31:23] Production.INFO: 58.5 MB #Memory Used# [2024-12-31 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:32:05 [end_date_ymd] => 2024-12-31 12:32:05 [RateCDR] => 1 ) [2024-12-31 12:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:32:05' and `end` < '2024-12-31 12:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:32:19] Production.INFO: count ==4068 [2024-12-31 12:32:20] Production.ERROR: pbx CDR StartTime 2024-12-31 09:32:05 - End Time 2024-12-31 12:32:05 [2024-12-31 12:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143565', 'tblTempUsageDetail_20' ) start [2024-12-31 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143565', 'tblTempUsageDetail_20' ) end [2024-12-31 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143565', 'tblTempVendorCDR_20' ) start [2024-12-31 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143565', 'tblTempVendorCDR_20' ) end [2024-12-31 12:32:20] Production.INFO: ProcessCDR(1,14143565,1,1,2) [2024-12-31 12:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143565', 'tblTempUsageDetail_20' ) start [2024-12-31 12:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143565', 'tblTempUsageDetail_20' ) end [2024-12-31 12:32:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:32:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:32:25] Production.INFO: ==19630== Releasing lock... [2024-12-31 12:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:32:25] Production.INFO: 58.5 MB #Memory Used# [2024-12-31 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:33:05 [end_date_ymd] => 2024-12-31 12:33:05 [RateCDR] => 1 ) [2024-12-31 12:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:33:05' and `end` < '2024-12-31 12:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:33:19] Production.INFO: count ==4061 [2024-12-31 12:33:21] Production.ERROR: pbx CDR StartTime 2024-12-31 09:33:05 - End Time 2024-12-31 12:33:05 [2024-12-31 12:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143567', 'tblTempUsageDetail_20' ) start [2024-12-31 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143567', 'tblTempUsageDetail_20' ) end [2024-12-31 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143567', 'tblTempVendorCDR_20' ) start [2024-12-31 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143567', 'tblTempVendorCDR_20' ) end [2024-12-31 12:33:21] Production.INFO: ProcessCDR(1,14143567,1,1,2) [2024-12-31 12:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143567', 'tblTempUsageDetail_20' ) start [2024-12-31 12:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143567', 'tblTempUsageDetail_20' ) end [2024-12-31 12:33:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:33:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:33:25] Production.INFO: ==19704== Releasing lock... [2024-12-31 12:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:33:25] Production.INFO: 58.25 MB #Memory Used# [2024-12-31 12:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:34:04 [end_date_ymd] => 2024-12-31 12:34:04 [RateCDR] => 1 ) [2024-12-31 12:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:34:04' and `end` < '2024-12-31 12:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:34:18] Production.INFO: count ==4073 [2024-12-31 12:34:19] Production.ERROR: pbx CDR StartTime 2024-12-31 09:34:04 - End Time 2024-12-31 12:34:04 [2024-12-31 12:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143575', 'tblTempUsageDetail_20' ) start [2024-12-31 12:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143575', 'tblTempUsageDetail_20' ) end [2024-12-31 12:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143575', 'tblTempVendorCDR_20' ) start [2024-12-31 12:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143575', 'tblTempVendorCDR_20' ) end [2024-12-31 12:34:20] Production.INFO: ProcessCDR(1,14143575,1,1,2) [2024-12-31 12:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143575', 'tblTempUsageDetail_20' ) start [2024-12-31 12:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143575', 'tblTempUsageDetail_20' ) end [2024-12-31 12:34:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:34:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:34:24] Production.INFO: ==19774== Releasing lock... [2024-12-31 12:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:34:24] Production.INFO: 58.5 MB #Memory Used# [2024-12-31 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:35:05 [end_date_ymd] => 2024-12-31 12:35:05 [RateCDR] => 1 ) [2024-12-31 12:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:35:05' and `end` < '2024-12-31 12:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:35:21] Production.INFO: count ==4063 [2024-12-31 12:35:22] Production.ERROR: pbx CDR StartTime 2024-12-31 09:35:05 - End Time 2024-12-31 12:35:05 [2024-12-31 12:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143580', 'tblTempUsageDetail_20' ) start [2024-12-31 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143580', 'tblTempUsageDetail_20' ) end [2024-12-31 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143580', 'tblTempVendorCDR_20' ) start [2024-12-31 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143580', 'tblTempVendorCDR_20' ) end [2024-12-31 12:35:22] Production.INFO: ProcessCDR(1,14143580,1,1,2) [2024-12-31 12:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143580', 'tblTempUsageDetail_20' ) start [2024-12-31 12:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143580', 'tblTempUsageDetail_20' ) end [2024-12-31 12:35:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:35:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:35:27] Production.INFO: ==19843== Releasing lock... [2024-12-31 12:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:35:27] Production.INFO: 58.5 MB #Memory Used# [2024-12-31 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:36:05 [end_date_ymd] => 2024-12-31 12:36:05 [RateCDR] => 1 ) [2024-12-31 12:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:36:05' and `end` < '2024-12-31 12:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:36:22] Production.INFO: count ==4053 [2024-12-31 12:36:23] Production.ERROR: pbx CDR StartTime 2024-12-31 09:36:05 - End Time 2024-12-31 12:36:05 [2024-12-31 12:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143585', 'tblTempUsageDetail_20' ) start [2024-12-31 12:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143585', 'tblTempUsageDetail_20' ) end [2024-12-31 12:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143585', 'tblTempVendorCDR_20' ) start [2024-12-31 12:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143585', 'tblTempVendorCDR_20' ) end [2024-12-31 12:36:23] Production.INFO: ProcessCDR(1,14143585,1,1,2) [2024-12-31 12:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143585', 'tblTempUsageDetail_20' ) start [2024-12-31 12:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143585', 'tblTempUsageDetail_20' ) end [2024-12-31 12:36:28] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:36:28] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:36:28] Production.INFO: ==19917== Releasing lock... [2024-12-31 12:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:36:28] Production.INFO: 58.25 MB #Memory Used# [2024-12-31 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:37:05 [end_date_ymd] => 2024-12-31 12:37:05 [RateCDR] => 1 ) [2024-12-31 12:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:37:05' and `end` < '2024-12-31 12:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:37:19] Production.INFO: count ==4043 [2024-12-31 12:37:20] Production.ERROR: pbx CDR StartTime 2024-12-31 09:37:05 - End Time 2024-12-31 12:37:05 [2024-12-31 12:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143590', 'tblTempUsageDetail_20' ) start [2024-12-31 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143590', 'tblTempUsageDetail_20' ) end [2024-12-31 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143590', 'tblTempVendorCDR_20' ) start [2024-12-31 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143590', 'tblTempVendorCDR_20' ) end [2024-12-31 12:37:20] Production.INFO: ProcessCDR(1,14143590,1,1,2) [2024-12-31 12:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143590', 'tblTempUsageDetail_20' ) start [2024-12-31 12:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143590', 'tblTempUsageDetail_20' ) end [2024-12-31 12:37:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:37:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:37:25] Production.INFO: ==20029== Releasing lock... [2024-12-31 12:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:37:25] Production.INFO: 58.25 MB #Memory Used# [2024-12-31 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:38:05 [end_date_ymd] => 2024-12-31 12:38:05 [RateCDR] => 1 ) [2024-12-31 12:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:38:05' and `end` < '2024-12-31 12:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:38:31] Production.INFO: count ==4062 [2024-12-31 12:38:32] Production.ERROR: pbx CDR StartTime 2024-12-31 09:38:05 - End Time 2024-12-31 12:38:05 [2024-12-31 12:38:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:38:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143595', 'tblTempUsageDetail_20' ) start [2024-12-31 12:38:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143595', 'tblTempUsageDetail_20' ) end [2024-12-31 12:38:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143595', 'tblTempVendorCDR_20' ) start [2024-12-31 12:38:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143595', 'tblTempVendorCDR_20' ) end [2024-12-31 12:38:32] Production.INFO: ProcessCDR(1,14143595,1,1,2) [2024-12-31 12:38:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:38:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:38:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:38:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:38:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143595', 'tblTempUsageDetail_20' ) start [2024-12-31 12:38:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143595', 'tblTempUsageDetail_20' ) end [2024-12-31 12:38:37] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:38:37] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:38:37] Production.INFO: ==20099== Releasing lock... [2024-12-31 12:38:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:38:37] Production.INFO: 58.5 MB #Memory Used# [2024-12-31 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:39:05 [end_date_ymd] => 2024-12-31 12:39:05 [RateCDR] => 1 ) [2024-12-31 12:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:39:05' and `end` < '2024-12-31 12:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:39:21] Production.INFO: count ==4051 [2024-12-31 12:39:22] Production.ERROR: pbx CDR StartTime 2024-12-31 09:39:05 - End Time 2024-12-31 12:39:05 [2024-12-31 12:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143600', 'tblTempUsageDetail_20' ) start [2024-12-31 12:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143600', 'tblTempUsageDetail_20' ) end [2024-12-31 12:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143600', 'tblTempVendorCDR_20' ) start [2024-12-31 12:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143600', 'tblTempVendorCDR_20' ) end [2024-12-31 12:39:23] Production.INFO: ProcessCDR(1,14143600,1,1,2) [2024-12-31 12:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143600', 'tblTempUsageDetail_20' ) start [2024-12-31 12:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143600', 'tblTempUsageDetail_20' ) end [2024-12-31 12:39:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:39:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:39:27] Production.INFO: ==20195== Releasing lock... [2024-12-31 12:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:39:27] Production.INFO: 58.25 MB #Memory Used# [2024-12-31 12:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:40:05 [end_date_ymd] => 2024-12-31 12:40:05 [RateCDR] => 1 ) [2024-12-31 12:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:40:05' and `end` < '2024-12-31 12:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:40:23] Production.INFO: count ==4042 [2024-12-31 12:40:25] Production.ERROR: pbx CDR StartTime 2024-12-31 09:40:05 - End Time 2024-12-31 12:40:05 [2024-12-31 12:40:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143605', 'tblTempUsageDetail_20' ) start [2024-12-31 12:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143605', 'tblTempUsageDetail_20' ) end [2024-12-31 12:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143605', 'tblTempVendorCDR_20' ) start [2024-12-31 12:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143605', 'tblTempVendorCDR_20' ) end [2024-12-31 12:40:25] Production.INFO: ProcessCDR(1,14143605,1,1,2) [2024-12-31 12:40:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:40:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:40:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143605', 'tblTempUsageDetail_20' ) start [2024-12-31 12:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143605', 'tblTempUsageDetail_20' ) end [2024-12-31 12:40:29] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:40:29] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:40:29] Production.INFO: ==20271== Releasing lock... [2024-12-31 12:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:40:29] Production.INFO: 58.5 MB #Memory Used# [2024-12-31 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:41:05 [end_date_ymd] => 2024-12-31 12:41:05 [RateCDR] => 1 ) [2024-12-31 12:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:41:05' and `end` < '2024-12-31 12:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:41:18] Production.INFO: count ==4093 [2024-12-31 12:41:20] Production.ERROR: pbx CDR StartTime 2024-12-31 09:41:05 - End Time 2024-12-31 12:41:05 [2024-12-31 12:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143611', 'tblTempUsageDetail_20' ) start [2024-12-31 12:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143611', 'tblTempUsageDetail_20' ) end [2024-12-31 12:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143611', 'tblTempVendorCDR_20' ) start [2024-12-31 12:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143611', 'tblTempVendorCDR_20' ) end [2024-12-31 12:41:20] Production.INFO: ProcessCDR(1,14143611,1,1,2) [2024-12-31 12:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143611', 'tblTempUsageDetail_20' ) start [2024-12-31 12:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143611', 'tblTempUsageDetail_20' ) end [2024-12-31 12:41:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:41:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:41:24] Production.INFO: ==20347== Releasing lock... [2024-12-31 12:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:41:24] Production.INFO: 58.5 MB #Memory Used# [2024-12-31 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:42:05 [end_date_ymd] => 2024-12-31 12:42:05 [RateCDR] => 1 ) [2024-12-31 12:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:42:05' and `end` < '2024-12-31 12:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:42:18] Production.INFO: count ==4086 [2024-12-31 12:42:20] Production.ERROR: pbx CDR StartTime 2024-12-31 09:42:05 - End Time 2024-12-31 12:42:05 [2024-12-31 12:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143616', 'tblTempUsageDetail_20' ) start [2024-12-31 12:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143616', 'tblTempUsageDetail_20' ) end [2024-12-31 12:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143616', 'tblTempVendorCDR_20' ) start [2024-12-31 12:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143616', 'tblTempVendorCDR_20' ) end [2024-12-31 12:42:20] Production.INFO: ProcessCDR(1,14143616,1,1,2) [2024-12-31 12:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143616', 'tblTempUsageDetail_20' ) start [2024-12-31 12:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143616', 'tblTempUsageDetail_20' ) end [2024-12-31 12:42:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:42:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:42:25] Production.INFO: ==20420== Releasing lock... [2024-12-31 12:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:42:25] Production.INFO: 58.5 MB #Memory Used# [2024-12-31 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:43:05 [end_date_ymd] => 2024-12-31 12:43:05 [RateCDR] => 1 ) [2024-12-31 12:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:43:05' and `end` < '2024-12-31 12:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:43:18] Production.INFO: count ==4084 [2024-12-31 12:43:20] Production.ERROR: pbx CDR StartTime 2024-12-31 09:43:05 - End Time 2024-12-31 12:43:05 [2024-12-31 12:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143621', 'tblTempUsageDetail_20' ) start [2024-12-31 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143621', 'tblTempUsageDetail_20' ) end [2024-12-31 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143621', 'tblTempVendorCDR_20' ) start [2024-12-31 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143621', 'tblTempVendorCDR_20' ) end [2024-12-31 12:43:20] Production.INFO: ProcessCDR(1,14143621,1,1,2) [2024-12-31 12:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143621', 'tblTempUsageDetail_20' ) start [2024-12-31 12:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143621', 'tblTempUsageDetail_20' ) end [2024-12-31 12:43:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:43:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:43:25] Production.INFO: ==20492== Releasing lock... [2024-12-31 12:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:43:25] Production.INFO: 58.5 MB #Memory Used# [2024-12-31 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:44:05 [end_date_ymd] => 2024-12-31 12:44:05 [RateCDR] => 1 ) [2024-12-31 12:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:44:05' and `end` < '2024-12-31 12:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:44:21] Production.INFO: count ==4073 [2024-12-31 12:44:23] Production.ERROR: pbx CDR StartTime 2024-12-31 09:44:05 - End Time 2024-12-31 12:44:05 [2024-12-31 12:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143626', 'tblTempUsageDetail_20' ) start [2024-12-31 12:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143626', 'tblTempUsageDetail_20' ) end [2024-12-31 12:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143626', 'tblTempVendorCDR_20' ) start [2024-12-31 12:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143626', 'tblTempVendorCDR_20' ) end [2024-12-31 12:44:23] Production.INFO: ProcessCDR(1,14143626,1,1,2) [2024-12-31 12:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143626', 'tblTempUsageDetail_20' ) start [2024-12-31 12:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143626', 'tblTempUsageDetail_20' ) end [2024-12-31 12:44:28] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:44:28] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:44:28] Production.INFO: ==20566== Releasing lock... [2024-12-31 12:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:44:28] Production.INFO: 58.5 MB #Memory Used# [2024-12-31 12:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:45:04 [end_date_ymd] => 2024-12-31 12:45:04 [RateCDR] => 1 ) [2024-12-31 12:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:45:04' and `end` < '2024-12-31 12:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:45:21] Production.INFO: count ==4058 [2024-12-31 12:45:22] Production.ERROR: pbx CDR StartTime 2024-12-31 09:45:04 - End Time 2024-12-31 12:45:04 [2024-12-31 12:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143631', 'tblTempUsageDetail_20' ) start [2024-12-31 12:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143631', 'tblTempUsageDetail_20' ) end [2024-12-31 12:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143631', 'tblTempVendorCDR_20' ) start [2024-12-31 12:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143631', 'tblTempVendorCDR_20' ) end [2024-12-31 12:45:23] Production.INFO: ProcessCDR(1,14143631,1,1,2) [2024-12-31 12:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143631', 'tblTempUsageDetail_20' ) start [2024-12-31 12:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143631', 'tblTempUsageDetail_20' ) end [2024-12-31 12:45:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:45:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:45:27] Production.INFO: ==20638== Releasing lock... [2024-12-31 12:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:45:27] Production.INFO: 58.25 MB #Memory Used# [2024-12-31 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:46:05 [end_date_ymd] => 2024-12-31 12:46:05 [RateCDR] => 1 ) [2024-12-31 12:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:46:05' and `end` < '2024-12-31 12:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:46:20] Production.INFO: count ==4073 [2024-12-31 12:46:22] Production.ERROR: pbx CDR StartTime 2024-12-31 09:46:05 - End Time 2024-12-31 12:46:05 [2024-12-31 12:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143636', 'tblTempUsageDetail_20' ) start [2024-12-31 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143636', 'tblTempUsageDetail_20' ) end [2024-12-31 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143636', 'tblTempVendorCDR_20' ) start [2024-12-31 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143636', 'tblTempVendorCDR_20' ) end [2024-12-31 12:46:22] Production.INFO: ProcessCDR(1,14143636,1,1,2) [2024-12-31 12:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143636', 'tblTempUsageDetail_20' ) start [2024-12-31 12:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143636', 'tblTempUsageDetail_20' ) end [2024-12-31 12:46:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:46:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:46:26] Production.INFO: ==20711== Releasing lock... [2024-12-31 12:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:46:26] Production.INFO: 58.5 MB #Memory Used# [2024-12-31 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:47:05 [end_date_ymd] => 2024-12-31 12:47:05 [RateCDR] => 1 ) [2024-12-31 12:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:47:05' and `end` < '2024-12-31 12:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:47:20] Production.INFO: count ==4079 [2024-12-31 12:47:21] Production.ERROR: pbx CDR StartTime 2024-12-31 09:47:05 - End Time 2024-12-31 12:47:05 [2024-12-31 12:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143641', 'tblTempUsageDetail_20' ) start [2024-12-31 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143641', 'tblTempUsageDetail_20' ) end [2024-12-31 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143641', 'tblTempVendorCDR_20' ) start [2024-12-31 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143641', 'tblTempVendorCDR_20' ) end [2024-12-31 12:47:22] Production.INFO: ProcessCDR(1,14143641,1,1,2) [2024-12-31 12:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143641', 'tblTempUsageDetail_20' ) start [2024-12-31 12:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143641', 'tblTempUsageDetail_20' ) end [2024-12-31 12:47:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:47:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:47:27] Production.INFO: ==20785== Releasing lock... [2024-12-31 12:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:47:27] Production.INFO: 58.5 MB #Memory Used# [2024-12-31 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:48:05 [end_date_ymd] => 2024-12-31 12:48:05 [RateCDR] => 1 ) [2024-12-31 12:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:48:05' and `end` < '2024-12-31 12:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:48:23] Production.INFO: count ==4072 [2024-12-31 12:48:25] Production.ERROR: pbx CDR StartTime 2024-12-31 09:48:05 - End Time 2024-12-31 12:48:05 [2024-12-31 12:48:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143646', 'tblTempUsageDetail_20' ) start [2024-12-31 12:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143646', 'tblTempUsageDetail_20' ) end [2024-12-31 12:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143646', 'tblTempVendorCDR_20' ) start [2024-12-31 12:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143646', 'tblTempVendorCDR_20' ) end [2024-12-31 12:48:25] Production.INFO: ProcessCDR(1,14143646,1,1,2) [2024-12-31 12:48:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:48:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:48:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:48:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143646', 'tblTempUsageDetail_20' ) start [2024-12-31 12:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143646', 'tblTempUsageDetail_20' ) end [2024-12-31 12:48:29] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:48:29] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:48:29] Production.INFO: ==20860== Releasing lock... [2024-12-31 12:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:48:29] Production.INFO: 58.5 MB #Memory Used# [2024-12-31 12:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:49:04 [end_date_ymd] => 2024-12-31 12:49:04 [RateCDR] => 1 ) [2024-12-31 12:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:49:04' and `end` < '2024-12-31 12:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:49:18] Production.INFO: count ==4082 [2024-12-31 12:49:20] Production.ERROR: pbx CDR StartTime 2024-12-31 09:49:04 - End Time 2024-12-31 12:49:04 [2024-12-31 12:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143651', 'tblTempUsageDetail_20' ) start [2024-12-31 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143651', 'tblTempUsageDetail_20' ) end [2024-12-31 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143651', 'tblTempVendorCDR_20' ) start [2024-12-31 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143651', 'tblTempVendorCDR_20' ) end [2024-12-31 12:49:20] Production.INFO: ProcessCDR(1,14143651,1,1,2) [2024-12-31 12:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143651', 'tblTempUsageDetail_20' ) start [2024-12-31 12:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143651', 'tblTempUsageDetail_20' ) end [2024-12-31 12:49:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:49:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:49:24] Production.INFO: ==20935== Releasing lock... [2024-12-31 12:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:49:24] Production.INFO: 58.5 MB #Memory Used# [2024-12-31 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:50:06 [end_date_ymd] => 2024-12-31 12:50:06 [RateCDR] => 1 ) [2024-12-31 12:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:50:06' and `end` < '2024-12-31 12:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:50:19] Production.INFO: count ==4071 [2024-12-31 12:50:20] Production.ERROR: pbx CDR StartTime 2024-12-31 09:50:06 - End Time 2024-12-31 12:50:06 [2024-12-31 12:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143657', 'tblTempUsageDetail_20' ) start [2024-12-31 12:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143657', 'tblTempUsageDetail_20' ) end [2024-12-31 12:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143657', 'tblTempVendorCDR_20' ) start [2024-12-31 12:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143657', 'tblTempVendorCDR_20' ) end [2024-12-31 12:50:20] Production.INFO: ProcessCDR(1,14143657,1,1,2) [2024-12-31 12:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143657', 'tblTempUsageDetail_20' ) start [2024-12-31 12:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143657', 'tblTempUsageDetail_20' ) end [2024-12-31 12:50:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:50:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:50:25] Production.INFO: ==21010== Releasing lock... [2024-12-31 12:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:50:25] Production.INFO: 58.5 MB #Memory Used# [2024-12-31 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:51:05 [end_date_ymd] => 2024-12-31 12:51:05 [RateCDR] => 1 ) [2024-12-31 12:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:51:05' and `end` < '2024-12-31 12:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:51:19] Production.INFO: count ==4091 [2024-12-31 12:51:20] Production.ERROR: pbx CDR StartTime 2024-12-31 09:51:05 - End Time 2024-12-31 12:51:05 [2024-12-31 12:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143662', 'tblTempUsageDetail_20' ) start [2024-12-31 12:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143662', 'tblTempUsageDetail_20' ) end [2024-12-31 12:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143662', 'tblTempVendorCDR_20' ) start [2024-12-31 12:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143662', 'tblTempVendorCDR_20' ) end [2024-12-31 12:51:20] Production.INFO: ProcessCDR(1,14143662,1,1,2) [2024-12-31 12:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143662', 'tblTempUsageDetail_20' ) start [2024-12-31 12:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143662', 'tblTempUsageDetail_20' ) end [2024-12-31 12:51:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:51:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:51:25] Production.INFO: ==21086== Releasing lock... [2024-12-31 12:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:51:25] Production.INFO: 58.5 MB #Memory Used# [2024-12-31 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:52:05 [end_date_ymd] => 2024-12-31 12:52:05 [RateCDR] => 1 ) [2024-12-31 12:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:52:05' and `end` < '2024-12-31 12:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:52:19] Production.INFO: count ==4110 [2024-12-31 12:52:21] Production.ERROR: pbx CDR StartTime 2024-12-31 09:52:05 - End Time 2024-12-31 12:52:05 [2024-12-31 12:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143667', 'tblTempUsageDetail_20' ) start [2024-12-31 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143667', 'tblTempUsageDetail_20' ) end [2024-12-31 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143667', 'tblTempVendorCDR_20' ) start [2024-12-31 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143667', 'tblTempVendorCDR_20' ) end [2024-12-31 12:52:21] Production.INFO: ProcessCDR(1,14143667,1,1,2) [2024-12-31 12:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143667', 'tblTempUsageDetail_20' ) start [2024-12-31 12:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143667', 'tblTempUsageDetail_20' ) end [2024-12-31 12:52:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:52:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:52:26] Production.INFO: ==21161== Releasing lock... [2024-12-31 12:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:52:26] Production.INFO: 58.75 MB #Memory Used# [2024-12-31 12:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:53:04 [end_date_ymd] => 2024-12-31 12:53:04 [RateCDR] => 1 ) [2024-12-31 12:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:53:04' and `end` < '2024-12-31 12:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:53:20] Production.INFO: count ==4088 [2024-12-31 12:53:22] Production.ERROR: pbx CDR StartTime 2024-12-31 09:53:04 - End Time 2024-12-31 12:53:04 [2024-12-31 12:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143672', 'tblTempUsageDetail_20' ) start [2024-12-31 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143672', 'tblTempUsageDetail_20' ) end [2024-12-31 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143672', 'tblTempVendorCDR_20' ) start [2024-12-31 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143672', 'tblTempVendorCDR_20' ) end [2024-12-31 12:53:22] Production.INFO: ProcessCDR(1,14143672,1,1,2) [2024-12-31 12:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143672', 'tblTempUsageDetail_20' ) start [2024-12-31 12:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143672', 'tblTempUsageDetail_20' ) end [2024-12-31 12:53:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:53:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:53:26] Production.INFO: ==21280== Releasing lock... [2024-12-31 12:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:53:26] Production.INFO: 58.5 MB #Memory Used# [2024-12-31 12:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:54:04 [end_date_ymd] => 2024-12-31 12:54:04 [RateCDR] => 1 ) [2024-12-31 12:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:54:04' and `end` < '2024-12-31 12:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:54:19] Production.INFO: count ==4092 [2024-12-31 12:54:20] Production.ERROR: pbx CDR StartTime 2024-12-31 09:54:04 - End Time 2024-12-31 12:54:04 [2024-12-31 12:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143677', 'tblTempUsageDetail_20' ) start [2024-12-31 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143677', 'tblTempUsageDetail_20' ) end [2024-12-31 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143677', 'tblTempVendorCDR_20' ) start [2024-12-31 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143677', 'tblTempVendorCDR_20' ) end [2024-12-31 12:54:20] Production.INFO: ProcessCDR(1,14143677,1,1,2) [2024-12-31 12:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143677', 'tblTempUsageDetail_20' ) start [2024-12-31 12:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143677', 'tblTempUsageDetail_20' ) end [2024-12-31 12:54:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:54:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:54:25] Production.INFO: ==21357== Releasing lock... [2024-12-31 12:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:54:25] Production.INFO: 58.5 MB #Memory Used# [2024-12-31 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:55:05 [end_date_ymd] => 2024-12-31 12:55:05 [RateCDR] => 1 ) [2024-12-31 12:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:55:05' and `end` < '2024-12-31 12:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:55:19] Production.INFO: count ==4092 [2024-12-31 12:55:21] Production.ERROR: pbx CDR StartTime 2024-12-31 09:55:05 - End Time 2024-12-31 12:55:05 [2024-12-31 12:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143682', 'tblTempUsageDetail_20' ) start [2024-12-31 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143682', 'tblTempUsageDetail_20' ) end [2024-12-31 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143682', 'tblTempVendorCDR_20' ) start [2024-12-31 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143682', 'tblTempVendorCDR_20' ) end [2024-12-31 12:55:21] Production.INFO: ProcessCDR(1,14143682,1,1,2) [2024-12-31 12:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143682', 'tblTempUsageDetail_20' ) start [2024-12-31 12:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143682', 'tblTempUsageDetail_20' ) end [2024-12-31 12:55:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:55:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:55:26] Production.INFO: ==21451== Releasing lock... [2024-12-31 12:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:55:26] Production.INFO: 58.5 MB #Memory Used# [2024-12-31 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:56:05 [end_date_ymd] => 2024-12-31 12:56:05 [RateCDR] => 1 ) [2024-12-31 12:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:56:05' and `end` < '2024-12-31 12:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:56:20] Production.INFO: count ==4095 [2024-12-31 12:56:21] Production.ERROR: pbx CDR StartTime 2024-12-31 09:56:05 - End Time 2024-12-31 12:56:05 [2024-12-31 12:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143687', 'tblTempUsageDetail_20' ) start [2024-12-31 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143687', 'tblTempUsageDetail_20' ) end [2024-12-31 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143687', 'tblTempVendorCDR_20' ) start [2024-12-31 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143687', 'tblTempVendorCDR_20' ) end [2024-12-31 12:56:22] Production.INFO: ProcessCDR(1,14143687,1,1,2) [2024-12-31 12:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143687', 'tblTempUsageDetail_20' ) start [2024-12-31 12:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143687', 'tblTempUsageDetail_20' ) end [2024-12-31 12:56:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:56:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:56:26] Production.INFO: ==21536== Releasing lock... [2024-12-31 12:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:56:26] Production.INFO: 58.75 MB #Memory Used# [2024-12-31 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:57:05 [end_date_ymd] => 2024-12-31 12:57:05 [RateCDR] => 1 ) [2024-12-31 12:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:57:05' and `end` < '2024-12-31 12:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:57:20] Production.INFO: count ==4103 [2024-12-31 12:57:21] Production.ERROR: pbx CDR StartTime 2024-12-31 09:57:05 - End Time 2024-12-31 12:57:05 [2024-12-31 12:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143692', 'tblTempUsageDetail_20' ) start [2024-12-31 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143692', 'tblTempUsageDetail_20' ) end [2024-12-31 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143692', 'tblTempVendorCDR_20' ) start [2024-12-31 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143692', 'tblTempVendorCDR_20' ) end [2024-12-31 12:57:22] Production.INFO: ProcessCDR(1,14143692,1,1,2) [2024-12-31 12:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143692', 'tblTempUsageDetail_20' ) start [2024-12-31 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143692', 'tblTempUsageDetail_20' ) end [2024-12-31 12:57:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:57:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:57:26] Production.INFO: ==21642== Releasing lock... [2024-12-31 12:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:57:26] Production.INFO: 58.75 MB #Memory Used# [2024-12-31 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:58:05 [end_date_ymd] => 2024-12-31 12:58:05 [RateCDR] => 1 ) [2024-12-31 12:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:58:05' and `end` < '2024-12-31 12:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:58:18] Production.INFO: count ==4102 [2024-12-31 12:58:20] Production.ERROR: pbx CDR StartTime 2024-12-31 09:58:05 - End Time 2024-12-31 12:58:05 [2024-12-31 12:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143697', 'tblTempUsageDetail_20' ) start [2024-12-31 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143697', 'tblTempUsageDetail_20' ) end [2024-12-31 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143697', 'tblTempVendorCDR_20' ) start [2024-12-31 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143697', 'tblTempVendorCDR_20' ) end [2024-12-31 12:58:20] Production.INFO: ProcessCDR(1,14143697,1,1,2) [2024-12-31 12:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143697', 'tblTempUsageDetail_20' ) start [2024-12-31 12:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143697', 'tblTempUsageDetail_20' ) end [2024-12-31 12:58:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:58:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:58:24] Production.INFO: ==21754== Releasing lock... [2024-12-31 12:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:58:24] Production.INFO: 58.75 MB #Memory Used# [2024-12-31 12:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 09:59:04 [end_date_ymd] => 2024-12-31 12:59:04 [RateCDR] => 1 ) [2024-12-31 12:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 09:59:04' and `end` < '2024-12-31 12:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 12:59:17] Production.INFO: count ==4099 [2024-12-31 12:59:19] Production.ERROR: pbx CDR StartTime 2024-12-31 09:59:04 - End Time 2024-12-31 12:59:04 [2024-12-31 12:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143702', 'tblTempUsageDetail_20' ) start [2024-12-31 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143702', 'tblTempUsageDetail_20' ) end [2024-12-31 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143702', 'tblTempVendorCDR_20' ) start [2024-12-31 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143702', 'tblTempVendorCDR_20' ) end [2024-12-31 12:59:19] Production.INFO: ProcessCDR(1,14143702,1,1,2) [2024-12-31 12:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 12:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 12:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143702', 'tblTempUsageDetail_20' ) start [2024-12-31 12:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143702', 'tblTempUsageDetail_20' ) end [2024-12-31 12:59:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 12:59:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 12:59:24] Production.INFO: ==21873== Releasing lock... [2024-12-31 12:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 12:59:24] Production.INFO: 58.75 MB #Memory Used# [2024-12-31 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:00:06 [end_date_ymd] => 2024-12-31 13:00:06 [RateCDR] => 1 ) [2024-12-31 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:00:06' and `end` < '2024-12-31 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:00:22] Production.INFO: count ==4106 [2024-12-31 13:00:24] Production.ERROR: pbx CDR StartTime 2024-12-31 10:00:06 - End Time 2024-12-31 13:00:06 [2024-12-31 13:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143707', 'tblTempUsageDetail_20' ) start [2024-12-31 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143707', 'tblTempUsageDetail_20' ) end [2024-12-31 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143707', 'tblTempVendorCDR_20' ) start [2024-12-31 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143707', 'tblTempVendorCDR_20' ) end [2024-12-31 13:00:24] Production.INFO: ProcessCDR(1,14143707,1,1,2) [2024-12-31 13:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143707', 'tblTempUsageDetail_20' ) start [2024-12-31 13:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143707', 'tblTempUsageDetail_20' ) end [2024-12-31 13:00:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:00:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:00:27] Production.INFO: ==21998== Releasing lock... [2024-12-31 13:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:00:27] Production.INFO: 58.75 MB #Memory Used# [2024-12-31 13:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:01:04 [end_date_ymd] => 2024-12-31 13:01:04 [RateCDR] => 1 ) [2024-12-31 13:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:01:04' and `end` < '2024-12-31 13:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:01:19] Production.INFO: count ==4115 [2024-12-31 13:01:20] Production.ERROR: pbx CDR StartTime 2024-12-31 10:01:04 - End Time 2024-12-31 13:01:04 [2024-12-31 13:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143713', 'tblTempUsageDetail_20' ) start [2024-12-31 13:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143713', 'tblTempUsageDetail_20' ) end [2024-12-31 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143713', 'tblTempVendorCDR_20' ) start [2024-12-31 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143713', 'tblTempVendorCDR_20' ) end [2024-12-31 13:01:21] Production.INFO: ProcessCDR(1,14143713,1,1,2) [2024-12-31 13:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143713', 'tblTempUsageDetail_20' ) start [2024-12-31 13:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143713', 'tblTempUsageDetail_20' ) end [2024-12-31 13:01:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:01:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:01:25] Production.INFO: ==22139== Releasing lock... [2024-12-31 13:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:01:25] Production.INFO: 59 MB #Memory Used# [2024-12-31 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:02:05 [end_date_ymd] => 2024-12-31 13:02:05 [RateCDR] => 1 ) [2024-12-31 13:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:02:05' and `end` < '2024-12-31 13:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:02:19] Production.INFO: count ==4098 [2024-12-31 13:02:21] Production.ERROR: pbx CDR StartTime 2024-12-31 10:02:05 - End Time 2024-12-31 13:02:05 [2024-12-31 13:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143718', 'tblTempUsageDetail_20' ) start [2024-12-31 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143718', 'tblTempUsageDetail_20' ) end [2024-12-31 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143718', 'tblTempVendorCDR_20' ) start [2024-12-31 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143718', 'tblTempVendorCDR_20' ) end [2024-12-31 13:02:21] Production.INFO: ProcessCDR(1,14143718,1,1,2) [2024-12-31 13:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143718', 'tblTempUsageDetail_20' ) start [2024-12-31 13:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143718', 'tblTempUsageDetail_20' ) end [2024-12-31 13:02:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:02:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:02:25] Production.INFO: ==22279== Releasing lock... [2024-12-31 13:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:02:25] Production.INFO: 58.75 MB #Memory Used# [2024-12-31 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:03:05 [end_date_ymd] => 2024-12-31 13:03:05 [RateCDR] => 1 ) [2024-12-31 13:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:03:05' and `end` < '2024-12-31 13:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:03:19] Production.INFO: count ==4091 [2024-12-31 13:03:21] Production.ERROR: pbx CDR StartTime 2024-12-31 10:03:05 - End Time 2024-12-31 13:03:05 [2024-12-31 13:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143723', 'tblTempUsageDetail_20' ) start [2024-12-31 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143723', 'tblTempUsageDetail_20' ) end [2024-12-31 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143723', 'tblTempVendorCDR_20' ) start [2024-12-31 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143723', 'tblTempVendorCDR_20' ) end [2024-12-31 13:03:21] Production.INFO: ProcessCDR(1,14143723,1,1,2) [2024-12-31 13:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143723', 'tblTempUsageDetail_20' ) start [2024-12-31 13:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143723', 'tblTempUsageDetail_20' ) end [2024-12-31 13:03:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:03:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:03:25] Production.INFO: ==22414== Releasing lock... [2024-12-31 13:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:03:25] Production.INFO: 58.5 MB #Memory Used# [2024-12-31 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:04:05 [end_date_ymd] => 2024-12-31 13:04:05 [RateCDR] => 1 ) [2024-12-31 13:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:04:05' and `end` < '2024-12-31 13:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:04:19] Production.INFO: count ==4079 [2024-12-31 13:04:21] Production.ERROR: pbx CDR StartTime 2024-12-31 10:04:05 - End Time 2024-12-31 13:04:05 [2024-12-31 13:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143728', 'tblTempUsageDetail_20' ) start [2024-12-31 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143728', 'tblTempUsageDetail_20' ) end [2024-12-31 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143728', 'tblTempVendorCDR_20' ) start [2024-12-31 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143728', 'tblTempVendorCDR_20' ) end [2024-12-31 13:04:21] Production.INFO: ProcessCDR(1,14143728,1,1,2) [2024-12-31 13:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143728', 'tblTempUsageDetail_20' ) start [2024-12-31 13:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143728', 'tblTempUsageDetail_20' ) end [2024-12-31 13:04:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:04:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:04:26] Production.INFO: ==22539== Releasing lock... [2024-12-31 13:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:04:26] Production.INFO: 58.75 MB #Memory Used# [2024-12-31 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:05:05 [end_date_ymd] => 2024-12-31 13:05:05 [RateCDR] => 1 ) [2024-12-31 13:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:05:05' and `end` < '2024-12-31 13:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:05:18] Production.INFO: count ==4101 [2024-12-31 13:05:20] Production.ERROR: pbx CDR StartTime 2024-12-31 10:05:05 - End Time 2024-12-31 13:05:05 [2024-12-31 13:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143733', 'tblTempUsageDetail_20' ) start [2024-12-31 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143733', 'tblTempUsageDetail_20' ) end [2024-12-31 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143733', 'tblTempVendorCDR_20' ) start [2024-12-31 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143733', 'tblTempVendorCDR_20' ) end [2024-12-31 13:05:20] Production.INFO: ProcessCDR(1,14143733,1,1,2) [2024-12-31 13:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143733', 'tblTempUsageDetail_20' ) start [2024-12-31 13:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143733', 'tblTempUsageDetail_20' ) end [2024-12-31 13:05:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:05:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:05:25] Production.INFO: ==22657== Releasing lock... [2024-12-31 13:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:05:25] Production.INFO: 58.75 MB #Memory Used# [2024-12-31 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:06:05 [end_date_ymd] => 2024-12-31 13:06:05 [RateCDR] => 1 ) [2024-12-31 13:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:06:05' and `end` < '2024-12-31 13:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:06:24] Production.INFO: count ==4120 [2024-12-31 13:06:25] Production.ERROR: pbx CDR StartTime 2024-12-31 10:06:05 - End Time 2024-12-31 13:06:05 [2024-12-31 13:06:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143738', 'tblTempUsageDetail_20' ) start [2024-12-31 13:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143738', 'tblTempUsageDetail_20' ) end [2024-12-31 13:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143738', 'tblTempVendorCDR_20' ) start [2024-12-31 13:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143738', 'tblTempVendorCDR_20' ) end [2024-12-31 13:06:25] Production.INFO: ProcessCDR(1,14143738,1,1,2) [2024-12-31 13:06:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143738', 'tblTempUsageDetail_20' ) start [2024-12-31 13:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143738', 'tblTempUsageDetail_20' ) end [2024-12-31 13:06:30] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:06:30] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:06:30] Production.INFO: ==22784== Releasing lock... [2024-12-31 13:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:06:30] Production.INFO: 59 MB #Memory Used# [2024-12-31 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:07:05 [end_date_ymd] => 2024-12-31 13:07:05 [RateCDR] => 1 ) [2024-12-31 13:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:07:05' and `end` < '2024-12-31 13:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:07:21] Production.INFO: count ==4111 [2024-12-31 13:07:23] Production.ERROR: pbx CDR StartTime 2024-12-31 10:07:05 - End Time 2024-12-31 13:07:05 [2024-12-31 13:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143743', 'tblTempUsageDetail_20' ) start [2024-12-31 13:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143743', 'tblTempUsageDetail_20' ) end [2024-12-31 13:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143743', 'tblTempVendorCDR_20' ) start [2024-12-31 13:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143743', 'tblTempVendorCDR_20' ) end [2024-12-31 13:07:23] Production.INFO: ProcessCDR(1,14143743,1,1,2) [2024-12-31 13:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143743', 'tblTempUsageDetail_20' ) start [2024-12-31 13:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143743', 'tblTempUsageDetail_20' ) end [2024-12-31 13:07:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:07:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:07:27] Production.INFO: ==22917== Releasing lock... [2024-12-31 13:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:07:27] Production.INFO: 58.75 MB #Memory Used# [2024-12-31 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:08:05 [end_date_ymd] => 2024-12-31 13:08:05 [RateCDR] => 1 ) [2024-12-31 13:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:08:05' and `end` < '2024-12-31 13:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:08:23] Production.INFO: count ==4119 [2024-12-31 13:08:25] Production.ERROR: pbx CDR StartTime 2024-12-31 10:08:05 - End Time 2024-12-31 13:08:05 [2024-12-31 13:08:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143748', 'tblTempUsageDetail_20' ) start [2024-12-31 13:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143748', 'tblTempUsageDetail_20' ) end [2024-12-31 13:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143748', 'tblTempVendorCDR_20' ) start [2024-12-31 13:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143748', 'tblTempVendorCDR_20' ) end [2024-12-31 13:08:25] Production.INFO: ProcessCDR(1,14143748,1,1,2) [2024-12-31 13:08:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:08:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:08:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:08:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143748', 'tblTempUsageDetail_20' ) start [2024-12-31 13:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143748', 'tblTempUsageDetail_20' ) end [2024-12-31 13:08:29] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:08:29] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:08:29] Production.INFO: ==23088== Releasing lock... [2024-12-31 13:08:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:08:29] Production.INFO: 58.75 MB #Memory Used# [2024-12-31 13:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:09:04 [end_date_ymd] => 2024-12-31 13:09:04 [RateCDR] => 1 ) [2024-12-31 13:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:09:04' and `end` < '2024-12-31 13:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:09:18] Production.INFO: count ==4096 [2024-12-31 13:09:19] Production.ERROR: pbx CDR StartTime 2024-12-31 10:09:04 - End Time 2024-12-31 13:09:04 [2024-12-31 13:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143753', 'tblTempUsageDetail_20' ) start [2024-12-31 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143753', 'tblTempUsageDetail_20' ) end [2024-12-31 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143753', 'tblTempVendorCDR_20' ) start [2024-12-31 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143753', 'tblTempVendorCDR_20' ) end [2024-12-31 13:09:19] Production.INFO: ProcessCDR(1,14143753,1,1,2) [2024-12-31 13:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143753', 'tblTempUsageDetail_20' ) start [2024-12-31 13:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143753', 'tblTempUsageDetail_20' ) end [2024-12-31 13:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:09:22] Production.INFO: ==23217== Releasing lock... [2024-12-31 13:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:09:22] Production.INFO: 58.75 MB #Memory Used# [2024-12-31 13:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:10:05 [end_date_ymd] => 2024-12-31 13:10:05 [RateCDR] => 1 ) [2024-12-31 13:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:10:05' and `end` < '2024-12-31 13:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:10:19] Production.INFO: count ==4118 [2024-12-31 13:10:20] Production.ERROR: pbx CDR StartTime 2024-12-31 10:10:05 - End Time 2024-12-31 13:10:05 [2024-12-31 13:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143759', 'tblTempUsageDetail_20' ) start [2024-12-31 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143759', 'tblTempUsageDetail_20' ) end [2024-12-31 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143759', 'tblTempVendorCDR_20' ) start [2024-12-31 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143759', 'tblTempVendorCDR_20' ) end [2024-12-31 13:10:20] Production.INFO: ProcessCDR(1,14143759,1,1,2) [2024-12-31 13:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143759', 'tblTempUsageDetail_20' ) start [2024-12-31 13:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143759', 'tblTempUsageDetail_20' ) end [2024-12-31 13:10:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:10:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:10:25] Production.INFO: ==23347== Releasing lock... [2024-12-31 13:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:10:25] Production.INFO: 58.75 MB #Memory Used# [2024-12-31 13:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:11:04 [end_date_ymd] => 2024-12-31 13:11:04 [RateCDR] => 1 ) [2024-12-31 13:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:11:04' and `end` < '2024-12-31 13:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:11:18] Production.INFO: count ==4102 [2024-12-31 13:11:20] Production.ERROR: pbx CDR StartTime 2024-12-31 10:11:04 - End Time 2024-12-31 13:11:04 [2024-12-31 13:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143764', 'tblTempUsageDetail_20' ) start [2024-12-31 13:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143764', 'tblTempUsageDetail_20' ) end [2024-12-31 13:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143764', 'tblTempVendorCDR_20' ) start [2024-12-31 13:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143764', 'tblTempVendorCDR_20' ) end [2024-12-31 13:11:20] Production.INFO: ProcessCDR(1,14143764,1,1,2) [2024-12-31 13:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143764', 'tblTempUsageDetail_20' ) start [2024-12-31 13:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143764', 'tblTempUsageDetail_20' ) end [2024-12-31 13:11:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:11:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:11:24] Production.INFO: ==23474== Releasing lock... [2024-12-31 13:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:11:24] Production.INFO: 58.75 MB #Memory Used# [2024-12-31 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:12:05 [end_date_ymd] => 2024-12-31 13:12:05 [RateCDR] => 1 ) [2024-12-31 13:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:12:05' and `end` < '2024-12-31 13:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:12:18] Production.INFO: count ==4099 [2024-12-31 13:12:20] Production.ERROR: pbx CDR StartTime 2024-12-31 10:12:05 - End Time 2024-12-31 13:12:05 [2024-12-31 13:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143769', 'tblTempUsageDetail_20' ) start [2024-12-31 13:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143769', 'tblTempUsageDetail_20' ) end [2024-12-31 13:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143769', 'tblTempVendorCDR_20' ) start [2024-12-31 13:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143769', 'tblTempVendorCDR_20' ) end [2024-12-31 13:12:20] Production.INFO: ProcessCDR(1,14143769,1,1,2) [2024-12-31 13:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143769', 'tblTempUsageDetail_20' ) start [2024-12-31 13:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143769', 'tblTempUsageDetail_20' ) end [2024-12-31 13:12:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:12:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:12:25] Production.INFO: ==23600== Releasing lock... [2024-12-31 13:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:12:25] Production.INFO: 58.75 MB #Memory Used# [2024-12-31 13:13:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:13:06 [end_date_ymd] => 2024-12-31 13:13:06 [RateCDR] => 1 ) [2024-12-31 13:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:13:06' and `end` < '2024-12-31 13:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:13:19] Production.INFO: count ==4101 [2024-12-31 13:13:21] Production.ERROR: pbx CDR StartTime 2024-12-31 10:13:06 - End Time 2024-12-31 13:13:06 [2024-12-31 13:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143774', 'tblTempUsageDetail_20' ) start [2024-12-31 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143774', 'tblTempUsageDetail_20' ) end [2024-12-31 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143774', 'tblTempVendorCDR_20' ) start [2024-12-31 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143774', 'tblTempVendorCDR_20' ) end [2024-12-31 13:13:21] Production.INFO: ProcessCDR(1,14143774,1,1,2) [2024-12-31 13:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143774', 'tblTempUsageDetail_20' ) start [2024-12-31 13:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143774', 'tblTempUsageDetail_20' ) end [2024-12-31 13:13:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:13:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:13:25] Production.INFO: ==23729== Releasing lock... [2024-12-31 13:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:13:25] Production.INFO: 58.75 MB #Memory Used# [2024-12-31 13:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:14:04 [end_date_ymd] => 2024-12-31 13:14:04 [RateCDR] => 1 ) [2024-12-31 13:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:14:04' and `end` < '2024-12-31 13:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:14:22] Production.INFO: count ==4109 [2024-12-31 13:14:23] Production.ERROR: pbx CDR StartTime 2024-12-31 10:14:04 - End Time 2024-12-31 13:14:04 [2024-12-31 13:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143779', 'tblTempUsageDetail_20' ) start [2024-12-31 13:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143779', 'tblTempUsageDetail_20' ) end [2024-12-31 13:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143779', 'tblTempVendorCDR_20' ) start [2024-12-31 13:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143779', 'tblTempVendorCDR_20' ) end [2024-12-31 13:14:23] Production.INFO: ProcessCDR(1,14143779,1,1,2) [2024-12-31 13:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143779', 'tblTempUsageDetail_20' ) start [2024-12-31 13:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143779', 'tblTempUsageDetail_20' ) end [2024-12-31 13:14:28] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:14:28] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:14:28] Production.INFO: ==23856== Releasing lock... [2024-12-31 13:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:14:28] Production.INFO: 58.75 MB #Memory Used# [2024-12-31 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:15:05 [end_date_ymd] => 2024-12-31 13:15:05 [RateCDR] => 1 ) [2024-12-31 13:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:15:05' and `end` < '2024-12-31 13:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:15:18] Production.INFO: count ==4119 [2024-12-31 13:15:20] Production.ERROR: pbx CDR StartTime 2024-12-31 10:15:05 - End Time 2024-12-31 13:15:05 [2024-12-31 13:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143784', 'tblTempUsageDetail_20' ) start [2024-12-31 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143784', 'tblTempUsageDetail_20' ) end [2024-12-31 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143784', 'tblTempVendorCDR_20' ) start [2024-12-31 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143784', 'tblTempVendorCDR_20' ) end [2024-12-31 13:15:20] Production.INFO: ProcessCDR(1,14143784,1,1,2) [2024-12-31 13:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143784', 'tblTempUsageDetail_20' ) start [2024-12-31 13:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143784', 'tblTempUsageDetail_20' ) end [2024-12-31 13:15:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:15:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:15:25] Production.INFO: ==23967== Releasing lock... [2024-12-31 13:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:15:25] Production.INFO: 59 MB #Memory Used# [2024-12-31 13:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:16:04 [end_date_ymd] => 2024-12-31 13:16:04 [RateCDR] => 1 ) [2024-12-31 13:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:16:04' and `end` < '2024-12-31 13:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:16:22] Production.INFO: count ==4117 [2024-12-31 13:16:23] Production.ERROR: pbx CDR StartTime 2024-12-31 10:16:04 - End Time 2024-12-31 13:16:04 [2024-12-31 13:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143789', 'tblTempUsageDetail_20' ) start [2024-12-31 13:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143789', 'tblTempUsageDetail_20' ) end [2024-12-31 13:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143789', 'tblTempVendorCDR_20' ) start [2024-12-31 13:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143789', 'tblTempVendorCDR_20' ) end [2024-12-31 13:16:24] Production.INFO: ProcessCDR(1,14143789,1,1,2) [2024-12-31 13:16:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143789', 'tblTempUsageDetail_20' ) start [2024-12-31 13:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143789', 'tblTempUsageDetail_20' ) end [2024-12-31 13:16:28] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:16:28] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:16:28] Production.INFO: ==24077== Releasing lock... [2024-12-31 13:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:16:28] Production.INFO: 58.75 MB #Memory Used# [2024-12-31 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:17:05 [end_date_ymd] => 2024-12-31 13:17:05 [RateCDR] => 1 ) [2024-12-31 13:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:17:05' and `end` < '2024-12-31 13:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:17:23] Production.INFO: count ==4088 [2024-12-31 13:17:24] Production.ERROR: pbx CDR StartTime 2024-12-31 10:17:05 - End Time 2024-12-31 13:17:05 [2024-12-31 13:17:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143794', 'tblTempUsageDetail_20' ) start [2024-12-31 13:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143794', 'tblTempUsageDetail_20' ) end [2024-12-31 13:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143794', 'tblTempVendorCDR_20' ) start [2024-12-31 13:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143794', 'tblTempVendorCDR_20' ) end [2024-12-31 13:17:24] Production.INFO: ProcessCDR(1,14143794,1,1,2) [2024-12-31 13:17:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:17:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:17:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:17:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143794', 'tblTempUsageDetail_20' ) start [2024-12-31 13:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143794', 'tblTempUsageDetail_20' ) end [2024-12-31 13:17:29] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:17:29] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:17:29] Production.INFO: ==24183== Releasing lock... [2024-12-31 13:17:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:17:29] Production.INFO: 58.75 MB #Memory Used# [2024-12-31 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:18:05 [end_date_ymd] => 2024-12-31 13:18:05 [RateCDR] => 1 ) [2024-12-31 13:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:18:05' and `end` < '2024-12-31 13:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:18:26] Production.INFO: count ==4094 [2024-12-31 13:18:28] Production.ERROR: pbx CDR StartTime 2024-12-31 10:18:05 - End Time 2024-12-31 13:18:05 [2024-12-31 13:18:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143799', 'tblTempUsageDetail_20' ) start [2024-12-31 13:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143799', 'tblTempUsageDetail_20' ) end [2024-12-31 13:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143799', 'tblTempVendorCDR_20' ) start [2024-12-31 13:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143799', 'tblTempVendorCDR_20' ) end [2024-12-31 13:18:28] Production.INFO: ProcessCDR(1,14143799,1,1,2) [2024-12-31 13:18:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:18:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:18:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:18:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:18:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143799', 'tblTempUsageDetail_20' ) start [2024-12-31 13:18:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143799', 'tblTempUsageDetail_20' ) end [2024-12-31 13:18:33] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:18:33] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:18:33] Production.INFO: ==24283== Releasing lock... [2024-12-31 13:18:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:18:33] Production.INFO: 58.75 MB #Memory Used# [2024-12-31 13:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:19:04 [end_date_ymd] => 2024-12-31 13:19:04 [RateCDR] => 1 ) [2024-12-31 13:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:19:04' and `end` < '2024-12-31 13:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:19:20] Production.INFO: count ==4096 [2024-12-31 13:19:22] Production.ERROR: pbx CDR StartTime 2024-12-31 10:19:04 - End Time 2024-12-31 13:19:04 [2024-12-31 13:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143804', 'tblTempUsageDetail_20' ) start [2024-12-31 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143804', 'tblTempUsageDetail_20' ) end [2024-12-31 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143804', 'tblTempVendorCDR_20' ) start [2024-12-31 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143804', 'tblTempVendorCDR_20' ) end [2024-12-31 13:19:22] Production.INFO: ProcessCDR(1,14143804,1,1,2) [2024-12-31 13:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143804', 'tblTempUsageDetail_20' ) start [2024-12-31 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143804', 'tblTempUsageDetail_20' ) end [2024-12-31 13:19:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:19:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:19:27] Production.INFO: ==24370== Releasing lock... [2024-12-31 13:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:19:27] Production.INFO: 58.75 MB #Memory Used# [2024-12-31 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:20:06 [end_date_ymd] => 2024-12-31 13:20:06 [RateCDR] => 1 ) [2024-12-31 13:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:20:06' and `end` < '2024-12-31 13:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:20:23] Production.INFO: count ==4084 [2024-12-31 13:20:24] Production.ERROR: pbx CDR StartTime 2024-12-31 10:20:06 - End Time 2024-12-31 13:20:06 [2024-12-31 13:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143810', 'tblTempUsageDetail_20' ) start [2024-12-31 13:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143810', 'tblTempUsageDetail_20' ) end [2024-12-31 13:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143810', 'tblTempVendorCDR_20' ) start [2024-12-31 13:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143810', 'tblTempVendorCDR_20' ) end [2024-12-31 13:20:25] Production.INFO: ProcessCDR(1,14143810,1,1,2) [2024-12-31 13:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143810', 'tblTempUsageDetail_20' ) start [2024-12-31 13:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143810', 'tblTempUsageDetail_20' ) end [2024-12-31 13:20:29] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:20:29] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:20:29] Production.INFO: ==24461== Releasing lock... [2024-12-31 13:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:20:29] Production.INFO: 58.5 MB #Memory Used# [2024-12-31 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:21:05 [end_date_ymd] => 2024-12-31 13:21:05 [RateCDR] => 1 ) [2024-12-31 13:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:21:05' and `end` < '2024-12-31 13:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:21:18] Production.INFO: count ==4068 [2024-12-31 13:21:20] Production.ERROR: pbx CDR StartTime 2024-12-31 10:21:05 - End Time 2024-12-31 13:21:05 [2024-12-31 13:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143815', 'tblTempUsageDetail_20' ) start [2024-12-31 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143815', 'tblTempUsageDetail_20' ) end [2024-12-31 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143815', 'tblTempVendorCDR_20' ) start [2024-12-31 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143815', 'tblTempVendorCDR_20' ) end [2024-12-31 13:21:20] Production.INFO: ProcessCDR(1,14143815,1,1,2) [2024-12-31 13:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143815', 'tblTempUsageDetail_20' ) start [2024-12-31 13:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143815', 'tblTempUsageDetail_20' ) end [2024-12-31 13:21:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:21:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:21:24] Production.INFO: ==24548== Releasing lock... [2024-12-31 13:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:21:24] Production.INFO: 58.5 MB #Memory Used# [2024-12-31 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:22:05 [end_date_ymd] => 2024-12-31 13:22:05 [RateCDR] => 1 ) [2024-12-31 13:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:22:05' and `end` < '2024-12-31 13:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:22:18] Production.INFO: count ==4047 [2024-12-31 13:22:20] Production.ERROR: pbx CDR StartTime 2024-12-31 10:22:05 - End Time 2024-12-31 13:22:05 [2024-12-31 13:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143820', 'tblTempUsageDetail_20' ) start [2024-12-31 13:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143820', 'tblTempUsageDetail_20' ) end [2024-12-31 13:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143820', 'tblTempVendorCDR_20' ) start [2024-12-31 13:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143820', 'tblTempVendorCDR_20' ) end [2024-12-31 13:22:20] Production.INFO: ProcessCDR(1,14143820,1,1,2) [2024-12-31 13:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143820', 'tblTempUsageDetail_20' ) start [2024-12-31 13:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143820', 'tblTempUsageDetail_20' ) end [2024-12-31 13:22:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:22:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:22:25] Production.INFO: ==24633== Releasing lock... [2024-12-31 13:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:22:25] Production.INFO: 58.25 MB #Memory Used# [2024-12-31 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:23:05 [end_date_ymd] => 2024-12-31 13:23:05 [RateCDR] => 1 ) [2024-12-31 13:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:23:05' and `end` < '2024-12-31 13:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:23:20] Production.INFO: count ==4037 [2024-12-31 13:23:21] Production.ERROR: pbx CDR StartTime 2024-12-31 10:23:05 - End Time 2024-12-31 13:23:05 [2024-12-31 13:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143825', 'tblTempUsageDetail_20' ) start [2024-12-31 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143825', 'tblTempUsageDetail_20' ) end [2024-12-31 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143825', 'tblTempVendorCDR_20' ) start [2024-12-31 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143825', 'tblTempVendorCDR_20' ) end [2024-12-31 13:23:22] Production.INFO: ProcessCDR(1,14143825,1,1,2) [2024-12-31 13:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143825', 'tblTempUsageDetail_20' ) start [2024-12-31 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143825', 'tblTempUsageDetail_20' ) end [2024-12-31 13:23:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:23:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:23:26] Production.INFO: ==24708== Releasing lock... [2024-12-31 13:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:23:26] Production.INFO: 58.25 MB #Memory Used# [2024-12-31 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:24:05 [end_date_ymd] => 2024-12-31 13:24:05 [RateCDR] => 1 ) [2024-12-31 13:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:24:05' and `end` < '2024-12-31 13:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:24:18] Production.INFO: count ==4027 [2024-12-31 13:24:20] Production.ERROR: pbx CDR StartTime 2024-12-31 10:24:05 - End Time 2024-12-31 13:24:05 [2024-12-31 13:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143830', 'tblTempUsageDetail_20' ) start [2024-12-31 13:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143830', 'tblTempUsageDetail_20' ) end [2024-12-31 13:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143830', 'tblTempVendorCDR_20' ) start [2024-12-31 13:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143830', 'tblTempVendorCDR_20' ) end [2024-12-31 13:24:20] Production.INFO: ProcessCDR(1,14143830,1,1,2) [2024-12-31 13:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143830', 'tblTempUsageDetail_20' ) start [2024-12-31 13:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143830', 'tblTempUsageDetail_20' ) end [2024-12-31 13:24:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:24:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:24:24] Production.INFO: ==24821== Releasing lock... [2024-12-31 13:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:24:24] Production.INFO: 58.25 MB #Memory Used# [2024-12-31 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:25:05 [end_date_ymd] => 2024-12-31 13:25:05 [RateCDR] => 1 ) [2024-12-31 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:25:05' and `end` < '2024-12-31 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:25:18] Production.INFO: count ==4009 [2024-12-31 13:25:20] Production.ERROR: pbx CDR StartTime 2024-12-31 10:25:05 - End Time 2024-12-31 13:25:05 [2024-12-31 13:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143835', 'tblTempUsageDetail_20' ) start [2024-12-31 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143835', 'tblTempUsageDetail_20' ) end [2024-12-31 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143835', 'tblTempVendorCDR_20' ) start [2024-12-31 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143835', 'tblTempVendorCDR_20' ) end [2024-12-31 13:25:20] Production.INFO: ProcessCDR(1,14143835,1,1,2) [2024-12-31 13:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143835', 'tblTempUsageDetail_20' ) start [2024-12-31 13:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143835', 'tblTempUsageDetail_20' ) end [2024-12-31 13:25:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:25:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:25:25] Production.INFO: ==24892== Releasing lock... [2024-12-31 13:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:25:25] Production.INFO: 58 MB #Memory Used# [2024-12-31 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:26:05 [end_date_ymd] => 2024-12-31 13:26:05 [RateCDR] => 1 ) [2024-12-31 13:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:26:05' and `end` < '2024-12-31 13:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:26:19] Production.INFO: count ==4001 [2024-12-31 13:26:21] Production.ERROR: pbx CDR StartTime 2024-12-31 10:26:05 - End Time 2024-12-31 13:26:05 [2024-12-31 13:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143840', 'tblTempUsageDetail_20' ) start [2024-12-31 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143840', 'tblTempUsageDetail_20' ) end [2024-12-31 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143840', 'tblTempVendorCDR_20' ) start [2024-12-31 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143840', 'tblTempVendorCDR_20' ) end [2024-12-31 13:26:21] Production.INFO: ProcessCDR(1,14143840,1,1,2) [2024-12-31 13:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143840', 'tblTempUsageDetail_20' ) start [2024-12-31 13:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143840', 'tblTempUsageDetail_20' ) end [2024-12-31 13:26:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:26:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:26:25] Production.INFO: ==24967== Releasing lock... [2024-12-31 13:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:26:25] Production.INFO: 58.25 MB #Memory Used# [2024-12-31 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:27:05 [end_date_ymd] => 2024-12-31 13:27:05 [RateCDR] => 1 ) [2024-12-31 13:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:27:05' and `end` < '2024-12-31 13:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:27:18] Production.INFO: count ==4010 [2024-12-31 13:27:20] Production.ERROR: pbx CDR StartTime 2024-12-31 10:27:05 - End Time 2024-12-31 13:27:05 [2024-12-31 13:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143845', 'tblTempUsageDetail_20' ) start [2024-12-31 13:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143845', 'tblTempUsageDetail_20' ) end [2024-12-31 13:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143845', 'tblTempVendorCDR_20' ) start [2024-12-31 13:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143845', 'tblTempVendorCDR_20' ) end [2024-12-31 13:27:20] Production.INFO: ProcessCDR(1,14143845,1,1,2) [2024-12-31 13:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143845', 'tblTempUsageDetail_20' ) start [2024-12-31 13:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143845', 'tblTempUsageDetail_20' ) end [2024-12-31 13:27:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:27:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:27:25] Production.INFO: ==25037== Releasing lock... [2024-12-31 13:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:27:25] Production.INFO: 58 MB #Memory Used# [2024-12-31 13:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:28:04 [end_date_ymd] => 2024-12-31 13:28:04 [RateCDR] => 1 ) [2024-12-31 13:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:28:04' and `end` < '2024-12-31 13:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:28:18] Production.INFO: count ==3993 [2024-12-31 13:28:19] Production.ERROR: pbx CDR StartTime 2024-12-31 10:28:04 - End Time 2024-12-31 13:28:04 [2024-12-31 13:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143850', 'tblTempUsageDetail_20' ) start [2024-12-31 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143850', 'tblTempUsageDetail_20' ) end [2024-12-31 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143850', 'tblTempVendorCDR_20' ) start [2024-12-31 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143850', 'tblTempVendorCDR_20' ) end [2024-12-31 13:28:19] Production.INFO: ProcessCDR(1,14143850,1,1,2) [2024-12-31 13:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143850', 'tblTempUsageDetail_20' ) start [2024-12-31 13:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143850', 'tblTempUsageDetail_20' ) end [2024-12-31 13:28:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:28:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:28:24] Production.INFO: ==25113== Releasing lock... [2024-12-31 13:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:28:24] Production.INFO: 57.75 MB #Memory Used# [2024-12-31 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:29:05 [end_date_ymd] => 2024-12-31 13:29:05 [RateCDR] => 1 ) [2024-12-31 13:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:29:05' and `end` < '2024-12-31 13:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:29:18] Production.INFO: count ==3977 [2024-12-31 13:29:20] Production.ERROR: pbx CDR StartTime 2024-12-31 10:29:05 - End Time 2024-12-31 13:29:05 [2024-12-31 13:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143855', 'tblTempUsageDetail_20' ) start [2024-12-31 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143855', 'tblTempUsageDetail_20' ) end [2024-12-31 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143855', 'tblTempVendorCDR_20' ) start [2024-12-31 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143855', 'tblTempVendorCDR_20' ) end [2024-12-31 13:29:20] Production.INFO: ProcessCDR(1,14143855,1,1,2) [2024-12-31 13:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143855', 'tblTempUsageDetail_20' ) start [2024-12-31 13:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143855', 'tblTempUsageDetail_20' ) end [2024-12-31 13:29:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:29:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:29:25] Production.INFO: ==25185== Releasing lock... [2024-12-31 13:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:29:25] Production.INFO: 58.5 MB #Memory Used# [2024-12-31 13:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:30:05 [end_date_ymd] => 2024-12-31 13:30:05 [RateCDR] => 1 ) [2024-12-31 13:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:30:05' and `end` < '2024-12-31 13:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:30:22] Production.INFO: count ==3972 [2024-12-31 13:30:24] Production.ERROR: pbx CDR StartTime 2024-12-31 10:30:05 - End Time 2024-12-31 13:30:05 [2024-12-31 13:30:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143861', 'tblTempUsageDetail_20' ) start [2024-12-31 13:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143861', 'tblTempUsageDetail_20' ) end [2024-12-31 13:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143861', 'tblTempVendorCDR_20' ) start [2024-12-31 13:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143861', 'tblTempVendorCDR_20' ) end [2024-12-31 13:30:24] Production.INFO: ProcessCDR(1,14143861,1,1,2) [2024-12-31 13:30:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143861', 'tblTempUsageDetail_20' ) start [2024-12-31 13:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143861', 'tblTempUsageDetail_20' ) end [2024-12-31 13:30:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:30:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:30:27] Production.INFO: ==25263== Releasing lock... [2024-12-31 13:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:30:27] Production.INFO: 57.75 MB #Memory Used# [2024-12-31 13:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:31:04 [end_date_ymd] => 2024-12-31 13:31:04 [RateCDR] => 1 ) [2024-12-31 13:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:31:04' and `end` < '2024-12-31 13:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:31:17] Production.INFO: count ==3977 [2024-12-31 13:31:19] Production.ERROR: pbx CDR StartTime 2024-12-31 10:31:04 - End Time 2024-12-31 13:31:04 [2024-12-31 13:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143866', 'tblTempUsageDetail_20' ) start [2024-12-31 13:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143866', 'tblTempUsageDetail_20' ) end [2024-12-31 13:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143866', 'tblTempVendorCDR_20' ) start [2024-12-31 13:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143866', 'tblTempVendorCDR_20' ) end [2024-12-31 13:31:19] Production.INFO: ProcessCDR(1,14143866,1,1,2) [2024-12-31 13:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143866', 'tblTempUsageDetail_20' ) start [2024-12-31 13:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143866', 'tblTempUsageDetail_20' ) end [2024-12-31 13:31:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:31:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:31:24] Production.INFO: ==25343== Releasing lock... [2024-12-31 13:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:31:24] Production.INFO: 58 MB #Memory Used# [2024-12-31 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:32:05 [end_date_ymd] => 2024-12-31 13:32:05 [RateCDR] => 1 ) [2024-12-31 13:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:32:05' and `end` < '2024-12-31 13:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:32:19] Production.INFO: count ==4000 [2024-12-31 13:32:21] Production.ERROR: pbx CDR StartTime 2024-12-31 10:32:05 - End Time 2024-12-31 13:32:05 [2024-12-31 13:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143871', 'tblTempUsageDetail_20' ) start [2024-12-31 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143871', 'tblTempUsageDetail_20' ) end [2024-12-31 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143871', 'tblTempVendorCDR_20' ) start [2024-12-31 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143871', 'tblTempVendorCDR_20' ) end [2024-12-31 13:32:21] Production.INFO: ProcessCDR(1,14143871,1,1,2) [2024-12-31 13:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143871', 'tblTempUsageDetail_20' ) start [2024-12-31 13:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143871', 'tblTempUsageDetail_20' ) end [2024-12-31 13:32:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:32:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:32:25] Production.INFO: ==25418== Releasing lock... [2024-12-31 13:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:32:25] Production.INFO: 58 MB #Memory Used# [2024-12-31 13:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:33:04 [end_date_ymd] => 2024-12-31 13:33:04 [RateCDR] => 1 ) [2024-12-31 13:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:33:04' and `end` < '2024-12-31 13:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:33:19] Production.INFO: count ==4015 [2024-12-31 13:33:20] Production.ERROR: pbx CDR StartTime 2024-12-31 10:33:04 - End Time 2024-12-31 13:33:04 [2024-12-31 13:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143876', 'tblTempUsageDetail_20' ) start [2024-12-31 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143876', 'tblTempUsageDetail_20' ) end [2024-12-31 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143876', 'tblTempVendorCDR_20' ) start [2024-12-31 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143876', 'tblTempVendorCDR_20' ) end [2024-12-31 13:33:20] Production.INFO: ProcessCDR(1,14143876,1,1,2) [2024-12-31 13:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143876', 'tblTempUsageDetail_20' ) start [2024-12-31 13:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143876', 'tblTempUsageDetail_20' ) end [2024-12-31 13:33:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:33:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:33:25] Production.INFO: ==25487== Releasing lock... [2024-12-31 13:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:33:25] Production.INFO: 58 MB #Memory Used# [2024-12-31 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:34:05 [end_date_ymd] => 2024-12-31 13:34:05 [RateCDR] => 1 ) [2024-12-31 13:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:34:05' and `end` < '2024-12-31 13:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:34:18] Production.INFO: count ==4021 [2024-12-31 13:34:20] Production.ERROR: pbx CDR StartTime 2024-12-31 10:34:05 - End Time 2024-12-31 13:34:05 [2024-12-31 13:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143881', 'tblTempUsageDetail_20' ) start [2024-12-31 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143881', 'tblTempUsageDetail_20' ) end [2024-12-31 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143881', 'tblTempVendorCDR_20' ) start [2024-12-31 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143881', 'tblTempVendorCDR_20' ) end [2024-12-31 13:34:20] Production.INFO: ProcessCDR(1,14143881,1,1,2) [2024-12-31 13:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143881', 'tblTempUsageDetail_20' ) start [2024-12-31 13:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143881', 'tblTempUsageDetail_20' ) end [2024-12-31 13:34:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:34:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:34:23] Production.INFO: ==25562== Releasing lock... [2024-12-31 13:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:34:23] Production.INFO: 58.25 MB #Memory Used# [2024-12-31 13:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:35:04 [end_date_ymd] => 2024-12-31 13:35:04 [RateCDR] => 1 ) [2024-12-31 13:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:35:04' and `end` < '2024-12-31 13:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:35:17] Production.INFO: count ==4001 [2024-12-31 13:35:19] Production.ERROR: pbx CDR StartTime 2024-12-31 10:35:04 - End Time 2024-12-31 13:35:04 [2024-12-31 13:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143886', 'tblTempUsageDetail_20' ) start [2024-12-31 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143886', 'tblTempUsageDetail_20' ) end [2024-12-31 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143886', 'tblTempVendorCDR_20' ) start [2024-12-31 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143886', 'tblTempVendorCDR_20' ) end [2024-12-31 13:35:19] Production.INFO: ProcessCDR(1,14143886,1,1,2) [2024-12-31 13:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143886', 'tblTempUsageDetail_20' ) start [2024-12-31 13:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143886', 'tblTempUsageDetail_20' ) end [2024-12-31 13:35:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:35:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:35:23] Production.INFO: ==25633== Releasing lock... [2024-12-31 13:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:35:23] Production.INFO: 58 MB #Memory Used# [2024-12-31 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:36:05 [end_date_ymd] => 2024-12-31 13:36:05 [RateCDR] => 1 ) [2024-12-31 13:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:36:05' and `end` < '2024-12-31 13:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:36:18] Production.INFO: count ==3987 [2024-12-31 13:36:20] Production.ERROR: pbx CDR StartTime 2024-12-31 10:36:05 - End Time 2024-12-31 13:36:05 [2024-12-31 13:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143891', 'tblTempUsageDetail_20' ) start [2024-12-31 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143891', 'tblTempUsageDetail_20' ) end [2024-12-31 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143891', 'tblTempVendorCDR_20' ) start [2024-12-31 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143891', 'tblTempVendorCDR_20' ) end [2024-12-31 13:36:20] Production.INFO: ProcessCDR(1,14143891,1,1,2) [2024-12-31 13:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143891', 'tblTempUsageDetail_20' ) start [2024-12-31 13:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143891', 'tblTempUsageDetail_20' ) end [2024-12-31 13:36:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:36:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:36:25] Production.INFO: ==25707== Releasing lock... [2024-12-31 13:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:36:25] Production.INFO: 57.75 MB #Memory Used# [2024-12-31 13:37:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:37:06 [end_date_ymd] => 2024-12-31 13:37:06 [RateCDR] => 1 ) [2024-12-31 13:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:37:06' and `end` < '2024-12-31 13:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:37:19] Production.INFO: count ==3984 [2024-12-31 13:37:20] Production.ERROR: pbx CDR StartTime 2024-12-31 10:37:06 - End Time 2024-12-31 13:37:06 [2024-12-31 13:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143896', 'tblTempUsageDetail_20' ) start [2024-12-31 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143896', 'tblTempUsageDetail_20' ) end [2024-12-31 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143896', 'tblTempVendorCDR_20' ) start [2024-12-31 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143896', 'tblTempVendorCDR_20' ) end [2024-12-31 13:37:21] Production.INFO: ProcessCDR(1,14143896,1,1,2) [2024-12-31 13:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143896', 'tblTempUsageDetail_20' ) start [2024-12-31 13:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143896', 'tblTempUsageDetail_20' ) end [2024-12-31 13:37:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:37:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:37:26] Production.INFO: ==25777== Releasing lock... [2024-12-31 13:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:37:26] Production.INFO: 57.75 MB #Memory Used# [2024-12-31 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:38:05 [end_date_ymd] => 2024-12-31 13:38:05 [RateCDR] => 1 ) [2024-12-31 13:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:38:05' and `end` < '2024-12-31 13:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:38:20] Production.INFO: count ==3980 [2024-12-31 13:38:22] Production.ERROR: pbx CDR StartTime 2024-12-31 10:38:05 - End Time 2024-12-31 13:38:05 [2024-12-31 13:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143901', 'tblTempUsageDetail_20' ) start [2024-12-31 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143901', 'tblTempUsageDetail_20' ) end [2024-12-31 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143901', 'tblTempVendorCDR_20' ) start [2024-12-31 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143901', 'tblTempVendorCDR_20' ) end [2024-12-31 13:38:22] Production.INFO: ProcessCDR(1,14143901,1,1,2) [2024-12-31 13:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143901', 'tblTempUsageDetail_20' ) start [2024-12-31 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143901', 'tblTempUsageDetail_20' ) end [2024-12-31 13:38:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:38:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:38:26] Production.INFO: ==25851== Releasing lock... [2024-12-31 13:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:38:26] Production.INFO: 58 MB #Memory Used# [2024-12-31 13:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:39:04 [end_date_ymd] => 2024-12-31 13:39:04 [RateCDR] => 1 ) [2024-12-31 13:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:39:04' and `end` < '2024-12-31 13:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:39:20] Production.INFO: count ==3960 [2024-12-31 13:39:21] Production.ERROR: pbx CDR StartTime 2024-12-31 10:39:04 - End Time 2024-12-31 13:39:04 [2024-12-31 13:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143906', 'tblTempUsageDetail_20' ) start [2024-12-31 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143906', 'tblTempUsageDetail_20' ) end [2024-12-31 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143906', 'tblTempVendorCDR_20' ) start [2024-12-31 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143906', 'tblTempVendorCDR_20' ) end [2024-12-31 13:39:21] Production.INFO: ProcessCDR(1,14143906,1,1,2) [2024-12-31 13:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143906', 'tblTempUsageDetail_20' ) start [2024-12-31 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143906', 'tblTempUsageDetail_20' ) end [2024-12-31 13:39:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:39:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:39:26] Production.INFO: ==25921== Releasing lock... [2024-12-31 13:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:39:26] Production.INFO: 57.5 MB #Memory Used# [2024-12-31 13:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:40:05 [end_date_ymd] => 2024-12-31 13:40:05 [RateCDR] => 1 ) [2024-12-31 13:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:40:05' and `end` < '2024-12-31 13:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:40:22] Production.INFO: count ==3946 [2024-12-31 13:40:24] Production.ERROR: pbx CDR StartTime 2024-12-31 10:40:05 - End Time 2024-12-31 13:40:05 [2024-12-31 13:40:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143912', 'tblTempUsageDetail_20' ) start [2024-12-31 13:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143912', 'tblTempUsageDetail_20' ) end [2024-12-31 13:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143912', 'tblTempVendorCDR_20' ) start [2024-12-31 13:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143912', 'tblTempVendorCDR_20' ) end [2024-12-31 13:40:24] Production.INFO: ProcessCDR(1,14143912,1,1,2) [2024-12-31 13:40:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143912', 'tblTempUsageDetail_20' ) start [2024-12-31 13:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143912', 'tblTempUsageDetail_20' ) end [2024-12-31 13:40:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:40:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:40:27] Production.INFO: ==26034== Releasing lock... [2024-12-31 13:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:40:27] Production.INFO: 57.5 MB #Memory Used# [2024-12-31 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:41:05 [end_date_ymd] => 2024-12-31 13:41:05 [RateCDR] => 1 ) [2024-12-31 13:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:41:05' and `end` < '2024-12-31 13:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:41:18] Production.INFO: count ==3916 [2024-12-31 13:41:19] Production.ERROR: pbx CDR StartTime 2024-12-31 10:41:05 - End Time 2024-12-31 13:41:05 [2024-12-31 13:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143917', 'tblTempUsageDetail_20' ) start [2024-12-31 13:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143917', 'tblTempUsageDetail_20' ) end [2024-12-31 13:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143917', 'tblTempVendorCDR_20' ) start [2024-12-31 13:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143917', 'tblTempVendorCDR_20' ) end [2024-12-31 13:41:20] Production.INFO: ProcessCDR(1,14143917,1,1,2) [2024-12-31 13:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143917', 'tblTempUsageDetail_20' ) start [2024-12-31 13:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143917', 'tblTempUsageDetail_20' ) end [2024-12-31 13:41:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:41:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:41:24] Production.INFO: ==26110== Releasing lock... [2024-12-31 13:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:41:24] Production.INFO: 57.25 MB #Memory Used# [2024-12-31 13:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:42:04 [end_date_ymd] => 2024-12-31 13:42:04 [RateCDR] => 1 ) [2024-12-31 13:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:42:04' and `end` < '2024-12-31 13:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:42:18] Production.INFO: count ==3906 [2024-12-31 13:42:19] Production.ERROR: pbx CDR StartTime 2024-12-31 10:42:04 - End Time 2024-12-31 13:42:04 [2024-12-31 13:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143922', 'tblTempUsageDetail_20' ) start [2024-12-31 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143922', 'tblTempUsageDetail_20' ) end [2024-12-31 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143922', 'tblTempVendorCDR_20' ) start [2024-12-31 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143922', 'tblTempVendorCDR_20' ) end [2024-12-31 13:42:19] Production.INFO: ProcessCDR(1,14143922,1,1,2) [2024-12-31 13:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143922', 'tblTempUsageDetail_20' ) start [2024-12-31 13:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143922', 'tblTempUsageDetail_20' ) end [2024-12-31 13:42:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:42:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:42:24] Production.INFO: ==26180== Releasing lock... [2024-12-31 13:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:42:24] Production.INFO: 57.25 MB #Memory Used# [2024-12-31 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:43:05 [end_date_ymd] => 2024-12-31 13:43:05 [RateCDR] => 1 ) [2024-12-31 13:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:43:05' and `end` < '2024-12-31 13:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:43:18] Production.INFO: count ==3883 [2024-12-31 13:43:19] Production.ERROR: pbx CDR StartTime 2024-12-31 10:43:05 - End Time 2024-12-31 13:43:05 [2024-12-31 13:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143927', 'tblTempUsageDetail_20' ) start [2024-12-31 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143927', 'tblTempUsageDetail_20' ) end [2024-12-31 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143927', 'tblTempVendorCDR_20' ) start [2024-12-31 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143927', 'tblTempVendorCDR_20' ) end [2024-12-31 13:43:19] Production.INFO: ProcessCDR(1,14143927,1,1,2) [2024-12-31 13:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143927', 'tblTempUsageDetail_20' ) start [2024-12-31 13:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143927', 'tblTempUsageDetail_20' ) end [2024-12-31 13:43:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:43:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:43:24] Production.INFO: ==26251== Releasing lock... [2024-12-31 13:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:43:24] Production.INFO: 57.5 MB #Memory Used# [2024-12-31 13:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:44:04 [end_date_ymd] => 2024-12-31 13:44:04 [RateCDR] => 1 ) [2024-12-31 13:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:44:04' and `end` < '2024-12-31 13:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:44:18] Production.INFO: count ==3880 [2024-12-31 13:44:20] Production.ERROR: pbx CDR StartTime 2024-12-31 10:44:04 - End Time 2024-12-31 13:44:04 [2024-12-31 13:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143932', 'tblTempUsageDetail_20' ) start [2024-12-31 13:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143932', 'tblTempUsageDetail_20' ) end [2024-12-31 13:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143932', 'tblTempVendorCDR_20' ) start [2024-12-31 13:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143932', 'tblTempVendorCDR_20' ) end [2024-12-31 13:44:20] Production.INFO: ProcessCDR(1,14143932,1,1,2) [2024-12-31 13:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143932', 'tblTempUsageDetail_20' ) start [2024-12-31 13:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143932', 'tblTempUsageDetail_20' ) end [2024-12-31 13:44:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:44:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:44:25] Production.INFO: ==26321== Releasing lock... [2024-12-31 13:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:44:25] Production.INFO: 57.75 MB #Memory Used# [2024-12-31 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:45:05 [end_date_ymd] => 2024-12-31 13:45:05 [RateCDR] => 1 ) [2024-12-31 13:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:45:05' and `end` < '2024-12-31 13:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:45:19] Production.INFO: count ==3869 [2024-12-31 13:45:20] Production.ERROR: pbx CDR StartTime 2024-12-31 10:45:05 - End Time 2024-12-31 13:45:05 [2024-12-31 13:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143937', 'tblTempUsageDetail_20' ) start [2024-12-31 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143937', 'tblTempUsageDetail_20' ) end [2024-12-31 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143937', 'tblTempVendorCDR_20' ) start [2024-12-31 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143937', 'tblTempVendorCDR_20' ) end [2024-12-31 13:45:20] Production.INFO: ProcessCDR(1,14143937,1,1,2) [2024-12-31 13:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143937', 'tblTempUsageDetail_20' ) start [2024-12-31 13:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143937', 'tblTempUsageDetail_20' ) end [2024-12-31 13:45:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:45:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:45:23] Production.INFO: ==26402== Releasing lock... [2024-12-31 13:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:45:23] Production.INFO: 57.5 MB #Memory Used# [2024-12-31 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:46:05 [end_date_ymd] => 2024-12-31 13:46:05 [RateCDR] => 1 ) [2024-12-31 13:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:46:05' and `end` < '2024-12-31 13:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:46:22] Production.INFO: count ==3865 [2024-12-31 13:46:23] Production.ERROR: pbx CDR StartTime 2024-12-31 10:46:05 - End Time 2024-12-31 13:46:05 [2024-12-31 13:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143942', 'tblTempUsageDetail_20' ) start [2024-12-31 13:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143942', 'tblTempUsageDetail_20' ) end [2024-12-31 13:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143942', 'tblTempVendorCDR_20' ) start [2024-12-31 13:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143942', 'tblTempVendorCDR_20' ) end [2024-12-31 13:46:23] Production.INFO: ProcessCDR(1,14143942,1,1,2) [2024-12-31 13:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143942', 'tblTempUsageDetail_20' ) start [2024-12-31 13:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143942', 'tblTempUsageDetail_20' ) end [2024-12-31 13:46:28] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:46:28] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:46:28] Production.INFO: ==26480== Releasing lock... [2024-12-31 13:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:46:28] Production.INFO: 57.25 MB #Memory Used# [2024-12-31 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:47:05 [end_date_ymd] => 2024-12-31 13:47:05 [RateCDR] => 1 ) [2024-12-31 13:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:47:05' and `end` < '2024-12-31 13:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:47:20] Production.INFO: count ==3847 [2024-12-31 13:47:21] Production.ERROR: pbx CDR StartTime 2024-12-31 10:47:05 - End Time 2024-12-31 13:47:05 [2024-12-31 13:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143947', 'tblTempUsageDetail_20' ) start [2024-12-31 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143947', 'tblTempUsageDetail_20' ) end [2024-12-31 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143947', 'tblTempVendorCDR_20' ) start [2024-12-31 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143947', 'tblTempVendorCDR_20' ) end [2024-12-31 13:47:21] Production.INFO: ProcessCDR(1,14143947,1,1,2) [2024-12-31 13:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143947', 'tblTempUsageDetail_20' ) start [2024-12-31 13:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143947', 'tblTempUsageDetail_20' ) end [2024-12-31 13:47:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:47:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:47:26] Production.INFO: ==26551== Releasing lock... [2024-12-31 13:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:47:26] Production.INFO: 56.75 MB #Memory Used# [2024-12-31 13:48:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:48:06 [end_date_ymd] => 2024-12-31 13:48:06 [RateCDR] => 1 ) [2024-12-31 13:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:48:06' and `end` < '2024-12-31 13:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:48:19] Production.INFO: count ==3829 [2024-12-31 13:48:20] Production.ERROR: pbx CDR StartTime 2024-12-31 10:48:06 - End Time 2024-12-31 13:48:06 [2024-12-31 13:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143952', 'tblTempUsageDetail_20' ) start [2024-12-31 13:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143952', 'tblTempUsageDetail_20' ) end [2024-12-31 13:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143952', 'tblTempVendorCDR_20' ) start [2024-12-31 13:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143952', 'tblTempVendorCDR_20' ) end [2024-12-31 13:48:20] Production.INFO: ProcessCDR(1,14143952,1,1,2) [2024-12-31 13:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143952', 'tblTempUsageDetail_20' ) start [2024-12-31 13:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143952', 'tblTempUsageDetail_20' ) end [2024-12-31 13:48:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:48:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:48:25] Production.INFO: ==26622== Releasing lock... [2024-12-31 13:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:48:25] Production.INFO: 57 MB #Memory Used# [2024-12-31 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:49:05 [end_date_ymd] => 2024-12-31 13:49:05 [RateCDR] => 1 ) [2024-12-31 13:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:49:05' and `end` < '2024-12-31 13:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:49:19] Production.INFO: count ==3803 [2024-12-31 13:49:20] Production.ERROR: pbx CDR StartTime 2024-12-31 10:49:05 - End Time 2024-12-31 13:49:05 [2024-12-31 13:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143957', 'tblTempUsageDetail_20' ) start [2024-12-31 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143957', 'tblTempUsageDetail_20' ) end [2024-12-31 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143957', 'tblTempVendorCDR_20' ) start [2024-12-31 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143957', 'tblTempVendorCDR_20' ) end [2024-12-31 13:49:20] Production.INFO: ProcessCDR(1,14143957,1,1,2) [2024-12-31 13:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143957', 'tblTempUsageDetail_20' ) start [2024-12-31 13:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143957', 'tblTempUsageDetail_20' ) end [2024-12-31 13:49:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:49:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:49:25] Production.INFO: ==26692== Releasing lock... [2024-12-31 13:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:49:25] Production.INFO: 56.5 MB #Memory Used# [2024-12-31 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:50:06 [end_date_ymd] => 2024-12-31 13:50:06 [RateCDR] => 1 ) [2024-12-31 13:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:50:06' and `end` < '2024-12-31 13:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:50:20] Production.INFO: count ==3806 [2024-12-31 13:50:21] Production.ERROR: pbx CDR StartTime 2024-12-31 10:50:06 - End Time 2024-12-31 13:50:06 [2024-12-31 13:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143963', 'tblTempUsageDetail_20' ) start [2024-12-31 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143963', 'tblTempUsageDetail_20' ) end [2024-12-31 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143963', 'tblTempVendorCDR_20' ) start [2024-12-31 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143963', 'tblTempVendorCDR_20' ) end [2024-12-31 13:50:21] Production.INFO: ProcessCDR(1,14143963,1,1,2) [2024-12-31 13:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143963', 'tblTempUsageDetail_20' ) start [2024-12-31 13:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143963', 'tblTempUsageDetail_20' ) end [2024-12-31 13:50:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:50:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:50:26] Production.INFO: ==26778== Releasing lock... [2024-12-31 13:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:50:26] Production.INFO: 56.5 MB #Memory Used# [2024-12-31 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:51:05 [end_date_ymd] => 2024-12-31 13:51:05 [RateCDR] => 1 ) [2024-12-31 13:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:51:05' and `end` < '2024-12-31 13:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:51:18] Production.INFO: count ==3754 [2024-12-31 13:51:19] Production.ERROR: pbx CDR StartTime 2024-12-31 10:51:05 - End Time 2024-12-31 13:51:05 [2024-12-31 13:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143968', 'tblTempUsageDetail_20' ) start [2024-12-31 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143968', 'tblTempUsageDetail_20' ) end [2024-12-31 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143968', 'tblTempVendorCDR_20' ) start [2024-12-31 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143968', 'tblTempVendorCDR_20' ) end [2024-12-31 13:51:20] Production.INFO: ProcessCDR(1,14143968,1,1,2) [2024-12-31 13:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143968', 'tblTempUsageDetail_20' ) start [2024-12-31 13:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143968', 'tblTempUsageDetail_20' ) end [2024-12-31 13:51:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:51:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:51:24] Production.INFO: ==26849== Releasing lock... [2024-12-31 13:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:51:24] Production.INFO: 56 MB #Memory Used# [2024-12-31 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:52:05 [end_date_ymd] => 2024-12-31 13:52:05 [RateCDR] => 1 ) [2024-12-31 13:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:52:05' and `end` < '2024-12-31 13:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:52:19] Production.INFO: count ==3749 [2024-12-31 13:52:21] Production.ERROR: pbx CDR StartTime 2024-12-31 10:52:05 - End Time 2024-12-31 13:52:05 [2024-12-31 13:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143973', 'tblTempUsageDetail_20' ) start [2024-12-31 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143973', 'tblTempUsageDetail_20' ) end [2024-12-31 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143973', 'tblTempVendorCDR_20' ) start [2024-12-31 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143973', 'tblTempVendorCDR_20' ) end [2024-12-31 13:52:21] Production.INFO: ProcessCDR(1,14143973,1,1,2) [2024-12-31 13:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143973', 'tblTempUsageDetail_20' ) start [2024-12-31 13:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143973', 'tblTempUsageDetail_20' ) end [2024-12-31 13:52:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:52:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:52:25] Production.INFO: ==26933== Releasing lock... [2024-12-31 13:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:52:25] Production.INFO: 56.5 MB #Memory Used# [2024-12-31 13:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:53:04 [end_date_ymd] => 2024-12-31 13:53:04 [RateCDR] => 1 ) [2024-12-31 13:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:53:04' and `end` < '2024-12-31 13:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:53:17] Production.INFO: count ==3755 [2024-12-31 13:53:19] Production.ERROR: pbx CDR StartTime 2024-12-31 10:53:04 - End Time 2024-12-31 13:53:04 [2024-12-31 13:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143978', 'tblTempUsageDetail_20' ) start [2024-12-31 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143978', 'tblTempUsageDetail_20' ) end [2024-12-31 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143978', 'tblTempVendorCDR_20' ) start [2024-12-31 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143978', 'tblTempVendorCDR_20' ) end [2024-12-31 13:53:19] Production.INFO: ProcessCDR(1,14143978,1,1,2) [2024-12-31 13:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143978', 'tblTempUsageDetail_20' ) start [2024-12-31 13:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143978', 'tblTempUsageDetail_20' ) end [2024-12-31 13:53:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:53:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:53:24] Production.INFO: ==27021== Releasing lock... [2024-12-31 13:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:53:24] Production.INFO: 56.5 MB #Memory Used# [2024-12-31 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:54:05 [end_date_ymd] => 2024-12-31 13:54:05 [RateCDR] => 1 ) [2024-12-31 13:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:54:05' and `end` < '2024-12-31 13:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:54:20] Production.INFO: count ==3737 [2024-12-31 13:54:21] Production.ERROR: pbx CDR StartTime 2024-12-31 10:54:05 - End Time 2024-12-31 13:54:05 [2024-12-31 13:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143983', 'tblTempUsageDetail_20' ) start [2024-12-31 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143983', 'tblTempUsageDetail_20' ) end [2024-12-31 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143983', 'tblTempVendorCDR_20' ) start [2024-12-31 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143983', 'tblTempVendorCDR_20' ) end [2024-12-31 13:54:21] Production.INFO: ProcessCDR(1,14143983,1,1,2) [2024-12-31 13:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143983', 'tblTempUsageDetail_20' ) start [2024-12-31 13:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143983', 'tblTempUsageDetail_20' ) end [2024-12-31 13:54:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:54:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:54:25] Production.INFO: ==27117== Releasing lock... [2024-12-31 13:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:54:25] Production.INFO: 56 MB #Memory Used# [2024-12-31 13:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:55:04 [end_date_ymd] => 2024-12-31 13:55:04 [RateCDR] => 1 ) [2024-12-31 13:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:55:04' and `end` < '2024-12-31 13:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:55:18] Production.INFO: count ==3735 [2024-12-31 13:55:19] Production.ERROR: pbx CDR StartTime 2024-12-31 10:55:04 - End Time 2024-12-31 13:55:04 [2024-12-31 13:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143988', 'tblTempUsageDetail_20' ) start [2024-12-31 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143988', 'tblTempUsageDetail_20' ) end [2024-12-31 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143988', 'tblTempVendorCDR_20' ) start [2024-12-31 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143988', 'tblTempVendorCDR_20' ) end [2024-12-31 13:55:19] Production.INFO: ProcessCDR(1,14143988,1,1,2) [2024-12-31 13:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143988', 'tblTempUsageDetail_20' ) start [2024-12-31 13:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143988', 'tblTempUsageDetail_20' ) end [2024-12-31 13:55:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:55:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:55:24] Production.INFO: ==27210== Releasing lock... [2024-12-31 13:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:55:24] Production.INFO: 57 MB #Memory Used# [2024-12-31 13:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:56:04 [end_date_ymd] => 2024-12-31 13:56:04 [RateCDR] => 1 ) [2024-12-31 13:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:56:04' and `end` < '2024-12-31 13:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:56:18] Production.INFO: count ==3729 [2024-12-31 13:56:19] Production.ERROR: pbx CDR StartTime 2024-12-31 10:56:04 - End Time 2024-12-31 13:56:04 [2024-12-31 13:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143993', 'tblTempUsageDetail_20' ) start [2024-12-31 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143993', 'tblTempUsageDetail_20' ) end [2024-12-31 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143993', 'tblTempVendorCDR_20' ) start [2024-12-31 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143993', 'tblTempVendorCDR_20' ) end [2024-12-31 13:56:19] Production.INFO: ProcessCDR(1,14143993,1,1,2) [2024-12-31 13:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143993', 'tblTempUsageDetail_20' ) start [2024-12-31 13:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143993', 'tblTempUsageDetail_20' ) end [2024-12-31 13:56:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:56:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:56:23] Production.INFO: ==27340== Releasing lock... [2024-12-31 13:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:56:23] Production.INFO: 56.25 MB #Memory Used# [2024-12-31 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:57:05 [end_date_ymd] => 2024-12-31 13:57:05 [RateCDR] => 1 ) [2024-12-31 13:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:57:05' and `end` < '2024-12-31 13:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:57:19] Production.INFO: count ==3731 [2024-12-31 13:57:20] Production.ERROR: pbx CDR StartTime 2024-12-31 10:57:05 - End Time 2024-12-31 13:57:05 [2024-12-31 13:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143998', 'tblTempUsageDetail_20' ) start [2024-12-31 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14143998', 'tblTempUsageDetail_20' ) end [2024-12-31 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143998', 'tblTempVendorCDR_20' ) start [2024-12-31 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14143998', 'tblTempVendorCDR_20' ) end [2024-12-31 13:57:20] Production.INFO: ProcessCDR(1,14143998,1,1,2) [2024-12-31 13:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14143998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14143998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14143998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14143998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143998', 'tblTempUsageDetail_20' ) start [2024-12-31 13:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14143998', 'tblTempUsageDetail_20' ) end [2024-12-31 13:57:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:57:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:57:25] Production.INFO: ==27430== Releasing lock... [2024-12-31 13:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:57:25] Production.INFO: 56.25 MB #Memory Used# [2024-12-31 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:58:05 [end_date_ymd] => 2024-12-31 13:58:05 [RateCDR] => 1 ) [2024-12-31 13:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:58:05' and `end` < '2024-12-31 13:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:58:18] Production.INFO: count ==3724 [2024-12-31 13:58:20] Production.ERROR: pbx CDR StartTime 2024-12-31 10:58:05 - End Time 2024-12-31 13:58:05 [2024-12-31 13:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144003', 'tblTempUsageDetail_20' ) start [2024-12-31 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144003', 'tblTempUsageDetail_20' ) end [2024-12-31 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144003', 'tblTempVendorCDR_20' ) start [2024-12-31 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144003', 'tblTempVendorCDR_20' ) end [2024-12-31 13:58:20] Production.INFO: ProcessCDR(1,14144003,1,1,2) [2024-12-31 13:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144003', 'tblTempUsageDetail_20' ) start [2024-12-31 13:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144003', 'tblTempUsageDetail_20' ) end [2024-12-31 13:58:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:58:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:58:23] Production.INFO: ==27524== Releasing lock... [2024-12-31 13:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:58:23] Production.INFO: 56.5 MB #Memory Used# [2024-12-31 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 10:59:05 [end_date_ymd] => 2024-12-31 13:59:05 [RateCDR] => 1 ) [2024-12-31 13:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 10:59:05' and `end` < '2024-12-31 13:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 13:59:19] Production.INFO: count ==3718 [2024-12-31 13:59:20] Production.ERROR: pbx CDR StartTime 2024-12-31 10:59:05 - End Time 2024-12-31 13:59:05 [2024-12-31 13:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144008', 'tblTempUsageDetail_20' ) start [2024-12-31 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144008', 'tblTempUsageDetail_20' ) end [2024-12-31 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144008', 'tblTempVendorCDR_20' ) start [2024-12-31 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144008', 'tblTempVendorCDR_20' ) end [2024-12-31 13:59:20] Production.INFO: ProcessCDR(1,14144008,1,1,2) [2024-12-31 13:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 13:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 13:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144008', 'tblTempUsageDetail_20' ) start [2024-12-31 13:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144008', 'tblTempUsageDetail_20' ) end [2024-12-31 13:59:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 13:59:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 13:59:25] Production.INFO: ==27616== Releasing lock... [2024-12-31 13:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 13:59:25] Production.INFO: 56.75 MB #Memory Used# [2024-12-31 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:00:06 [end_date_ymd] => 2024-12-31 14:00:06 [RateCDR] => 1 ) [2024-12-31 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:00:06' and `end` < '2024-12-31 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:00:19] Production.INFO: count ==3733 [2024-12-31 14:00:20] Production.ERROR: pbx CDR StartTime 2024-12-31 11:00:06 - End Time 2024-12-31 14:00:06 [2024-12-31 14:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144013', 'tblTempUsageDetail_20' ) start [2024-12-31 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144013', 'tblTempUsageDetail_20' ) end [2024-12-31 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144013', 'tblTempVendorCDR_20' ) start [2024-12-31 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144013', 'tblTempVendorCDR_20' ) end [2024-12-31 14:00:20] Production.INFO: ProcessCDR(1,14144013,1,1,2) [2024-12-31 14:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144013', 'tblTempUsageDetail_20' ) start [2024-12-31 14:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144013', 'tblTempUsageDetail_20' ) end [2024-12-31 14:00:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:00:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:00:25] Production.INFO: ==27713== Releasing lock... [2024-12-31 14:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:00:25] Production.INFO: 56.25 MB #Memory Used# [2024-12-31 14:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:01:04 [end_date_ymd] => 2024-12-31 14:01:04 [RateCDR] => 1 ) [2024-12-31 14:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:01:04' and `end` < '2024-12-31 14:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:01:20] Production.INFO: count ==3711 [2024-12-31 14:01:21] Production.ERROR: pbx CDR StartTime 2024-12-31 11:01:04 - End Time 2024-12-31 14:01:04 [2024-12-31 14:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144019', 'tblTempUsageDetail_20' ) start [2024-12-31 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144019', 'tblTempUsageDetail_20' ) end [2024-12-31 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144019', 'tblTempVendorCDR_20' ) start [2024-12-31 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144019', 'tblTempVendorCDR_20' ) end [2024-12-31 14:01:21] Production.INFO: ProcessCDR(1,14144019,1,1,2) [2024-12-31 14:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144019', 'tblTempUsageDetail_20' ) start [2024-12-31 14:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144019', 'tblTempUsageDetail_20' ) end [2024-12-31 14:01:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:01:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:01:24] Production.INFO: ==27820== Releasing lock... [2024-12-31 14:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:01:24] Production.INFO: 55.75 MB #Memory Used# [2024-12-31 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:02:05 [end_date_ymd] => 2024-12-31 14:02:05 [RateCDR] => 1 ) [2024-12-31 14:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:02:05' and `end` < '2024-12-31 14:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:02:18] Production.INFO: count ==3709 [2024-12-31 14:02:20] Production.ERROR: pbx CDR StartTime 2024-12-31 11:02:05 - End Time 2024-12-31 14:02:05 [2024-12-31 14:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144024', 'tblTempUsageDetail_20' ) start [2024-12-31 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144024', 'tblTempUsageDetail_20' ) end [2024-12-31 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144024', 'tblTempVendorCDR_20' ) start [2024-12-31 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144024', 'tblTempVendorCDR_20' ) end [2024-12-31 14:02:20] Production.INFO: ProcessCDR(1,14144024,1,1,2) [2024-12-31 14:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144024', 'tblTempUsageDetail_20' ) start [2024-12-31 14:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144024', 'tblTempUsageDetail_20' ) end [2024-12-31 14:02:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:02:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:02:24] Production.INFO: ==27910== Releasing lock... [2024-12-31 14:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:02:24] Production.INFO: 55.75 MB #Memory Used# [2024-12-31 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:03:05 [end_date_ymd] => 2024-12-31 14:03:05 [RateCDR] => 1 ) [2024-12-31 14:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:03:05' and `end` < '2024-12-31 14:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:03:20] Production.INFO: count ==3707 [2024-12-31 14:03:22] Production.ERROR: pbx CDR StartTime 2024-12-31 11:03:05 - End Time 2024-12-31 14:03:05 [2024-12-31 14:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144029', 'tblTempUsageDetail_20' ) start [2024-12-31 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144029', 'tblTempUsageDetail_20' ) end [2024-12-31 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144029', 'tblTempVendorCDR_20' ) start [2024-12-31 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144029', 'tblTempVendorCDR_20' ) end [2024-12-31 14:03:22] Production.INFO: ProcessCDR(1,14144029,1,1,2) [2024-12-31 14:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144029', 'tblTempUsageDetail_20' ) start [2024-12-31 14:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144029', 'tblTempUsageDetail_20' ) end [2024-12-31 14:03:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:03:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:03:26] Production.INFO: ==28002== Releasing lock... [2024-12-31 14:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:03:26] Production.INFO: 55.75 MB #Memory Used# [2024-12-31 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:04:05 [end_date_ymd] => 2024-12-31 14:04:05 [RateCDR] => 1 ) [2024-12-31 14:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:04:05' and `end` < '2024-12-31 14:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:04:21] Production.INFO: count ==3710 [2024-12-31 14:04:23] Production.ERROR: pbx CDR StartTime 2024-12-31 11:04:05 - End Time 2024-12-31 14:04:05 [2024-12-31 14:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144034', 'tblTempUsageDetail_20' ) start [2024-12-31 14:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144034', 'tblTempUsageDetail_20' ) end [2024-12-31 14:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144034', 'tblTempVendorCDR_20' ) start [2024-12-31 14:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144034', 'tblTempVendorCDR_20' ) end [2024-12-31 14:04:23] Production.INFO: ProcessCDR(1,14144034,1,1,2) [2024-12-31 14:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144034', 'tblTempUsageDetail_20' ) start [2024-12-31 14:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144034', 'tblTempUsageDetail_20' ) end [2024-12-31 14:04:28] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:04:28] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:04:28] Production.INFO: ==28094== Releasing lock... [2024-12-31 14:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:04:28] Production.INFO: 56.75 MB #Memory Used# [2024-12-31 14:05:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:05:06 [end_date_ymd] => 2024-12-31 14:05:06 [RateCDR] => 1 ) [2024-12-31 14:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:05:06' and `end` < '2024-12-31 14:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:05:22] Production.INFO: count ==3697 [2024-12-31 14:05:24] Production.ERROR: pbx CDR StartTime 2024-12-31 11:05:06 - End Time 2024-12-31 14:05:06 [2024-12-31 14:05:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144039', 'tblTempUsageDetail_20' ) start [2024-12-31 14:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144039', 'tblTempUsageDetail_20' ) end [2024-12-31 14:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144039', 'tblTempVendorCDR_20' ) start [2024-12-31 14:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144039', 'tblTempVendorCDR_20' ) end [2024-12-31 14:05:24] Production.INFO: ProcessCDR(1,14144039,1,1,2) [2024-12-31 14:05:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144039', 'tblTempUsageDetail_20' ) start [2024-12-31 14:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144039', 'tblTempUsageDetail_20' ) end [2024-12-31 14:05:28] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:05:28] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:05:28] Production.INFO: ==28185== Releasing lock... [2024-12-31 14:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:05:28] Production.INFO: 55.5 MB #Memory Used# [2024-12-31 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:06:05 [end_date_ymd] => 2024-12-31 14:06:05 [RateCDR] => 1 ) [2024-12-31 14:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:06:05' and `end` < '2024-12-31 14:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:06:18] Production.INFO: count ==3683 [2024-12-31 14:06:19] Production.ERROR: pbx CDR StartTime 2024-12-31 11:06:05 - End Time 2024-12-31 14:06:05 [2024-12-31 14:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144044', 'tblTempUsageDetail_20' ) start [2024-12-31 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144044', 'tblTempUsageDetail_20' ) end [2024-12-31 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144044', 'tblTempVendorCDR_20' ) start [2024-12-31 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144044', 'tblTempVendorCDR_20' ) end [2024-12-31 14:06:20] Production.INFO: ProcessCDR(1,14144044,1,1,2) [2024-12-31 14:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144044', 'tblTempUsageDetail_20' ) start [2024-12-31 14:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144044', 'tblTempUsageDetail_20' ) end [2024-12-31 14:06:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:06:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:06:24] Production.INFO: ==28276== Releasing lock... [2024-12-31 14:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:06:24] Production.INFO: 56 MB #Memory Used# [2024-12-31 14:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:07:04 [end_date_ymd] => 2024-12-31 14:07:04 [RateCDR] => 1 ) [2024-12-31 14:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:07:04' and `end` < '2024-12-31 14:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:07:17] Production.INFO: count ==3682 [2024-12-31 14:07:19] Production.ERROR: pbx CDR StartTime 2024-12-31 11:07:04 - End Time 2024-12-31 14:07:04 [2024-12-31 14:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144049', 'tblTempUsageDetail_20' ) start [2024-12-31 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144049', 'tblTempUsageDetail_20' ) end [2024-12-31 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144049', 'tblTempVendorCDR_20' ) start [2024-12-31 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144049', 'tblTempVendorCDR_20' ) end [2024-12-31 14:07:19] Production.INFO: ProcessCDR(1,14144049,1,1,2) [2024-12-31 14:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144049', 'tblTempUsageDetail_20' ) start [2024-12-31 14:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144049', 'tblTempUsageDetail_20' ) end [2024-12-31 14:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:07:22] Production.INFO: ==28364== Releasing lock... [2024-12-31 14:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:07:22] Production.INFO: 55.75 MB #Memory Used# [2024-12-31 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:08:05 [end_date_ymd] => 2024-12-31 14:08:05 [RateCDR] => 1 ) [2024-12-31 14:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:08:05' and `end` < '2024-12-31 14:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:08:18] Production.INFO: count ==3664 [2024-12-31 14:08:19] Production.ERROR: pbx CDR StartTime 2024-12-31 11:08:05 - End Time 2024-12-31 14:08:05 [2024-12-31 14:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144054', 'tblTempUsageDetail_20' ) start [2024-12-31 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144054', 'tblTempUsageDetail_20' ) end [2024-12-31 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144054', 'tblTempVendorCDR_20' ) start [2024-12-31 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144054', 'tblTempVendorCDR_20' ) end [2024-12-31 14:08:20] Production.INFO: ProcessCDR(1,14144054,1,1,2) [2024-12-31 14:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144054', 'tblTempUsageDetail_20' ) start [2024-12-31 14:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144054', 'tblTempUsageDetail_20' ) end [2024-12-31 14:08:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:08:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:08:23] Production.INFO: ==28452== Releasing lock... [2024-12-31 14:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:08:23] Production.INFO: 55.75 MB #Memory Used# [2024-12-31 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:09:05 [end_date_ymd] => 2024-12-31 14:09:05 [RateCDR] => 1 ) [2024-12-31 14:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:09:05' and `end` < '2024-12-31 14:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:09:18] Production.INFO: count ==3652 [2024-12-31 14:09:19] Production.ERROR: pbx CDR StartTime 2024-12-31 11:09:05 - End Time 2024-12-31 14:09:05 [2024-12-31 14:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144059', 'tblTempUsageDetail_20' ) start [2024-12-31 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144059', 'tblTempUsageDetail_20' ) end [2024-12-31 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144059', 'tblTempVendorCDR_20' ) start [2024-12-31 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144059', 'tblTempVendorCDR_20' ) end [2024-12-31 14:09:19] Production.INFO: ProcessCDR(1,14144059,1,1,2) [2024-12-31 14:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144059', 'tblTempUsageDetail_20' ) start [2024-12-31 14:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144059', 'tblTempUsageDetail_20' ) end [2024-12-31 14:09:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:09:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:09:24] Production.INFO: ==28541== Releasing lock... [2024-12-31 14:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:09:24] Production.INFO: 56.25 MB #Memory Used# [2024-12-31 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:10:06 [end_date_ymd] => 2024-12-31 14:10:06 [RateCDR] => 1 ) [2024-12-31 14:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:10:06' and `end` < '2024-12-31 14:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:10:19] Production.INFO: count ==3664 [2024-12-31 14:10:20] Production.ERROR: pbx CDR StartTime 2024-12-31 11:10:06 - End Time 2024-12-31 14:10:06 [2024-12-31 14:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144065', 'tblTempUsageDetail_20' ) start [2024-12-31 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144065', 'tblTempUsageDetail_20' ) end [2024-12-31 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144065', 'tblTempVendorCDR_20' ) start [2024-12-31 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144065', 'tblTempVendorCDR_20' ) end [2024-12-31 14:10:20] Production.INFO: ProcessCDR(1,14144065,1,1,2) [2024-12-31 14:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144065', 'tblTempUsageDetail_20' ) start [2024-12-31 14:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144065', 'tblTempUsageDetail_20' ) end [2024-12-31 14:10:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:10:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:10:25] Production.INFO: ==28632== Releasing lock... [2024-12-31 14:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:10:25] Production.INFO: 55.5 MB #Memory Used# [2024-12-31 14:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:11:04 [end_date_ymd] => 2024-12-31 14:11:04 [RateCDR] => 1 ) [2024-12-31 14:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:11:04' and `end` < '2024-12-31 14:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:11:18] Production.INFO: count ==3662 [2024-12-31 14:11:19] Production.ERROR: pbx CDR StartTime 2024-12-31 11:11:04 - End Time 2024-12-31 14:11:04 [2024-12-31 14:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144070', 'tblTempUsageDetail_20' ) start [2024-12-31 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144070', 'tblTempUsageDetail_20' ) end [2024-12-31 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144070', 'tblTempVendorCDR_20' ) start [2024-12-31 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144070', 'tblTempVendorCDR_20' ) end [2024-12-31 14:11:19] Production.INFO: ProcessCDR(1,14144070,1,1,2) [2024-12-31 14:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144070', 'tblTempUsageDetail_20' ) start [2024-12-31 14:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144070', 'tblTempUsageDetail_20' ) end [2024-12-31 14:11:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:11:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:11:24] Production.INFO: ==28762== Releasing lock... [2024-12-31 14:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:11:24] Production.INFO: 55.75 MB #Memory Used# [2024-12-31 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:12:05 [end_date_ymd] => 2024-12-31 14:12:05 [RateCDR] => 1 ) [2024-12-31 14:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:12:05' and `end` < '2024-12-31 14:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:12:19] Production.INFO: count ==3663 [2024-12-31 14:12:21] Production.ERROR: pbx CDR StartTime 2024-12-31 11:12:05 - End Time 2024-12-31 14:12:05 [2024-12-31 14:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144074', 'tblTempUsageDetail_20' ) start [2024-12-31 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144074', 'tblTempUsageDetail_20' ) end [2024-12-31 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144074', 'tblTempVendorCDR_20' ) start [2024-12-31 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144074', 'tblTempVendorCDR_20' ) end [2024-12-31 14:12:21] Production.INFO: ProcessCDR(1,14144074,1,1,2) [2024-12-31 14:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144074', 'tblTempUsageDetail_20' ) start [2024-12-31 14:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144074', 'tblTempUsageDetail_20' ) end [2024-12-31 14:12:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:12:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:12:25] Production.INFO: ==28846== Releasing lock... [2024-12-31 14:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:12:25] Production.INFO: 55.5 MB #Memory Used# [2024-12-31 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:13:05 [end_date_ymd] => 2024-12-31 14:13:05 [RateCDR] => 1 ) [2024-12-31 14:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:13:05' and `end` < '2024-12-31 14:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:13:20] Production.INFO: count ==3661 [2024-12-31 14:13:21] Production.ERROR: pbx CDR StartTime 2024-12-31 11:13:05 - End Time 2024-12-31 14:13:05 [2024-12-31 14:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144080', 'tblTempUsageDetail_20' ) start [2024-12-31 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144080', 'tblTempUsageDetail_20' ) end [2024-12-31 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144080', 'tblTempVendorCDR_20' ) start [2024-12-31 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144080', 'tblTempVendorCDR_20' ) end [2024-12-31 14:13:21] Production.INFO: ProcessCDR(1,14144080,1,1,2) [2024-12-31 14:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144080', 'tblTempUsageDetail_20' ) start [2024-12-31 14:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144080', 'tblTempUsageDetail_20' ) end [2024-12-31 14:13:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:13:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:13:25] Production.INFO: ==28928== Releasing lock... [2024-12-31 14:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:13:25] Production.INFO: 55.5 MB #Memory Used# [2024-12-31 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:14:05 [end_date_ymd] => 2024-12-31 14:14:05 [RateCDR] => 1 ) [2024-12-31 14:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:14:05' and `end` < '2024-12-31 14:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:14:20] Production.INFO: count ==3669 [2024-12-31 14:14:22] Production.ERROR: pbx CDR StartTime 2024-12-31 11:14:05 - End Time 2024-12-31 14:14:05 [2024-12-31 14:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144085', 'tblTempUsageDetail_20' ) start [2024-12-31 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144085', 'tblTempUsageDetail_20' ) end [2024-12-31 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144085', 'tblTempVendorCDR_20' ) start [2024-12-31 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144085', 'tblTempVendorCDR_20' ) end [2024-12-31 14:14:22] Production.INFO: ProcessCDR(1,14144085,1,1,2) [2024-12-31 14:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144085', 'tblTempUsageDetail_20' ) start [2024-12-31 14:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144085', 'tblTempUsageDetail_20' ) end [2024-12-31 14:14:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:14:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:14:25] Production.INFO: ==29005== Releasing lock... [2024-12-31 14:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:14:25] Production.INFO: 56.5 MB #Memory Used# [2024-12-31 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:15:05 [end_date_ymd] => 2024-12-31 14:15:05 [RateCDR] => 1 ) [2024-12-31 14:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:15:05' and `end` < '2024-12-31 14:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:15:20] Production.INFO: count ==3667 [2024-12-31 14:15:21] Production.ERROR: pbx CDR StartTime 2024-12-31 11:15:05 - End Time 2024-12-31 14:15:05 [2024-12-31 14:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144090', 'tblTempUsageDetail_20' ) start [2024-12-31 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144090', 'tblTempUsageDetail_20' ) end [2024-12-31 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144090', 'tblTempVendorCDR_20' ) start [2024-12-31 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144090', 'tblTempVendorCDR_20' ) end [2024-12-31 14:15:21] Production.INFO: ProcessCDR(1,14144090,1,1,2) [2024-12-31 14:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144090', 'tblTempUsageDetail_20' ) start [2024-12-31 14:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144090', 'tblTempUsageDetail_20' ) end [2024-12-31 14:15:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:15:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:15:25] Production.INFO: ==29085== Releasing lock... [2024-12-31 14:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:15:25] Production.INFO: 56.5 MB #Memory Used# [2024-12-31 14:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:16:04 [end_date_ymd] => 2024-12-31 14:16:04 [RateCDR] => 1 ) [2024-12-31 14:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:16:04' and `end` < '2024-12-31 14:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:16:18] Production.INFO: count ==3654 [2024-12-31 14:16:20] Production.ERROR: pbx CDR StartTime 2024-12-31 11:16:04 - End Time 2024-12-31 14:16:04 [2024-12-31 14:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144095', 'tblTempUsageDetail_20' ) start [2024-12-31 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144095', 'tblTempUsageDetail_20' ) end [2024-12-31 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144095', 'tblTempVendorCDR_20' ) start [2024-12-31 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144095', 'tblTempVendorCDR_20' ) end [2024-12-31 14:16:20] Production.INFO: ProcessCDR(1,14144095,1,1,2) [2024-12-31 14:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144095', 'tblTempUsageDetail_20' ) start [2024-12-31 14:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144095', 'tblTempUsageDetail_20' ) end [2024-12-31 14:16:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:16:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:16:23] Production.INFO: ==29155== Releasing lock... [2024-12-31 14:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:16:23] Production.INFO: 56 MB #Memory Used# [2024-12-31 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:17:05 [end_date_ymd] => 2024-12-31 14:17:05 [RateCDR] => 1 ) [2024-12-31 14:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:17:05' and `end` < '2024-12-31 14:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:17:19] Production.INFO: count ==3646 [2024-12-31 14:17:20] Production.ERROR: pbx CDR StartTime 2024-12-31 11:17:05 - End Time 2024-12-31 14:17:05 [2024-12-31 14:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144100', 'tblTempUsageDetail_20' ) start [2024-12-31 14:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144100', 'tblTempUsageDetail_20' ) end [2024-12-31 14:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144100', 'tblTempVendorCDR_20' ) start [2024-12-31 14:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144100', 'tblTempVendorCDR_20' ) end [2024-12-31 14:17:20] Production.INFO: ProcessCDR(1,14144100,1,1,2) [2024-12-31 14:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144100', 'tblTempUsageDetail_20' ) start [2024-12-31 14:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144100', 'tblTempUsageDetail_20' ) end [2024-12-31 14:17:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:17:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:17:24] Production.INFO: ==29234== Releasing lock... [2024-12-31 14:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:17:24] Production.INFO: 55.5 MB #Memory Used# [2024-12-31 14:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:18:04 [end_date_ymd] => 2024-12-31 14:18:04 [RateCDR] => 1 ) [2024-12-31 14:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:18:04' and `end` < '2024-12-31 14:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:18:17] Production.INFO: count ==3627 [2024-12-31 14:18:19] Production.ERROR: pbx CDR StartTime 2024-12-31 11:18:04 - End Time 2024-12-31 14:18:04 [2024-12-31 14:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144105', 'tblTempUsageDetail_20' ) start [2024-12-31 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144105', 'tblTempUsageDetail_20' ) end [2024-12-31 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144105', 'tblTempVendorCDR_20' ) start [2024-12-31 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144105', 'tblTempVendorCDR_20' ) end [2024-12-31 14:18:19] Production.INFO: ProcessCDR(1,14144105,1,1,2) [2024-12-31 14:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144105', 'tblTempUsageDetail_20' ) start [2024-12-31 14:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144105', 'tblTempUsageDetail_20' ) end [2024-12-31 14:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:18:22] Production.INFO: ==29307== Releasing lock... [2024-12-31 14:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:18:22] Production.INFO: 55 MB #Memory Used# [2024-12-31 14:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:19:04 [end_date_ymd] => 2024-12-31 14:19:04 [RateCDR] => 1 ) [2024-12-31 14:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:19:04' and `end` < '2024-12-31 14:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:19:18] Production.INFO: count ==3611 [2024-12-31 14:19:19] Production.ERROR: pbx CDR StartTime 2024-12-31 11:19:04 - End Time 2024-12-31 14:19:04 [2024-12-31 14:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144110', 'tblTempUsageDetail_20' ) start [2024-12-31 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144110', 'tblTempUsageDetail_20' ) end [2024-12-31 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144110', 'tblTempVendorCDR_20' ) start [2024-12-31 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144110', 'tblTempVendorCDR_20' ) end [2024-12-31 14:19:19] Production.INFO: ProcessCDR(1,14144110,1,1,2) [2024-12-31 14:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144110', 'tblTempUsageDetail_20' ) start [2024-12-31 14:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144110', 'tblTempUsageDetail_20' ) end [2024-12-31 14:19:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:19:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:19:24] Production.INFO: ==29384== Releasing lock... [2024-12-31 14:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:19:24] Production.INFO: 55.25 MB #Memory Used# [2024-12-31 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:20:06 [end_date_ymd] => 2024-12-31 14:20:06 [RateCDR] => 1 ) [2024-12-31 14:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:20:06' and `end` < '2024-12-31 14:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:20:19] Production.INFO: count ==3602 [2024-12-31 14:20:20] Production.ERROR: pbx CDR StartTime 2024-12-31 11:20:06 - End Time 2024-12-31 14:20:06 [2024-12-31 14:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144116', 'tblTempUsageDetail_20' ) start [2024-12-31 14:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144116', 'tblTempUsageDetail_20' ) end [2024-12-31 14:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144116', 'tblTempVendorCDR_20' ) start [2024-12-31 14:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144116', 'tblTempVendorCDR_20' ) end [2024-12-31 14:20:20] Production.INFO: ProcessCDR(1,14144116,1,1,2) [2024-12-31 14:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144116', 'tblTempUsageDetail_20' ) start [2024-12-31 14:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144116', 'tblTempUsageDetail_20' ) end [2024-12-31 14:20:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:20:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:20:25] Production.INFO: ==29457== Releasing lock... [2024-12-31 14:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:20:25] Production.INFO: 55.5 MB #Memory Used# [2024-12-31 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:21:05 [end_date_ymd] => 2024-12-31 14:21:05 [RateCDR] => 1 ) [2024-12-31 14:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:21:05' and `end` < '2024-12-31 14:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:21:19] Production.INFO: count ==3606 [2024-12-31 14:21:20] Production.ERROR: pbx CDR StartTime 2024-12-31 11:21:05 - End Time 2024-12-31 14:21:05 [2024-12-31 14:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144121', 'tblTempUsageDetail_20' ) start [2024-12-31 14:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144121', 'tblTempUsageDetail_20' ) end [2024-12-31 14:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144121', 'tblTempVendorCDR_20' ) start [2024-12-31 14:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144121', 'tblTempVendorCDR_20' ) end [2024-12-31 14:21:20] Production.INFO: ProcessCDR(1,14144121,1,1,2) [2024-12-31 14:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144121', 'tblTempUsageDetail_20' ) start [2024-12-31 14:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144121', 'tblTempUsageDetail_20' ) end [2024-12-31 14:21:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:21:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:21:25] Production.INFO: ==29532== Releasing lock... [2024-12-31 14:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:21:25] Production.INFO: 55.5 MB #Memory Used# [2024-12-31 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:22:05 [end_date_ymd] => 2024-12-31 14:22:05 [RateCDR] => 1 ) [2024-12-31 14:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:22:05' and `end` < '2024-12-31 14:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:22:21] Production.INFO: count ==3628 [2024-12-31 14:22:23] Production.ERROR: pbx CDR StartTime 2024-12-31 11:22:05 - End Time 2024-12-31 14:22:05 [2024-12-31 14:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144126', 'tblTempUsageDetail_20' ) start [2024-12-31 14:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144126', 'tblTempUsageDetail_20' ) end [2024-12-31 14:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144126', 'tblTempVendorCDR_20' ) start [2024-12-31 14:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144126', 'tblTempVendorCDR_20' ) end [2024-12-31 14:22:23] Production.INFO: ProcessCDR(1,14144126,1,1,2) [2024-12-31 14:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144126', 'tblTempUsageDetail_20' ) start [2024-12-31 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144126', 'tblTempUsageDetail_20' ) end [2024-12-31 14:22:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:22:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:22:27] Production.INFO: ==29604== Releasing lock... [2024-12-31 14:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:22:27] Production.INFO: 55 MB #Memory Used# [2024-12-31 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:23:05 [end_date_ymd] => 2024-12-31 14:23:05 [RateCDR] => 1 ) [2024-12-31 14:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:23:05' and `end` < '2024-12-31 14:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:23:18] Production.INFO: count ==3634 [2024-12-31 14:23:19] Production.ERROR: pbx CDR StartTime 2024-12-31 11:23:05 - End Time 2024-12-31 14:23:05 [2024-12-31 14:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144131', 'tblTempUsageDetail_20' ) start [2024-12-31 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144131', 'tblTempUsageDetail_20' ) end [2024-12-31 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144131', 'tblTempVendorCDR_20' ) start [2024-12-31 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144131', 'tblTempVendorCDR_20' ) end [2024-12-31 14:23:19] Production.INFO: ProcessCDR(1,14144131,1,1,2) [2024-12-31 14:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144131', 'tblTempUsageDetail_20' ) start [2024-12-31 14:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144131', 'tblTempUsageDetail_20' ) end [2024-12-31 14:23:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:23:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:23:23] Production.INFO: ==29675== Releasing lock... [2024-12-31 14:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:23:23] Production.INFO: 55.25 MB #Memory Used# [2024-12-31 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:24:05 [end_date_ymd] => 2024-12-31 14:24:05 [RateCDR] => 1 ) [2024-12-31 14:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:24:05' and `end` < '2024-12-31 14:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:24:18] Production.INFO: count ==3604 [2024-12-31 14:24:19] Production.ERROR: pbx CDR StartTime 2024-12-31 11:24:05 - End Time 2024-12-31 14:24:05 [2024-12-31 14:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144136', 'tblTempUsageDetail_20' ) start [2024-12-31 14:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144136', 'tblTempUsageDetail_20' ) end [2024-12-31 14:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144136', 'tblTempVendorCDR_20' ) start [2024-12-31 14:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144136', 'tblTempVendorCDR_20' ) end [2024-12-31 14:24:19] Production.INFO: ProcessCDR(1,14144136,1,1,2) [2024-12-31 14:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144136', 'tblTempUsageDetail_20' ) start [2024-12-31 14:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144136', 'tblTempUsageDetail_20' ) end [2024-12-31 14:24:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:24:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:24:24] Production.INFO: ==29751== Releasing lock... [2024-12-31 14:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:24:24] Production.INFO: 55.25 MB #Memory Used# [2024-12-31 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:25:05 [end_date_ymd] => 2024-12-31 14:25:05 [RateCDR] => 1 ) [2024-12-31 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:25:05' and `end` < '2024-12-31 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:25:18] Production.INFO: count ==3608 [2024-12-31 14:25:20] Production.ERROR: pbx CDR StartTime 2024-12-31 11:25:05 - End Time 2024-12-31 14:25:05 [2024-12-31 14:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144141', 'tblTempUsageDetail_20' ) start [2024-12-31 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144141', 'tblTempUsageDetail_20' ) end [2024-12-31 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144141', 'tblTempVendorCDR_20' ) start [2024-12-31 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144141', 'tblTempVendorCDR_20' ) end [2024-12-31 14:25:20] Production.INFO: ProcessCDR(1,14144141,1,1,2) [2024-12-31 14:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144141', 'tblTempUsageDetail_20' ) start [2024-12-31 14:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144141', 'tblTempUsageDetail_20' ) end [2024-12-31 14:25:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:25:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:25:25] Production.INFO: ==29828== Releasing lock... [2024-12-31 14:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:25:25] Production.INFO: 55 MB #Memory Used# [2024-12-31 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:26:05 [end_date_ymd] => 2024-12-31 14:26:05 [RateCDR] => 1 ) [2024-12-31 14:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:26:05' and `end` < '2024-12-31 14:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:26:18] Production.INFO: count ==3581 [2024-12-31 14:26:19] Production.ERROR: pbx CDR StartTime 2024-12-31 11:26:05 - End Time 2024-12-31 14:26:05 [2024-12-31 14:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144146', 'tblTempUsageDetail_20' ) start [2024-12-31 14:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144146', 'tblTempUsageDetail_20' ) end [2024-12-31 14:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144146', 'tblTempVendorCDR_20' ) start [2024-12-31 14:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144146', 'tblTempVendorCDR_20' ) end [2024-12-31 14:26:20] Production.INFO: ProcessCDR(1,14144146,1,1,2) [2024-12-31 14:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144146', 'tblTempUsageDetail_20' ) start [2024-12-31 14:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144146', 'tblTempUsageDetail_20' ) end [2024-12-31 14:26:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:26:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:26:23] Production.INFO: ==29905== Releasing lock... [2024-12-31 14:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:26:23] Production.INFO: 55 MB #Memory Used# [2024-12-31 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:27:05 [end_date_ymd] => 2024-12-31 14:27:05 [RateCDR] => 1 ) [2024-12-31 14:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:27:05' and `end` < '2024-12-31 14:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:27:19] Production.INFO: count ==3569 [2024-12-31 14:27:20] Production.ERROR: pbx CDR StartTime 2024-12-31 11:27:05 - End Time 2024-12-31 14:27:05 [2024-12-31 14:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144151', 'tblTempUsageDetail_20' ) start [2024-12-31 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144151', 'tblTempUsageDetail_20' ) end [2024-12-31 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144151', 'tblTempVendorCDR_20' ) start [2024-12-31 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144151', 'tblTempVendorCDR_20' ) end [2024-12-31 14:27:21] Production.INFO: ProcessCDR(1,14144151,1,1,2) [2024-12-31 14:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144151', 'tblTempUsageDetail_20' ) start [2024-12-31 14:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144151', 'tblTempUsageDetail_20' ) end [2024-12-31 14:27:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:27:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:27:25] Production.INFO: ==30017== Releasing lock... [2024-12-31 14:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:27:25] Production.INFO: 55.5 MB #Memory Used# [2024-12-31 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:28:05 [end_date_ymd] => 2024-12-31 14:28:05 [RateCDR] => 1 ) [2024-12-31 14:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:28:05' and `end` < '2024-12-31 14:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:28:22] Production.INFO: count ==3556 [2024-12-31 14:28:23] Production.ERROR: pbx CDR StartTime 2024-12-31 11:28:05 - End Time 2024-12-31 14:28:05 [2024-12-31 14:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144156', 'tblTempUsageDetail_20' ) start [2024-12-31 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144156', 'tblTempUsageDetail_20' ) end [2024-12-31 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144156', 'tblTempVendorCDR_20' ) start [2024-12-31 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144156', 'tblTempVendorCDR_20' ) end [2024-12-31 14:28:23] Production.INFO: ProcessCDR(1,14144156,1,1,2) [2024-12-31 14:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144156', 'tblTempUsageDetail_20' ) start [2024-12-31 14:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144156', 'tblTempUsageDetail_20' ) end [2024-12-31 14:28:28] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:28:28] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:28:28] Production.INFO: ==30091== Releasing lock... [2024-12-31 14:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:28:28] Production.INFO: 54.75 MB #Memory Used# [2024-12-31 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:29:05 [end_date_ymd] => 2024-12-31 14:29:05 [RateCDR] => 1 ) [2024-12-31 14:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:29:05' and `end` < '2024-12-31 14:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:29:20] Production.INFO: count ==3547 [2024-12-31 14:29:21] Production.ERROR: pbx CDR StartTime 2024-12-31 11:29:05 - End Time 2024-12-31 14:29:05 [2024-12-31 14:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144161', 'tblTempUsageDetail_20' ) start [2024-12-31 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144161', 'tblTempUsageDetail_20' ) end [2024-12-31 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144161', 'tblTempVendorCDR_20' ) start [2024-12-31 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144161', 'tblTempVendorCDR_20' ) end [2024-12-31 14:29:21] Production.INFO: ProcessCDR(1,14144161,1,1,2) [2024-12-31 14:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144161', 'tblTempUsageDetail_20' ) start [2024-12-31 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144161', 'tblTempUsageDetail_20' ) end [2024-12-31 14:29:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:29:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:29:26] Production.INFO: ==30166== Releasing lock... [2024-12-31 14:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:29:26] Production.INFO: 55 MB #Memory Used# [2024-12-31 14:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:30:05 [end_date_ymd] => 2024-12-31 14:30:05 [RateCDR] => 1 ) [2024-12-31 14:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:30:05' and `end` < '2024-12-31 14:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:30:18] Production.INFO: count ==3500 [2024-12-31 14:30:19] Production.ERROR: pbx CDR StartTime 2024-12-31 11:30:05 - End Time 2024-12-31 14:30:05 [2024-12-31 14:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144167', 'tblTempUsageDetail_20' ) start [2024-12-31 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144167', 'tblTempUsageDetail_20' ) end [2024-12-31 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144167', 'tblTempVendorCDR_20' ) start [2024-12-31 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144167', 'tblTempVendorCDR_20' ) end [2024-12-31 14:30:19] Production.INFO: ProcessCDR(1,14144167,1,1,2) [2024-12-31 14:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144167', 'tblTempUsageDetail_20' ) start [2024-12-31 14:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144167', 'tblTempUsageDetail_20' ) end [2024-12-31 14:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:30:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:30:23] Production.INFO: ==30247== Releasing lock... [2024-12-31 14:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:30:23] Production.INFO: 54.25 MB #Memory Used# [2024-12-31 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:31:05 [end_date_ymd] => 2024-12-31 14:31:05 [RateCDR] => 1 ) [2024-12-31 14:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:31:05' and `end` < '2024-12-31 14:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:31:18] Production.INFO: count ==3439 [2024-12-31 14:31:19] Production.ERROR: pbx CDR StartTime 2024-12-31 11:31:05 - End Time 2024-12-31 14:31:05 [2024-12-31 14:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144172', 'tblTempUsageDetail_20' ) start [2024-12-31 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144172', 'tblTempUsageDetail_20' ) end [2024-12-31 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144172', 'tblTempVendorCDR_20' ) start [2024-12-31 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144172', 'tblTempVendorCDR_20' ) end [2024-12-31 14:31:19] Production.INFO: ProcessCDR(1,14144172,1,1,2) [2024-12-31 14:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144172', 'tblTempUsageDetail_20' ) start [2024-12-31 14:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144172', 'tblTempUsageDetail_20' ) end [2024-12-31 14:31:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:31:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:31:23] Production.INFO: ==30322== Releasing lock... [2024-12-31 14:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:31:23] Production.INFO: 54 MB #Memory Used# [2024-12-31 14:32:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:32:06 [end_date_ymd] => 2024-12-31 14:32:06 [RateCDR] => 1 ) [2024-12-31 14:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:32:06' and `end` < '2024-12-31 14:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:32:19] Production.INFO: count ==3433 [2024-12-31 14:32:20] Production.ERROR: pbx CDR StartTime 2024-12-31 11:32:06 - End Time 2024-12-31 14:32:06 [2024-12-31 14:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144177', 'tblTempUsageDetail_20' ) start [2024-12-31 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144177', 'tblTempUsageDetail_20' ) end [2024-12-31 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144177', 'tblTempVendorCDR_20' ) start [2024-12-31 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144177', 'tblTempVendorCDR_20' ) end [2024-12-31 14:32:20] Production.INFO: ProcessCDR(1,14144177,1,1,2) [2024-12-31 14:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144177', 'tblTempUsageDetail_20' ) start [2024-12-31 14:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144177', 'tblTempUsageDetail_20' ) end [2024-12-31 14:32:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:32:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:32:23] Production.INFO: ==30395== Releasing lock... [2024-12-31 14:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:32:23] Production.INFO: 53.75 MB #Memory Used# [2024-12-31 14:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:33:04 [end_date_ymd] => 2024-12-31 14:33:04 [RateCDR] => 1 ) [2024-12-31 14:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:33:04' and `end` < '2024-12-31 14:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:33:18] Production.INFO: count ==3430 [2024-12-31 14:33:19] Production.ERROR: pbx CDR StartTime 2024-12-31 11:33:04 - End Time 2024-12-31 14:33:04 [2024-12-31 14:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144182', 'tblTempUsageDetail_20' ) start [2024-12-31 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144182', 'tblTempUsageDetail_20' ) end [2024-12-31 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144182', 'tblTempVendorCDR_20' ) start [2024-12-31 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144182', 'tblTempVendorCDR_20' ) end [2024-12-31 14:33:19] Production.INFO: ProcessCDR(1,14144182,1,1,2) [2024-12-31 14:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144182', 'tblTempUsageDetail_20' ) start [2024-12-31 14:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144182', 'tblTempUsageDetail_20' ) end [2024-12-31 14:33:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:33:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:33:23] Production.INFO: ==30468== Releasing lock... [2024-12-31 14:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:33:23] Production.INFO: 53.75 MB #Memory Used# [2024-12-31 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:34:05 [end_date_ymd] => 2024-12-31 14:34:05 [RateCDR] => 1 ) [2024-12-31 14:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:34:05' and `end` < '2024-12-31 14:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:34:18] Production.INFO: count ==3440 [2024-12-31 14:34:19] Production.ERROR: pbx CDR StartTime 2024-12-31 11:34:05 - End Time 2024-12-31 14:34:05 [2024-12-31 14:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144187', 'tblTempUsageDetail_20' ) start [2024-12-31 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144187', 'tblTempUsageDetail_20' ) end [2024-12-31 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144187', 'tblTempVendorCDR_20' ) start [2024-12-31 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144187', 'tblTempVendorCDR_20' ) end [2024-12-31 14:34:19] Production.INFO: ProcessCDR(1,14144187,1,1,2) [2024-12-31 14:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144187', 'tblTempUsageDetail_20' ) start [2024-12-31 14:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144187', 'tblTempUsageDetail_20' ) end [2024-12-31 14:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:34:22] Production.INFO: ==30545== Releasing lock... [2024-12-31 14:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:34:22] Production.INFO: 55.25 MB #Memory Used# [2024-12-31 14:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:35:04 [end_date_ymd] => 2024-12-31 14:35:04 [RateCDR] => 1 ) [2024-12-31 14:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:35:04' and `end` < '2024-12-31 14:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:35:17] Production.INFO: count ==3425 [2024-12-31 14:35:19] Production.ERROR: pbx CDR StartTime 2024-12-31 11:35:04 - End Time 2024-12-31 14:35:04 [2024-12-31 14:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144192', 'tblTempUsageDetail_20' ) start [2024-12-31 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144192', 'tblTempUsageDetail_20' ) end [2024-12-31 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144192', 'tblTempVendorCDR_20' ) start [2024-12-31 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144192', 'tblTempVendorCDR_20' ) end [2024-12-31 14:35:19] Production.INFO: ProcessCDR(1,14144192,1,1,2) [2024-12-31 14:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144192', 'tblTempUsageDetail_20' ) start [2024-12-31 14:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144192', 'tblTempUsageDetail_20' ) end [2024-12-31 14:35:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:35:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:35:22] Production.INFO: ==30634== Releasing lock... [2024-12-31 14:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:35:22] Production.INFO: 53.75 MB #Memory Used# [2024-12-31 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:36:05 [end_date_ymd] => 2024-12-31 14:36:05 [RateCDR] => 1 ) [2024-12-31 14:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:36:05' and `end` < '2024-12-31 14:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:36:18] Production.INFO: count ==3438 [2024-12-31 14:36:20] Production.ERROR: pbx CDR StartTime 2024-12-31 11:36:05 - End Time 2024-12-31 14:36:05 [2024-12-31 14:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144197', 'tblTempUsageDetail_20' ) start [2024-12-31 14:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144197', 'tblTempUsageDetail_20' ) end [2024-12-31 14:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144197', 'tblTempVendorCDR_20' ) start [2024-12-31 14:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144197', 'tblTempVendorCDR_20' ) end [2024-12-31 14:36:20] Production.INFO: ProcessCDR(1,14144197,1,1,2) [2024-12-31 14:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144197', 'tblTempUsageDetail_20' ) start [2024-12-31 14:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144197', 'tblTempUsageDetail_20' ) end [2024-12-31 14:36:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:36:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:36:24] Production.INFO: ==30710== Releasing lock... [2024-12-31 14:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:36:24] Production.INFO: 54.5 MB #Memory Used# [2024-12-31 14:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:37:04 [end_date_ymd] => 2024-12-31 14:37:04 [RateCDR] => 1 ) [2024-12-31 14:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:37:04' and `end` < '2024-12-31 14:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:37:18] Production.INFO: count ==3442 [2024-12-31 14:37:19] Production.ERROR: pbx CDR StartTime 2024-12-31 11:37:04 - End Time 2024-12-31 14:37:04 [2024-12-31 14:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144202', 'tblTempUsageDetail_20' ) start [2024-12-31 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144202', 'tblTempUsageDetail_20' ) end [2024-12-31 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144202', 'tblTempVendorCDR_20' ) start [2024-12-31 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144202', 'tblTempVendorCDR_20' ) end [2024-12-31 14:37:19] Production.INFO: ProcessCDR(1,14144202,1,1,2) [2024-12-31 14:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144202', 'tblTempUsageDetail_20' ) start [2024-12-31 14:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144202', 'tblTempUsageDetail_20' ) end [2024-12-31 14:37:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:37:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:37:24] Production.INFO: ==30781== Releasing lock... [2024-12-31 14:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:37:24] Production.INFO: 54 MB #Memory Used# [2024-12-31 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:38:05 [end_date_ymd] => 2024-12-31 14:38:05 [RateCDR] => 1 ) [2024-12-31 14:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:38:05' and `end` < '2024-12-31 14:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:38:19] Production.INFO: count ==3430 [2024-12-31 14:38:20] Production.ERROR: pbx CDR StartTime 2024-12-31 11:38:05 - End Time 2024-12-31 14:38:05 [2024-12-31 14:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144207', 'tblTempUsageDetail_20' ) start [2024-12-31 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144207', 'tblTempUsageDetail_20' ) end [2024-12-31 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144207', 'tblTempVendorCDR_20' ) start [2024-12-31 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144207', 'tblTempVendorCDR_20' ) end [2024-12-31 14:38:20] Production.INFO: ProcessCDR(1,14144207,1,1,2) [2024-12-31 14:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144207', 'tblTempUsageDetail_20' ) start [2024-12-31 14:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144207', 'tblTempUsageDetail_20' ) end [2024-12-31 14:38:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:38:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:38:24] Production.INFO: ==30855== Releasing lock... [2024-12-31 14:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:38:24] Production.INFO: 53.75 MB #Memory Used# [2024-12-31 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:39:05 [end_date_ymd] => 2024-12-31 14:39:05 [RateCDR] => 1 ) [2024-12-31 14:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:39:05' and `end` < '2024-12-31 14:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:39:18] Production.INFO: count ==3451 [2024-12-31 14:39:20] Production.ERROR: pbx CDR StartTime 2024-12-31 11:39:05 - End Time 2024-12-31 14:39:05 [2024-12-31 14:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144212', 'tblTempUsageDetail_20' ) start [2024-12-31 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144212', 'tblTempUsageDetail_20' ) end [2024-12-31 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144212', 'tblTempVendorCDR_20' ) start [2024-12-31 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144212', 'tblTempVendorCDR_20' ) end [2024-12-31 14:39:20] Production.INFO: ProcessCDR(1,14144212,1,1,2) [2024-12-31 14:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144212', 'tblTempUsageDetail_20' ) start [2024-12-31 14:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144212', 'tblTempUsageDetail_20' ) end [2024-12-31 14:39:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:39:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:39:23] Production.INFO: ==30926== Releasing lock... [2024-12-31 14:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:39:23] Production.INFO: 54.25 MB #Memory Used# [2024-12-31 14:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:40:05 [end_date_ymd] => 2024-12-31 14:40:05 [RateCDR] => 1 ) [2024-12-31 14:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:40:05' and `end` < '2024-12-31 14:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:40:18] Production.INFO: count ==3433 [2024-12-31 14:40:19] Production.ERROR: pbx CDR StartTime 2024-12-31 11:40:05 - End Time 2024-12-31 14:40:05 [2024-12-31 14:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144217', 'tblTempUsageDetail_20' ) start [2024-12-31 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144217', 'tblTempUsageDetail_20' ) end [2024-12-31 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144217', 'tblTempVendorCDR_20' ) start [2024-12-31 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144217', 'tblTempVendorCDR_20' ) end [2024-12-31 14:40:19] Production.INFO: ProcessCDR(1,14144217,1,1,2) [2024-12-31 14:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144217', 'tblTempUsageDetail_20' ) start [2024-12-31 14:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144217', 'tblTempUsageDetail_20' ) end [2024-12-31 14:40:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:40:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:40:23] Production.INFO: ==31004== Releasing lock... [2024-12-31 14:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:40:23] Production.INFO: 54 MB #Memory Used# [2024-12-31 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:41:05 [end_date_ymd] => 2024-12-31 14:41:05 [RateCDR] => 1 ) [2024-12-31 14:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:41:05' and `end` < '2024-12-31 14:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:41:18] Production.INFO: count ==3441 [2024-12-31 14:41:19] Production.ERROR: pbx CDR StartTime 2024-12-31 11:41:05 - End Time 2024-12-31 14:41:05 [2024-12-31 14:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144223', 'tblTempUsageDetail_20' ) start [2024-12-31 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144223', 'tblTempUsageDetail_20' ) end [2024-12-31 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144223', 'tblTempVendorCDR_20' ) start [2024-12-31 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144223', 'tblTempVendorCDR_20' ) end [2024-12-31 14:41:19] Production.INFO: ProcessCDR(1,14144223,1,1,2) [2024-12-31 14:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144223', 'tblTempUsageDetail_20' ) start [2024-12-31 14:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144223', 'tblTempUsageDetail_20' ) end [2024-12-31 14:41:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:41:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:41:23] Production.INFO: ==31081== Releasing lock... [2024-12-31 14:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:41:23] Production.INFO: 54.75 MB #Memory Used# [2024-12-31 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:42:05 [end_date_ymd] => 2024-12-31 14:42:05 [RateCDR] => 1 ) [2024-12-31 14:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:42:05' and `end` < '2024-12-31 14:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:42:18] Production.INFO: count ==3434 [2024-12-31 14:42:19] Production.ERROR: pbx CDR StartTime 2024-12-31 11:42:05 - End Time 2024-12-31 14:42:05 [2024-12-31 14:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144228', 'tblTempUsageDetail_20' ) start [2024-12-31 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144228', 'tblTempUsageDetail_20' ) end [2024-12-31 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144228', 'tblTempVendorCDR_20' ) start [2024-12-31 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144228', 'tblTempVendorCDR_20' ) end [2024-12-31 14:42:19] Production.INFO: ProcessCDR(1,14144228,1,1,2) [2024-12-31 14:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144228', 'tblTempUsageDetail_20' ) start [2024-12-31 14:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144228', 'tblTempUsageDetail_20' ) end [2024-12-31 14:42:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:42:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:42:24] Production.INFO: ==31154== Releasing lock... [2024-12-31 14:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:42:24] Production.INFO: 54.5 MB #Memory Used# [2024-12-31 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:43:05 [end_date_ymd] => 2024-12-31 14:43:05 [RateCDR] => 1 ) [2024-12-31 14:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:43:05' and `end` < '2024-12-31 14:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:43:18] Production.INFO: count ==3436 [2024-12-31 14:43:19] Production.ERROR: pbx CDR StartTime 2024-12-31 11:43:05 - End Time 2024-12-31 14:43:05 [2024-12-31 14:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144233', 'tblTempUsageDetail_20' ) start [2024-12-31 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144233', 'tblTempUsageDetail_20' ) end [2024-12-31 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144233', 'tblTempVendorCDR_20' ) start [2024-12-31 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144233', 'tblTempVendorCDR_20' ) end [2024-12-31 14:43:19] Production.INFO: ProcessCDR(1,14144233,1,1,2) [2024-12-31 14:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144233', 'tblTempUsageDetail_20' ) start [2024-12-31 14:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144233', 'tblTempUsageDetail_20' ) end [2024-12-31 14:43:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:43:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:43:24] Production.INFO: ==31264== Releasing lock... [2024-12-31 14:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:43:24] Production.INFO: 53.75 MB #Memory Used# [2024-12-31 14:44:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:44:06 [end_date_ymd] => 2024-12-31 14:44:06 [RateCDR] => 1 ) [2024-12-31 14:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:44:06' and `end` < '2024-12-31 14:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:44:19] Production.INFO: count ==3433 [2024-12-31 14:44:20] Production.ERROR: pbx CDR StartTime 2024-12-31 11:44:06 - End Time 2024-12-31 14:44:06 [2024-12-31 14:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144238', 'tblTempUsageDetail_20' ) start [2024-12-31 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144238', 'tblTempUsageDetail_20' ) end [2024-12-31 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144238', 'tblTempVendorCDR_20' ) start [2024-12-31 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144238', 'tblTempVendorCDR_20' ) end [2024-12-31 14:44:20] Production.INFO: ProcessCDR(1,14144238,1,1,2) [2024-12-31 14:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144238', 'tblTempUsageDetail_20' ) start [2024-12-31 14:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144238', 'tblTempUsageDetail_20' ) end [2024-12-31 14:44:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:44:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:44:25] Production.INFO: ==31336== Releasing lock... [2024-12-31 14:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:44:25] Production.INFO: 54 MB #Memory Used# [2024-12-31 14:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:45:04 [end_date_ymd] => 2024-12-31 14:45:04 [RateCDR] => 1 ) [2024-12-31 14:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:45:04' and `end` < '2024-12-31 14:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:45:18] Production.INFO: count ==3422 [2024-12-31 14:45:19] Production.ERROR: pbx CDR StartTime 2024-12-31 11:45:04 - End Time 2024-12-31 14:45:04 [2024-12-31 14:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144243', 'tblTempUsageDetail_20' ) start [2024-12-31 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144243', 'tblTempUsageDetail_20' ) end [2024-12-31 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144243', 'tblTempVendorCDR_20' ) start [2024-12-31 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144243', 'tblTempVendorCDR_20' ) end [2024-12-31 14:45:19] Production.INFO: ProcessCDR(1,14144243,1,1,2) [2024-12-31 14:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144243', 'tblTempUsageDetail_20' ) start [2024-12-31 14:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144243', 'tblTempUsageDetail_20' ) end [2024-12-31 14:45:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:45:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:45:24] Production.INFO: ==31412== Releasing lock... [2024-12-31 14:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:45:24] Production.INFO: 53.75 MB #Memory Used# [2024-12-31 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:46:05 [end_date_ymd] => 2024-12-31 14:46:05 [RateCDR] => 1 ) [2024-12-31 14:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:46:05' and `end` < '2024-12-31 14:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:46:18] Production.INFO: count ==3408 [2024-12-31 14:46:19] Production.ERROR: pbx CDR StartTime 2024-12-31 11:46:05 - End Time 2024-12-31 14:46:05 [2024-12-31 14:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144248', 'tblTempUsageDetail_20' ) start [2024-12-31 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144248', 'tblTempUsageDetail_20' ) end [2024-12-31 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144248', 'tblTempVendorCDR_20' ) start [2024-12-31 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144248', 'tblTempVendorCDR_20' ) end [2024-12-31 14:46:20] Production.INFO: ProcessCDR(1,14144248,1,1,2) [2024-12-31 14:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144248', 'tblTempUsageDetail_20' ) start [2024-12-31 14:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144248', 'tblTempUsageDetail_20' ) end [2024-12-31 14:46:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:46:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:46:23] Production.INFO: ==31485== Releasing lock... [2024-12-31 14:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:46:23] Production.INFO: 53.5 MB #Memory Used# [2024-12-31 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:47:05 [end_date_ymd] => 2024-12-31 14:47:05 [RateCDR] => 1 ) [2024-12-31 14:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:47:05' and `end` < '2024-12-31 14:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:47:18] Production.INFO: count ==3426 [2024-12-31 14:47:19] Production.ERROR: pbx CDR StartTime 2024-12-31 11:47:05 - End Time 2024-12-31 14:47:05 [2024-12-31 14:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144253', 'tblTempUsageDetail_20' ) start [2024-12-31 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144253', 'tblTempUsageDetail_20' ) end [2024-12-31 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144253', 'tblTempVendorCDR_20' ) start [2024-12-31 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144253', 'tblTempVendorCDR_20' ) end [2024-12-31 14:47:19] Production.INFO: ProcessCDR(1,14144253,1,1,2) [2024-12-31 14:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144253', 'tblTempUsageDetail_20' ) start [2024-12-31 14:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144253', 'tblTempUsageDetail_20' ) end [2024-12-31 14:47:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:47:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:47:23] Production.INFO: ==31554== Releasing lock... [2024-12-31 14:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:47:23] Production.INFO: 54.25 MB #Memory Used# [2024-12-31 14:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:48:04 [end_date_ymd] => 2024-12-31 14:48:04 [RateCDR] => 1 ) [2024-12-31 14:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:48:04' and `end` < '2024-12-31 14:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:48:20] Production.INFO: count ==3423 [2024-12-31 14:48:21] Production.ERROR: pbx CDR StartTime 2024-12-31 11:48:04 - End Time 2024-12-31 14:48:04 [2024-12-31 14:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144257', 'tblTempUsageDetail_20' ) start [2024-12-31 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144257', 'tblTempUsageDetail_20' ) end [2024-12-31 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144257', 'tblTempVendorCDR_20' ) start [2024-12-31 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144257', 'tblTempVendorCDR_20' ) end [2024-12-31 14:48:21] Production.INFO: ProcessCDR(1,14144257,1,1,2) [2024-12-31 14:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144257', 'tblTempUsageDetail_20' ) start [2024-12-31 14:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144257', 'tblTempUsageDetail_20' ) end [2024-12-31 14:48:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:48:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:48:26] Production.INFO: ==31624== Releasing lock... [2024-12-31 14:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:48:26] Production.INFO: 54.5 MB #Memory Used# [2024-12-31 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:49:05 [end_date_ymd] => 2024-12-31 14:49:05 [RateCDR] => 1 ) [2024-12-31 14:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:49:05' and `end` < '2024-12-31 14:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:49:18] Production.INFO: count ==3421 [2024-12-31 14:49:19] Production.ERROR: pbx CDR StartTime 2024-12-31 11:49:05 - End Time 2024-12-31 14:49:05 [2024-12-31 14:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144263', 'tblTempUsageDetail_20' ) start [2024-12-31 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144263', 'tblTempUsageDetail_20' ) end [2024-12-31 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144263', 'tblTempVendorCDR_20' ) start [2024-12-31 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144263', 'tblTempVendorCDR_20' ) end [2024-12-31 14:49:19] Production.INFO: ProcessCDR(1,14144263,1,1,2) [2024-12-31 14:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144263', 'tblTempUsageDetail_20' ) start [2024-12-31 14:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144263', 'tblTempUsageDetail_20' ) end [2024-12-31 14:49:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:49:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:49:24] Production.INFO: ==31699== Releasing lock... [2024-12-31 14:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:49:24] Production.INFO: 54.5 MB #Memory Used# [2024-12-31 14:50:07] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:50:07 [end_date_ymd] => 2024-12-31 14:50:07 [RateCDR] => 1 ) [2024-12-31 14:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:50:07' and `end` < '2024-12-31 14:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:50:20] Production.INFO: count ==3415 [2024-12-31 14:50:21] Production.ERROR: pbx CDR StartTime 2024-12-31 11:50:07 - End Time 2024-12-31 14:50:07 [2024-12-31 14:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144268', 'tblTempUsageDetail_20' ) start [2024-12-31 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144268', 'tblTempUsageDetail_20' ) end [2024-12-31 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144268', 'tblTempVendorCDR_20' ) start [2024-12-31 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144268', 'tblTempVendorCDR_20' ) end [2024-12-31 14:50:22] Production.INFO: ProcessCDR(1,14144268,1,1,2) [2024-12-31 14:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144268', 'tblTempUsageDetail_20' ) start [2024-12-31 14:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144268', 'tblTempUsageDetail_20' ) end [2024-12-31 14:50:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:50:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:50:26] Production.INFO: ==31784== Releasing lock... [2024-12-31 14:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:50:26] Production.INFO: 53.5 MB #Memory Used# [2024-12-31 14:51:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:51:06 [end_date_ymd] => 2024-12-31 14:51:06 [RateCDR] => 1 ) [2024-12-31 14:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:51:06' and `end` < '2024-12-31 14:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:51:19] Production.INFO: count ==3357 [2024-12-31 14:51:20] Production.ERROR: pbx CDR StartTime 2024-12-31 11:51:06 - End Time 2024-12-31 14:51:06 [2024-12-31 14:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144274', 'tblTempUsageDetail_20' ) start [2024-12-31 14:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144274', 'tblTempUsageDetail_20' ) end [2024-12-31 14:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144274', 'tblTempVendorCDR_20' ) start [2024-12-31 14:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144274', 'tblTempVendorCDR_20' ) end [2024-12-31 14:51:20] Production.INFO: ProcessCDR(1,14144274,1,1,2) [2024-12-31 14:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144274', 'tblTempUsageDetail_20' ) start [2024-12-31 14:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144274', 'tblTempUsageDetail_20' ) end [2024-12-31 14:51:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:51:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:51:24] Production.INFO: ==31863== Releasing lock... [2024-12-31 14:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:51:24] Production.INFO: 53 MB #Memory Used# [2024-12-31 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:52:05 [end_date_ymd] => 2024-12-31 14:52:05 [RateCDR] => 1 ) [2024-12-31 14:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:52:05' and `end` < '2024-12-31 14:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:52:18] Production.INFO: count ==3355 [2024-12-31 14:52:20] Production.ERROR: pbx CDR StartTime 2024-12-31 11:52:05 - End Time 2024-12-31 14:52:05 [2024-12-31 14:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144279', 'tblTempUsageDetail_20' ) start [2024-12-31 14:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144279', 'tblTempUsageDetail_20' ) end [2024-12-31 14:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144279', 'tblTempVendorCDR_20' ) start [2024-12-31 14:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144279', 'tblTempVendorCDR_20' ) end [2024-12-31 14:52:20] Production.INFO: ProcessCDR(1,14144279,1,1,2) [2024-12-31 14:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144279', 'tblTempUsageDetail_20' ) start [2024-12-31 14:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144279', 'tblTempUsageDetail_20' ) end [2024-12-31 14:52:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:52:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:52:25] Production.INFO: ==31937== Releasing lock... [2024-12-31 14:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:52:25] Production.INFO: 53.25 MB #Memory Used# [2024-12-31 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:53:05 [end_date_ymd] => 2024-12-31 14:53:05 [RateCDR] => 1 ) [2024-12-31 14:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:53:05' and `end` < '2024-12-31 14:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:53:18] Production.INFO: count ==3342 [2024-12-31 14:53:19] Production.ERROR: pbx CDR StartTime 2024-12-31 11:53:05 - End Time 2024-12-31 14:53:05 [2024-12-31 14:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144284', 'tblTempUsageDetail_20' ) start [2024-12-31 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144284', 'tblTempUsageDetail_20' ) end [2024-12-31 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144284', 'tblTempVendorCDR_20' ) start [2024-12-31 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144284', 'tblTempVendorCDR_20' ) end [2024-12-31 14:53:19] Production.INFO: ProcessCDR(1,14144284,1,1,2) [2024-12-31 14:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144284', 'tblTempUsageDetail_20' ) start [2024-12-31 14:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144284', 'tblTempUsageDetail_20' ) end [2024-12-31 14:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:53:22] Production.INFO: ==32025== Releasing lock... [2024-12-31 14:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:53:22] Production.INFO: 54 MB #Memory Used# [2024-12-31 14:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:54:04 [end_date_ymd] => 2024-12-31 14:54:04 [RateCDR] => 1 ) [2024-12-31 14:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:54:04' and `end` < '2024-12-31 14:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:54:20] Production.INFO: count ==3351 [2024-12-31 14:54:21] Production.ERROR: pbx CDR StartTime 2024-12-31 11:54:04 - End Time 2024-12-31 14:54:04 [2024-12-31 14:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144289', 'tblTempUsageDetail_20' ) start [2024-12-31 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144289', 'tblTempUsageDetail_20' ) end [2024-12-31 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144289', 'tblTempVendorCDR_20' ) start [2024-12-31 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144289', 'tblTempVendorCDR_20' ) end [2024-12-31 14:54:21] Production.INFO: ProcessCDR(1,14144289,1,1,2) [2024-12-31 14:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144289', 'tblTempUsageDetail_20' ) start [2024-12-31 14:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144289', 'tblTempUsageDetail_20' ) end [2024-12-31 14:54:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:54:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:54:25] Production.INFO: ==32109== Releasing lock... [2024-12-31 14:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:54:25] Production.INFO: 53.25 MB #Memory Used# [2024-12-31 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:55:05 [end_date_ymd] => 2024-12-31 14:55:05 [RateCDR] => 1 ) [2024-12-31 14:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:55:05' and `end` < '2024-12-31 14:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:55:18] Production.INFO: count ==3387 [2024-12-31 14:55:19] Production.ERROR: pbx CDR StartTime 2024-12-31 11:55:05 - End Time 2024-12-31 14:55:05 [2024-12-31 14:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144294', 'tblTempUsageDetail_20' ) start [2024-12-31 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144294', 'tblTempUsageDetail_20' ) end [2024-12-31 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144294', 'tblTempVendorCDR_20' ) start [2024-12-31 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144294', 'tblTempVendorCDR_20' ) end [2024-12-31 14:55:19] Production.INFO: ProcessCDR(1,14144294,1,1,2) [2024-12-31 14:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144294', 'tblTempUsageDetail_20' ) start [2024-12-31 14:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144294', 'tblTempUsageDetail_20' ) end [2024-12-31 14:55:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:55:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:55:24] Production.INFO: ==32201== Releasing lock... [2024-12-31 14:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:55:24] Production.INFO: 53.75 MB #Memory Used# [2024-12-31 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:56:05 [end_date_ymd] => 2024-12-31 14:56:05 [RateCDR] => 1 ) [2024-12-31 14:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:56:05' and `end` < '2024-12-31 14:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:56:19] Production.INFO: count ==3406 [2024-12-31 14:56:20] Production.ERROR: pbx CDR StartTime 2024-12-31 11:56:05 - End Time 2024-12-31 14:56:05 [2024-12-31 14:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144299', 'tblTempUsageDetail_20' ) start [2024-12-31 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144299', 'tblTempUsageDetail_20' ) end [2024-12-31 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144299', 'tblTempVendorCDR_20' ) start [2024-12-31 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144299', 'tblTempVendorCDR_20' ) end [2024-12-31 14:56:20] Production.INFO: ProcessCDR(1,14144299,1,1,2) [2024-12-31 14:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144299', 'tblTempUsageDetail_20' ) start [2024-12-31 14:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144299', 'tblTempUsageDetail_20' ) end [2024-12-31 14:56:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:56:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:56:23] Production.INFO: ==32293== Releasing lock... [2024-12-31 14:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:56:23] Production.INFO: 53.75 MB #Memory Used# [2024-12-31 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:57:05 [end_date_ymd] => 2024-12-31 14:57:05 [RateCDR] => 1 ) [2024-12-31 14:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:57:05' and `end` < '2024-12-31 14:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:57:18] Production.INFO: count ==3432 [2024-12-31 14:57:20] Production.ERROR: pbx CDR StartTime 2024-12-31 11:57:05 - End Time 2024-12-31 14:57:05 [2024-12-31 14:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144304', 'tblTempUsageDetail_20' ) start [2024-12-31 14:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144304', 'tblTempUsageDetail_20' ) end [2024-12-31 14:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144304', 'tblTempVendorCDR_20' ) start [2024-12-31 14:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144304', 'tblTempVendorCDR_20' ) end [2024-12-31 14:57:20] Production.INFO: ProcessCDR(1,14144304,1,1,2) [2024-12-31 14:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144304', 'tblTempUsageDetail_20' ) start [2024-12-31 14:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144304', 'tblTempUsageDetail_20' ) end [2024-12-31 14:57:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:57:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:57:24] Production.INFO: ==32386== Releasing lock... [2024-12-31 14:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:57:24] Production.INFO: 54.5 MB #Memory Used# [2024-12-31 14:58:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:58:06 [end_date_ymd] => 2024-12-31 14:58:06 [RateCDR] => 1 ) [2024-12-31 14:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:58:06' and `end` < '2024-12-31 14:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:58:19] Production.INFO: count ==3426 [2024-12-31 14:58:20] Production.ERROR: pbx CDR StartTime 2024-12-31 11:58:06 - End Time 2024-12-31 14:58:06 [2024-12-31 14:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144309', 'tblTempUsageDetail_20' ) start [2024-12-31 14:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144309', 'tblTempUsageDetail_20' ) end [2024-12-31 14:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144309', 'tblTempVendorCDR_20' ) start [2024-12-31 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144309', 'tblTempVendorCDR_20' ) end [2024-12-31 14:58:21] Production.INFO: ProcessCDR(1,14144309,1,1,2) [2024-12-31 14:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144309', 'tblTempUsageDetail_20' ) start [2024-12-31 14:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144309', 'tblTempUsageDetail_20' ) end [2024-12-31 14:58:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:58:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:58:25] Production.INFO: ==32520== Releasing lock... [2024-12-31 14:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:58:25] Production.INFO: 53.5 MB #Memory Used# [2024-12-31 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 11:59:05 [end_date_ymd] => 2024-12-31 14:59:05 [RateCDR] => 1 ) [2024-12-31 14:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 11:59:05' and `end` < '2024-12-31 14:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 14:59:19] Production.INFO: count ==3411 [2024-12-31 14:59:20] Production.ERROR: pbx CDR StartTime 2024-12-31 11:59:05 - End Time 2024-12-31 14:59:05 [2024-12-31 14:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 14:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144314', 'tblTempUsageDetail_20' ) start [2024-12-31 14:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144314', 'tblTempUsageDetail_20' ) end [2024-12-31 14:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144314', 'tblTempVendorCDR_20' ) start [2024-12-31 14:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144314', 'tblTempVendorCDR_20' ) end [2024-12-31 14:59:20] Production.INFO: ProcessCDR(1,14144314,1,1,2) [2024-12-31 14:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 14:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 14:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144314', 'tblTempUsageDetail_20' ) start [2024-12-31 14:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144314', 'tblTempUsageDetail_20' ) end [2024-12-31 14:59:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 14:59:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 14:59:25] Production.INFO: ==32624== Releasing lock... [2024-12-31 14:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 14:59:25] Production.INFO: 54 MB #Memory Used# [2024-12-31 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:00:06 [end_date_ymd] => 2024-12-31 15:00:06 [RateCDR] => 1 ) [2024-12-31 15:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:00:06' and `end` < '2024-12-31 15:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:00:19] Production.INFO: count ==3401 [2024-12-31 15:00:21] Production.ERROR: pbx CDR StartTime 2024-12-31 12:00:06 - End Time 2024-12-31 15:00:06 [2024-12-31 15:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144319', 'tblTempUsageDetail_20' ) start [2024-12-31 15:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144319', 'tblTempUsageDetail_20' ) end [2024-12-31 15:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144319', 'tblTempVendorCDR_20' ) start [2024-12-31 15:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144319', 'tblTempVendorCDR_20' ) end [2024-12-31 15:00:21] Production.INFO: ProcessCDR(1,14144319,1,1,2) [2024-12-31 15:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144319', 'tblTempUsageDetail_20' ) start [2024-12-31 15:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144319', 'tblTempUsageDetail_20' ) end [2024-12-31 15:00:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:00:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:00:24] Production.INFO: ==32750== Releasing lock... [2024-12-31 15:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:00:24] Production.INFO: 53.5 MB #Memory Used# [2024-12-31 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:01:05 [end_date_ymd] => 2024-12-31 15:01:05 [RateCDR] => 1 ) [2024-12-31 15:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:01:05' and `end` < '2024-12-31 15:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:01:19] Production.INFO: count ==3413 [2024-12-31 15:01:20] Production.ERROR: pbx CDR StartTime 2024-12-31 12:01:05 - End Time 2024-12-31 15:01:05 [2024-12-31 15:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144325', 'tblTempUsageDetail_20' ) start [2024-12-31 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144325', 'tblTempUsageDetail_20' ) end [2024-12-31 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144325', 'tblTempVendorCDR_20' ) start [2024-12-31 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144325', 'tblTempVendorCDR_20' ) end [2024-12-31 15:01:21] Production.INFO: ProcessCDR(1,14144325,1,1,2) [2024-12-31 15:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144325', 'tblTempUsageDetail_20' ) start [2024-12-31 15:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144325', 'tblTempUsageDetail_20' ) end [2024-12-31 15:01:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:01:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:01:25] Production.INFO: ==518== Releasing lock... [2024-12-31 15:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:01:25] Production.INFO: 53.75 MB #Memory Used# [2024-12-31 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:02:05 [end_date_ymd] => 2024-12-31 15:02:05 [RateCDR] => 1 ) [2024-12-31 15:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:02:05' and `end` < '2024-12-31 15:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:02:18] Production.INFO: count ==3405 [2024-12-31 15:02:20] Production.ERROR: pbx CDR StartTime 2024-12-31 12:02:05 - End Time 2024-12-31 15:02:05 [2024-12-31 15:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144330', 'tblTempUsageDetail_20' ) start [2024-12-31 15:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144330', 'tblTempUsageDetail_20' ) end [2024-12-31 15:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144330', 'tblTempVendorCDR_20' ) start [2024-12-31 15:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144330', 'tblTempVendorCDR_20' ) end [2024-12-31 15:02:20] Production.INFO: ProcessCDR(1,14144330,1,1,2) [2024-12-31 15:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144330', 'tblTempUsageDetail_20' ) start [2024-12-31 15:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144330', 'tblTempUsageDetail_20' ) end [2024-12-31 15:02:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:02:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:02:25] Production.INFO: ==654== Releasing lock... [2024-12-31 15:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:02:25] Production.INFO: 54.5 MB #Memory Used# [2024-12-31 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:03:05 [end_date_ymd] => 2024-12-31 15:03:05 [RateCDR] => 1 ) [2024-12-31 15:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:03:05' and `end` < '2024-12-31 15:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:03:19] Production.INFO: count ==3417 [2024-12-31 15:03:21] Production.ERROR: pbx CDR StartTime 2024-12-31 12:03:05 - End Time 2024-12-31 15:03:05 [2024-12-31 15:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144335', 'tblTempUsageDetail_20' ) start [2024-12-31 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144335', 'tblTempUsageDetail_20' ) end [2024-12-31 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144335', 'tblTempVendorCDR_20' ) start [2024-12-31 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144335', 'tblTempVendorCDR_20' ) end [2024-12-31 15:03:21] Production.INFO: ProcessCDR(1,14144335,1,1,2) [2024-12-31 15:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144335', 'tblTempUsageDetail_20' ) start [2024-12-31 15:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144335', 'tblTempUsageDetail_20' ) end [2024-12-31 15:03:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:03:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:03:26] Production.INFO: ==803== Releasing lock... [2024-12-31 15:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:03:26] Production.INFO: 54.5 MB #Memory Used# [2024-12-31 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:04:05 [end_date_ymd] => 2024-12-31 15:04:05 [RateCDR] => 1 ) [2024-12-31 15:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:04:05' and `end` < '2024-12-31 15:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:04:21] Production.INFO: count ==3415 [2024-12-31 15:04:22] Production.ERROR: pbx CDR StartTime 2024-12-31 12:04:05 - End Time 2024-12-31 15:04:05 [2024-12-31 15:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144340', 'tblTempUsageDetail_20' ) start [2024-12-31 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144340', 'tblTempUsageDetail_20' ) end [2024-12-31 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144340', 'tblTempVendorCDR_20' ) start [2024-12-31 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144340', 'tblTempVendorCDR_20' ) end [2024-12-31 15:04:22] Production.INFO: ProcessCDR(1,14144340,1,1,2) [2024-12-31 15:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144340', 'tblTempUsageDetail_20' ) start [2024-12-31 15:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144340', 'tblTempUsageDetail_20' ) end [2024-12-31 15:04:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:04:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:04:27] Production.INFO: ==936== Releasing lock... [2024-12-31 15:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:04:27] Production.INFO: 54 MB #Memory Used# [2024-12-31 15:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:05:04 [end_date_ymd] => 2024-12-31 15:05:04 [RateCDR] => 1 ) [2024-12-31 15:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:05:04' and `end` < '2024-12-31 15:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:05:17] Production.INFO: count ==3425 [2024-12-31 15:05:18] Production.ERROR: pbx CDR StartTime 2024-12-31 12:05:04 - End Time 2024-12-31 15:05:04 [2024-12-31 15:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144345', 'tblTempUsageDetail_20' ) start [2024-12-31 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144345', 'tblTempUsageDetail_20' ) end [2024-12-31 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144345', 'tblTempVendorCDR_20' ) start [2024-12-31 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144345', 'tblTempVendorCDR_20' ) end [2024-12-31 15:05:19] Production.INFO: ProcessCDR(1,14144345,1,1,2) [2024-12-31 15:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144345', 'tblTempUsageDetail_20' ) start [2024-12-31 15:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144345', 'tblTempUsageDetail_20' ) end [2024-12-31 15:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:05:22] Production.INFO: ==1144== Releasing lock... [2024-12-31 15:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:05:22] Production.INFO: 54 MB #Memory Used# [2024-12-31 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:06:05 [end_date_ymd] => 2024-12-31 15:06:05 [RateCDR] => 1 ) [2024-12-31 15:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:06:05' and `end` < '2024-12-31 15:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:06:18] Production.INFO: count ==3412 [2024-12-31 15:06:19] Production.ERROR: pbx CDR StartTime 2024-12-31 12:06:05 - End Time 2024-12-31 15:06:05 [2024-12-31 15:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144350', 'tblTempUsageDetail_20' ) start [2024-12-31 15:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144350', 'tblTempUsageDetail_20' ) end [2024-12-31 15:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144350', 'tblTempVendorCDR_20' ) start [2024-12-31 15:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144350', 'tblTempVendorCDR_20' ) end [2024-12-31 15:06:20] Production.INFO: ProcessCDR(1,14144350,1,1,2) [2024-12-31 15:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144350', 'tblTempUsageDetail_20' ) start [2024-12-31 15:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144350', 'tblTempUsageDetail_20' ) end [2024-12-31 15:06:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:06:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:06:24] Production.INFO: ==1289== Releasing lock... [2024-12-31 15:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:06:24] Production.INFO: 53.75 MB #Memory Used# [2024-12-31 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:07:05 [end_date_ymd] => 2024-12-31 15:07:05 [RateCDR] => 1 ) [2024-12-31 15:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:07:05' and `end` < '2024-12-31 15:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:07:19] Production.INFO: count ==3420 [2024-12-31 15:07:20] Production.ERROR: pbx CDR StartTime 2024-12-31 12:07:05 - End Time 2024-12-31 15:07:05 [2024-12-31 15:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144355', 'tblTempUsageDetail_20' ) start [2024-12-31 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144355', 'tblTempUsageDetail_20' ) end [2024-12-31 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144355', 'tblTempVendorCDR_20' ) start [2024-12-31 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144355', 'tblTempVendorCDR_20' ) end [2024-12-31 15:07:20] Production.INFO: ProcessCDR(1,14144355,1,1,2) [2024-12-31 15:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144355', 'tblTempUsageDetail_20' ) start [2024-12-31 15:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144355', 'tblTempUsageDetail_20' ) end [2024-12-31 15:07:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:07:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:07:24] Production.INFO: ==1423== Releasing lock... [2024-12-31 15:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:07:24] Production.INFO: 53.75 MB #Memory Used# [2024-12-31 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:08:05 [end_date_ymd] => 2024-12-31 15:08:05 [RateCDR] => 1 ) [2024-12-31 15:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:08:05' and `end` < '2024-12-31 15:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:08:18] Production.INFO: count ==3420 [2024-12-31 15:08:19] Production.ERROR: pbx CDR StartTime 2024-12-31 12:08:05 - End Time 2024-12-31 15:08:05 [2024-12-31 15:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144360', 'tblTempUsageDetail_20' ) start [2024-12-31 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144360', 'tblTempUsageDetail_20' ) end [2024-12-31 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144360', 'tblTempVendorCDR_20' ) start [2024-12-31 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144360', 'tblTempVendorCDR_20' ) end [2024-12-31 15:08:19] Production.INFO: ProcessCDR(1,14144360,1,1,2) [2024-12-31 15:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144360', 'tblTempUsageDetail_20' ) start [2024-12-31 15:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144360', 'tblTempUsageDetail_20' ) end [2024-12-31 15:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:08:22] Production.INFO: ==1666== Releasing lock... [2024-12-31 15:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:08:22] Production.INFO: 53.75 MB #Memory Used# [2024-12-31 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:09:05 [end_date_ymd] => 2024-12-31 15:09:05 [RateCDR] => 1 ) [2024-12-31 15:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:09:05' and `end` < '2024-12-31 15:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:09:19] Production.INFO: count ==3424 [2024-12-31 15:09:21] Production.ERROR: pbx CDR StartTime 2024-12-31 12:09:05 - End Time 2024-12-31 15:09:05 [2024-12-31 15:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144365', 'tblTempUsageDetail_20' ) start [2024-12-31 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144365', 'tblTempUsageDetail_20' ) end [2024-12-31 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144365', 'tblTempVendorCDR_20' ) start [2024-12-31 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144365', 'tblTempVendorCDR_20' ) end [2024-12-31 15:09:21] Production.INFO: ProcessCDR(1,14144365,1,1,2) [2024-12-31 15:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144365', 'tblTempUsageDetail_20' ) start [2024-12-31 15:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144365', 'tblTempUsageDetail_20' ) end [2024-12-31 15:09:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:09:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:09:24] Production.INFO: ==1795== Releasing lock... [2024-12-31 15:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:09:24] Production.INFO: 55 MB #Memory Used# [2024-12-31 15:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:10:05 [end_date_ymd] => 2024-12-31 15:10:05 [RateCDR] => 1 ) [2024-12-31 15:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:10:05' and `end` < '2024-12-31 15:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:10:18] Production.INFO: count ==3436 [2024-12-31 15:10:19] Production.ERROR: pbx CDR StartTime 2024-12-31 12:10:05 - End Time 2024-12-31 15:10:05 [2024-12-31 15:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144371', 'tblTempUsageDetail_20' ) start [2024-12-31 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144371', 'tblTempUsageDetail_20' ) end [2024-12-31 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144371', 'tblTempVendorCDR_20' ) start [2024-12-31 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144371', 'tblTempVendorCDR_20' ) end [2024-12-31 15:10:20] Production.INFO: ProcessCDR(1,14144371,1,1,2) [2024-12-31 15:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144371', 'tblTempUsageDetail_20' ) start [2024-12-31 15:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144371', 'tblTempUsageDetail_20' ) end [2024-12-31 15:10:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:10:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:10:24] Production.INFO: ==1928== Releasing lock... [2024-12-31 15:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:10:24] Production.INFO: 54.75 MB #Memory Used# [2024-12-31 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:11:05 [end_date_ymd] => 2024-12-31 15:11:05 [RateCDR] => 1 ) [2024-12-31 15:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:11:05' and `end` < '2024-12-31 15:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:11:18] Production.INFO: count ==3424 [2024-12-31 15:11:19] Production.ERROR: pbx CDR StartTime 2024-12-31 12:11:05 - End Time 2024-12-31 15:11:05 [2024-12-31 15:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144376', 'tblTempUsageDetail_20' ) start [2024-12-31 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144376', 'tblTempUsageDetail_20' ) end [2024-12-31 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144376', 'tblTempVendorCDR_20' ) start [2024-12-31 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144376', 'tblTempVendorCDR_20' ) end [2024-12-31 15:11:19] Production.INFO: ProcessCDR(1,14144376,1,1,2) [2024-12-31 15:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144376', 'tblTempUsageDetail_20' ) start [2024-12-31 15:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144376', 'tblTempUsageDetail_20' ) end [2024-12-31 15:11:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:11:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:11:23] Production.INFO: ==2055== Releasing lock... [2024-12-31 15:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:11:23] Production.INFO: 54.25 MB #Memory Used# [2024-12-31 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:12:05 [end_date_ymd] => 2024-12-31 15:12:05 [RateCDR] => 1 ) [2024-12-31 15:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:12:05' and `end` < '2024-12-31 15:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:12:19] Production.INFO: count ==3430 [2024-12-31 15:12:20] Production.ERROR: pbx CDR StartTime 2024-12-31 12:12:05 - End Time 2024-12-31 15:12:05 [2024-12-31 15:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144381', 'tblTempUsageDetail_20' ) start [2024-12-31 15:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144381', 'tblTempUsageDetail_20' ) end [2024-12-31 15:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144381', 'tblTempVendorCDR_20' ) start [2024-12-31 15:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144381', 'tblTempVendorCDR_20' ) end [2024-12-31 15:12:20] Production.INFO: ProcessCDR(1,14144381,1,1,2) [2024-12-31 15:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144381', 'tblTempUsageDetail_20' ) start [2024-12-31 15:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144381', 'tblTempUsageDetail_20' ) end [2024-12-31 15:12:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:12:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:12:24] Production.INFO: ==2251== Releasing lock... [2024-12-31 15:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:12:24] Production.INFO: 53.75 MB #Memory Used# [2024-12-31 15:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:13:04 [end_date_ymd] => 2024-12-31 15:13:04 [RateCDR] => 1 ) [2024-12-31 15:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:13:04' and `end` < '2024-12-31 15:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:13:18] Production.INFO: count ==3448 [2024-12-31 15:13:20] Production.ERROR: pbx CDR StartTime 2024-12-31 12:13:04 - End Time 2024-12-31 15:13:04 [2024-12-31 15:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144386', 'tblTempUsageDetail_20' ) start [2024-12-31 15:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144386', 'tblTempUsageDetail_20' ) end [2024-12-31 15:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144386', 'tblTempVendorCDR_20' ) start [2024-12-31 15:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144386', 'tblTempVendorCDR_20' ) end [2024-12-31 15:13:20] Production.INFO: ProcessCDR(1,14144386,1,1,2) [2024-12-31 15:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144386', 'tblTempUsageDetail_20' ) start [2024-12-31 15:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144386', 'tblTempUsageDetail_20' ) end [2024-12-31 15:13:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:13:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:13:23] Production.INFO: ==2369== Releasing lock... [2024-12-31 15:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:13:23] Production.INFO: 54.75 MB #Memory Used# [2024-12-31 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:14:05 [end_date_ymd] => 2024-12-31 15:14:05 [RateCDR] => 1 ) [2024-12-31 15:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:14:05' and `end` < '2024-12-31 15:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:14:19] Production.INFO: count ==3478 [2024-12-31 15:14:21] Production.ERROR: pbx CDR StartTime 2024-12-31 12:14:05 - End Time 2024-12-31 15:14:05 [2024-12-31 15:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144391', 'tblTempUsageDetail_20' ) start [2024-12-31 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144391', 'tblTempUsageDetail_20' ) end [2024-12-31 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144391', 'tblTempVendorCDR_20' ) start [2024-12-31 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144391', 'tblTempVendorCDR_20' ) end [2024-12-31 15:14:21] Production.INFO: ProcessCDR(1,14144391,1,1,2) [2024-12-31 15:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144391', 'tblTempUsageDetail_20' ) start [2024-12-31 15:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144391', 'tblTempUsageDetail_20' ) end [2024-12-31 15:14:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:14:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:14:24] Production.INFO: ==2533== Releasing lock... [2024-12-31 15:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:14:24] Production.INFO: 54 MB #Memory Used# [2024-12-31 15:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:15:04 [end_date_ymd] => 2024-12-31 15:15:04 [RateCDR] => 1 ) [2024-12-31 15:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:15:04' and `end` < '2024-12-31 15:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:15:20] Production.INFO: count ==3502 [2024-12-31 15:15:21] Production.ERROR: pbx CDR StartTime 2024-12-31 12:15:04 - End Time 2024-12-31 15:15:04 [2024-12-31 15:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144396', 'tblTempUsageDetail_20' ) start [2024-12-31 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144396', 'tblTempUsageDetail_20' ) end [2024-12-31 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144396', 'tblTempVendorCDR_20' ) start [2024-12-31 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144396', 'tblTempVendorCDR_20' ) end [2024-12-31 15:15:22] Production.INFO: ProcessCDR(1,14144396,1,1,2) [2024-12-31 15:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144396', 'tblTempUsageDetail_20' ) start [2024-12-31 15:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144396', 'tblTempUsageDetail_20' ) end [2024-12-31 15:15:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:15:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:15:25] Production.INFO: ==2717== Releasing lock... [2024-12-31 15:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:15:25] Production.INFO: 54.5 MB #Memory Used# [2024-12-31 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:16:05 [end_date_ymd] => 2024-12-31 15:16:05 [RateCDR] => 1 ) [2024-12-31 15:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:16:05' and `end` < '2024-12-31 15:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:16:21] Production.INFO: count ==3528 [2024-12-31 15:16:22] Production.ERROR: pbx CDR StartTime 2024-12-31 12:16:05 - End Time 2024-12-31 15:16:05 [2024-12-31 15:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144401', 'tblTempUsageDetail_20' ) start [2024-12-31 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144401', 'tblTempUsageDetail_20' ) end [2024-12-31 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144401', 'tblTempVendorCDR_20' ) start [2024-12-31 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144401', 'tblTempVendorCDR_20' ) end [2024-12-31 15:16:23] Production.INFO: ProcessCDR(1,14144401,1,1,2) [2024-12-31 15:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144401', 'tblTempUsageDetail_20' ) start [2024-12-31 15:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144401', 'tblTempUsageDetail_20' ) end [2024-12-31 15:16:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:16:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:16:27] Production.INFO: ==2799== Releasing lock... [2024-12-31 15:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:16:27] Production.INFO: 54.75 MB #Memory Used# [2024-12-31 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:17:05 [end_date_ymd] => 2024-12-31 15:17:05 [RateCDR] => 1 ) [2024-12-31 15:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:17:05' and `end` < '2024-12-31 15:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:17:20] Production.INFO: count ==3524 [2024-12-31 15:17:21] Production.ERROR: pbx CDR StartTime 2024-12-31 12:17:05 - End Time 2024-12-31 15:17:05 [2024-12-31 15:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144406', 'tblTempUsageDetail_20' ) start [2024-12-31 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144406', 'tblTempUsageDetail_20' ) end [2024-12-31 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144406', 'tblTempVendorCDR_20' ) start [2024-12-31 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144406', 'tblTempVendorCDR_20' ) end [2024-12-31 15:17:21] Production.INFO: ProcessCDR(1,14144406,1,1,2) [2024-12-31 15:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144406', 'tblTempUsageDetail_20' ) start [2024-12-31 15:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144406', 'tblTempUsageDetail_20' ) end [2024-12-31 15:17:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:17:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:17:24] Production.INFO: ==2901== Releasing lock... [2024-12-31 15:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:17:24] Production.INFO: 54.5 MB #Memory Used# [2024-12-31 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:18:05 [end_date_ymd] => 2024-12-31 15:18:05 [RateCDR] => 1 ) [2024-12-31 15:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:18:05' and `end` < '2024-12-31 15:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:18:19] Production.INFO: count ==3539 [2024-12-31 15:18:20] Production.ERROR: pbx CDR StartTime 2024-12-31 12:18:05 - End Time 2024-12-31 15:18:05 [2024-12-31 15:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144411', 'tblTempUsageDetail_20' ) start [2024-12-31 15:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144411', 'tblTempUsageDetail_20' ) end [2024-12-31 15:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144411', 'tblTempVendorCDR_20' ) start [2024-12-31 15:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144411', 'tblTempVendorCDR_20' ) end [2024-12-31 15:18:20] Production.INFO: ProcessCDR(1,14144411,1,1,2) [2024-12-31 15:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144411', 'tblTempUsageDetail_20' ) start [2024-12-31 15:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144411', 'tblTempUsageDetail_20' ) end [2024-12-31 15:18:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:18:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:18:25] Production.INFO: ==2986== Releasing lock... [2024-12-31 15:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:18:25] Production.INFO: 55 MB #Memory Used# [2024-12-31 15:19:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:19:06 [end_date_ymd] => 2024-12-31 15:19:06 [RateCDR] => 1 ) [2024-12-31 15:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:19:06' and `end` < '2024-12-31 15:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:19:19] Production.INFO: count ==3509 [2024-12-31 15:19:20] Production.ERROR: pbx CDR StartTime 2024-12-31 12:19:06 - End Time 2024-12-31 15:19:06 [2024-12-31 15:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144416', 'tblTempUsageDetail_20' ) start [2024-12-31 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144416', 'tblTempUsageDetail_20' ) end [2024-12-31 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144416', 'tblTempVendorCDR_20' ) start [2024-12-31 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144416', 'tblTempVendorCDR_20' ) end [2024-12-31 15:19:20] Production.INFO: ProcessCDR(1,14144416,1,1,2) [2024-12-31 15:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144416', 'tblTempUsageDetail_20' ) start [2024-12-31 15:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144416', 'tblTempUsageDetail_20' ) end [2024-12-31 15:19:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:19:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:19:23] Production.INFO: ==3104== Releasing lock... [2024-12-31 15:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:19:23] Production.INFO: 54.5 MB #Memory Used# [2024-12-31 15:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:20:05 [end_date_ymd] => 2024-12-31 15:20:05 [RateCDR] => 1 ) [2024-12-31 15:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:20:05' and `end` < '2024-12-31 15:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:20:18] Production.INFO: count ==3517 [2024-12-31 15:20:20] Production.ERROR: pbx CDR StartTime 2024-12-31 12:20:05 - End Time 2024-12-31 15:20:05 [2024-12-31 15:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144422', 'tblTempUsageDetail_20' ) start [2024-12-31 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144422', 'tblTempUsageDetail_20' ) end [2024-12-31 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144422', 'tblTempVendorCDR_20' ) start [2024-12-31 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144422', 'tblTempVendorCDR_20' ) end [2024-12-31 15:20:20] Production.INFO: ProcessCDR(1,14144422,1,1,2) [2024-12-31 15:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144422', 'tblTempUsageDetail_20' ) start [2024-12-31 15:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144422', 'tblTempUsageDetail_20' ) end [2024-12-31 15:20:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:20:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:20:24] Production.INFO: ==3188== Releasing lock... [2024-12-31 15:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:20:24] Production.INFO: 55 MB #Memory Used# [2024-12-31 15:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:21:04 [end_date_ymd] => 2024-12-31 15:21:04 [RateCDR] => 1 ) [2024-12-31 15:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:21:04' and `end` < '2024-12-31 15:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:21:18] Production.INFO: count ==3505 [2024-12-31 15:21:19] Production.ERROR: pbx CDR StartTime 2024-12-31 12:21:04 - End Time 2024-12-31 15:21:04 [2024-12-31 15:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144427', 'tblTempUsageDetail_20' ) start [2024-12-31 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144427', 'tblTempUsageDetail_20' ) end [2024-12-31 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144427', 'tblTempVendorCDR_20' ) start [2024-12-31 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144427', 'tblTempVendorCDR_20' ) end [2024-12-31 15:21:19] Production.INFO: ProcessCDR(1,14144427,1,1,2) [2024-12-31 15:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144427', 'tblTempUsageDetail_20' ) start [2024-12-31 15:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144427', 'tblTempUsageDetail_20' ) end [2024-12-31 15:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:21:22] Production.INFO: ==3275== Releasing lock... [2024-12-31 15:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:21:22] Production.INFO: 54.75 MB #Memory Used# [2024-12-31 15:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:22:04 [end_date_ymd] => 2024-12-31 15:22:04 [RateCDR] => 1 ) [2024-12-31 15:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:22:04' and `end` < '2024-12-31 15:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:22:18] Production.INFO: count ==3478 [2024-12-31 15:22:19] Production.ERROR: pbx CDR StartTime 2024-12-31 12:22:04 - End Time 2024-12-31 15:22:04 [2024-12-31 15:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144432', 'tblTempUsageDetail_20' ) start [2024-12-31 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144432', 'tblTempUsageDetail_20' ) end [2024-12-31 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144432', 'tblTempVendorCDR_20' ) start [2024-12-31 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144432', 'tblTempVendorCDR_20' ) end [2024-12-31 15:22:19] Production.INFO: ProcessCDR(1,14144432,1,1,2) [2024-12-31 15:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144432', 'tblTempUsageDetail_20' ) start [2024-12-31 15:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144432', 'tblTempUsageDetail_20' ) end [2024-12-31 15:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:22:22] Production.INFO: ==3359== Releasing lock... [2024-12-31 15:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:22:22] Production.INFO: 54 MB #Memory Used# [2024-12-31 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:23:05 [end_date_ymd] => 2024-12-31 15:23:05 [RateCDR] => 1 ) [2024-12-31 15:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:23:05' and `end` < '2024-12-31 15:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:23:18] Production.INFO: count ==3454 [2024-12-31 15:23:19] Production.ERROR: pbx CDR StartTime 2024-12-31 12:23:05 - End Time 2024-12-31 15:23:05 [2024-12-31 15:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144437', 'tblTempUsageDetail_20' ) start [2024-12-31 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144437', 'tblTempUsageDetail_20' ) end [2024-12-31 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144437', 'tblTempVendorCDR_20' ) start [2024-12-31 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144437', 'tblTempVendorCDR_20' ) end [2024-12-31 15:23:19] Production.INFO: ProcessCDR(1,14144437,1,1,2) [2024-12-31 15:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144437', 'tblTempUsageDetail_20' ) start [2024-12-31 15:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144437', 'tblTempUsageDetail_20' ) end [2024-12-31 15:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:23:22] Production.INFO: ==3447== Releasing lock... [2024-12-31 15:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:23:22] Production.INFO: 54.25 MB #Memory Used# [2024-12-31 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:24:05 [end_date_ymd] => 2024-12-31 15:24:05 [RateCDR] => 1 ) [2024-12-31 15:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:24:05' and `end` < '2024-12-31 15:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:24:18] Production.INFO: count ==3459 [2024-12-31 15:24:20] Production.ERROR: pbx CDR StartTime 2024-12-31 12:24:05 - End Time 2024-12-31 15:24:05 [2024-12-31 15:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144442', 'tblTempUsageDetail_20' ) start [2024-12-31 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144442', 'tblTempUsageDetail_20' ) end [2024-12-31 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144442', 'tblTempVendorCDR_20' ) start [2024-12-31 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144442', 'tblTempVendorCDR_20' ) end [2024-12-31 15:24:20] Production.INFO: ProcessCDR(1,14144442,1,1,2) [2024-12-31 15:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144442', 'tblTempUsageDetail_20' ) start [2024-12-31 15:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144442', 'tblTempUsageDetail_20' ) end [2024-12-31 15:24:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:24:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:24:24] Production.INFO: ==3566== Releasing lock... [2024-12-31 15:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:24:24] Production.INFO: 54.25 MB #Memory Used# [2024-12-31 15:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:25:04 [end_date_ymd] => 2024-12-31 15:25:04 [RateCDR] => 1 ) [2024-12-31 15:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:25:04' and `end` < '2024-12-31 15:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:25:18] Production.INFO: count ==3455 [2024-12-31 15:25:19] Production.ERROR: pbx CDR StartTime 2024-12-31 12:25:04 - End Time 2024-12-31 15:25:04 [2024-12-31 15:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144447', 'tblTempUsageDetail_20' ) start [2024-12-31 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144447', 'tblTempUsageDetail_20' ) end [2024-12-31 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144447', 'tblTempVendorCDR_20' ) start [2024-12-31 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144447', 'tblTempVendorCDR_20' ) end [2024-12-31 15:25:19] Production.INFO: ProcessCDR(1,14144447,1,1,2) [2024-12-31 15:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144447', 'tblTempUsageDetail_20' ) start [2024-12-31 15:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144447', 'tblTempUsageDetail_20' ) end [2024-12-31 15:25:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:25:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:25:23] Production.INFO: ==3656== Releasing lock... [2024-12-31 15:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:25:23] Production.INFO: 55.25 MB #Memory Used# [2024-12-31 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:26:05 [end_date_ymd] => 2024-12-31 15:26:05 [RateCDR] => 1 ) [2024-12-31 15:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:26:05' and `end` < '2024-12-31 15:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:26:20] Production.INFO: count ==3457 [2024-12-31 15:26:21] Production.ERROR: pbx CDR StartTime 2024-12-31 12:26:05 - End Time 2024-12-31 15:26:05 [2024-12-31 15:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144452', 'tblTempUsageDetail_20' ) start [2024-12-31 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144452', 'tblTempUsageDetail_20' ) end [2024-12-31 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144452', 'tblTempVendorCDR_20' ) start [2024-12-31 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144452', 'tblTempVendorCDR_20' ) end [2024-12-31 15:26:21] Production.INFO: ProcessCDR(1,14144452,1,1,2) [2024-12-31 15:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144452', 'tblTempUsageDetail_20' ) start [2024-12-31 15:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144452', 'tblTempUsageDetail_20' ) end [2024-12-31 15:26:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:26:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:26:26] Production.INFO: ==3739== Releasing lock... [2024-12-31 15:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:26:26] Production.INFO: 54 MB #Memory Used# [2024-12-31 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:27:05 [end_date_ymd] => 2024-12-31 15:27:05 [RateCDR] => 1 ) [2024-12-31 15:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:27:05' and `end` < '2024-12-31 15:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:27:18] Production.INFO: count ==3447 [2024-12-31 15:27:19] Production.ERROR: pbx CDR StartTime 2024-12-31 12:27:05 - End Time 2024-12-31 15:27:05 [2024-12-31 15:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144457', 'tblTempUsageDetail_20' ) start [2024-12-31 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144457', 'tblTempUsageDetail_20' ) end [2024-12-31 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144457', 'tblTempVendorCDR_20' ) start [2024-12-31 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144457', 'tblTempVendorCDR_20' ) end [2024-12-31 15:27:19] Production.INFO: ProcessCDR(1,14144457,1,1,2) [2024-12-31 15:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144457', 'tblTempUsageDetail_20' ) start [2024-12-31 15:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144457', 'tblTempUsageDetail_20' ) end [2024-12-31 15:27:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:27:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:27:24] Production.INFO: ==3826== Releasing lock... [2024-12-31 15:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:27:24] Production.INFO: 54.25 MB #Memory Used# [2024-12-31 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:28:05 [end_date_ymd] => 2024-12-31 15:28:05 [RateCDR] => 1 ) [2024-12-31 15:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:28:05' and `end` < '2024-12-31 15:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:28:18] Production.INFO: count ==3435 [2024-12-31 15:28:19] Production.ERROR: pbx CDR StartTime 2024-12-31 12:28:05 - End Time 2024-12-31 15:28:05 [2024-12-31 15:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144462', 'tblTempUsageDetail_20' ) start [2024-12-31 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144462', 'tblTempUsageDetail_20' ) end [2024-12-31 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144462', 'tblTempVendorCDR_20' ) start [2024-12-31 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144462', 'tblTempVendorCDR_20' ) end [2024-12-31 15:28:19] Production.INFO: ProcessCDR(1,14144462,1,1,2) [2024-12-31 15:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144462', 'tblTempUsageDetail_20' ) start [2024-12-31 15:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144462', 'tblTempUsageDetail_20' ) end [2024-12-31 15:28:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:28:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:28:23] Production.INFO: ==3917== Releasing lock... [2024-12-31 15:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:28:23] Production.INFO: 53.75 MB #Memory Used# [2024-12-31 15:29:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:29:06 [end_date_ymd] => 2024-12-31 15:29:06 [RateCDR] => 1 ) [2024-12-31 15:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:29:06' and `end` < '2024-12-31 15:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:29:19] Production.INFO: count ==3434 [2024-12-31 15:29:20] Production.ERROR: pbx CDR StartTime 2024-12-31 12:29:06 - End Time 2024-12-31 15:29:06 [2024-12-31 15:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144467', 'tblTempUsageDetail_20' ) start [2024-12-31 15:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144467', 'tblTempUsageDetail_20' ) end [2024-12-31 15:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144467', 'tblTempVendorCDR_20' ) start [2024-12-31 15:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144467', 'tblTempVendorCDR_20' ) end [2024-12-31 15:29:20] Production.INFO: ProcessCDR(1,14144467,1,1,2) [2024-12-31 15:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144467', 'tblTempUsageDetail_20' ) start [2024-12-31 15:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144467', 'tblTempUsageDetail_20' ) end [2024-12-31 15:29:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:29:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:29:23] Production.INFO: ==4009== Releasing lock... [2024-12-31 15:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:29:23] Production.INFO: 55 MB #Memory Used# [2024-12-31 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:30:06 [end_date_ymd] => 2024-12-31 15:30:06 [RateCDR] => 1 ) [2024-12-31 15:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:30:06' and `end` < '2024-12-31 15:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:30:19] Production.INFO: count ==3427 [2024-12-31 15:30:20] Production.ERROR: pbx CDR StartTime 2024-12-31 12:30:06 - End Time 2024-12-31 15:30:06 [2024-12-31 15:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144473', 'tblTempUsageDetail_20' ) start [2024-12-31 15:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144473', 'tblTempUsageDetail_20' ) end [2024-12-31 15:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144473', 'tblTempVendorCDR_20' ) start [2024-12-31 15:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144473', 'tblTempVendorCDR_20' ) end [2024-12-31 15:30:21] Production.INFO: ProcessCDR(1,14144473,1,1,2) [2024-12-31 15:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144473', 'tblTempUsageDetail_20' ) start [2024-12-31 15:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144473', 'tblTempUsageDetail_20' ) end [2024-12-31 15:30:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:30:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:30:25] Production.INFO: ==4143== Releasing lock... [2024-12-31 15:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:30:25] Production.INFO: 53.75 MB #Memory Used# [2024-12-31 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:31:05 [end_date_ymd] => 2024-12-31 15:31:05 [RateCDR] => 1 ) [2024-12-31 15:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:31:05' and `end` < '2024-12-31 15:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:31:19] Production.INFO: count ==3402 [2024-12-31 15:31:20] Production.ERROR: pbx CDR StartTime 2024-12-31 12:31:05 - End Time 2024-12-31 15:31:05 [2024-12-31 15:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144478', 'tblTempUsageDetail_20' ) start [2024-12-31 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144478', 'tblTempUsageDetail_20' ) end [2024-12-31 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144478', 'tblTempVendorCDR_20' ) start [2024-12-31 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144478', 'tblTempVendorCDR_20' ) end [2024-12-31 15:31:21] Production.INFO: ProcessCDR(1,14144478,1,1,2) [2024-12-31 15:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144478', 'tblTempUsageDetail_20' ) start [2024-12-31 15:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144478', 'tblTempUsageDetail_20' ) end [2024-12-31 15:31:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:31:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:31:24] Production.INFO: ==4227== Releasing lock... [2024-12-31 15:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:31:24] Production.INFO: 53.5 MB #Memory Used# [2024-12-31 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:32:05 [end_date_ymd] => 2024-12-31 15:32:05 [RateCDR] => 1 ) [2024-12-31 15:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:32:05' and `end` < '2024-12-31 15:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:32:18] Production.INFO: count ==3397 [2024-12-31 15:32:19] Production.ERROR: pbx CDR StartTime 2024-12-31 12:32:05 - End Time 2024-12-31 15:32:05 [2024-12-31 15:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144483', 'tblTempUsageDetail_20' ) start [2024-12-31 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144483', 'tblTempUsageDetail_20' ) end [2024-12-31 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144483', 'tblTempVendorCDR_20' ) start [2024-12-31 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144483', 'tblTempVendorCDR_20' ) end [2024-12-31 15:32:19] Production.INFO: ProcessCDR(1,14144483,1,1,2) [2024-12-31 15:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144483', 'tblTempUsageDetail_20' ) start [2024-12-31 15:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144483', 'tblTempUsageDetail_20' ) end [2024-12-31 15:32:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:32:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:32:24] Production.INFO: ==4308== Releasing lock... [2024-12-31 15:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:32:24] Production.INFO: 54.25 MB #Memory Used# [2024-12-31 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:33:05 [end_date_ymd] => 2024-12-31 15:33:05 [RateCDR] => 1 ) [2024-12-31 15:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:33:05' and `end` < '2024-12-31 15:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:33:19] Production.INFO: count ==3388 [2024-12-31 15:33:20] Production.ERROR: pbx CDR StartTime 2024-12-31 12:33:05 - End Time 2024-12-31 15:33:05 [2024-12-31 15:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144488', 'tblTempUsageDetail_20' ) start [2024-12-31 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144488', 'tblTempUsageDetail_20' ) end [2024-12-31 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144488', 'tblTempVendorCDR_20' ) start [2024-12-31 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144488', 'tblTempVendorCDR_20' ) end [2024-12-31 15:33:20] Production.INFO: ProcessCDR(1,14144488,1,1,2) [2024-12-31 15:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144488', 'tblTempUsageDetail_20' ) start [2024-12-31 15:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144488', 'tblTempUsageDetail_20' ) end [2024-12-31 15:33:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:33:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:33:25] Production.INFO: ==4390== Releasing lock... [2024-12-31 15:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:33:25] Production.INFO: 53.5 MB #Memory Used# [2024-12-31 15:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:34:04 [end_date_ymd] => 2024-12-31 15:34:04 [RateCDR] => 1 ) [2024-12-31 15:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:34:04' and `end` < '2024-12-31 15:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:34:18] Production.INFO: count ==3379 [2024-12-31 15:34:19] Production.ERROR: pbx CDR StartTime 2024-12-31 12:34:04 - End Time 2024-12-31 15:34:04 [2024-12-31 15:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144493', 'tblTempUsageDetail_20' ) start [2024-12-31 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144493', 'tblTempUsageDetail_20' ) end [2024-12-31 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144493', 'tblTempVendorCDR_20' ) start [2024-12-31 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144493', 'tblTempVendorCDR_20' ) end [2024-12-31 15:34:19] Production.INFO: ProcessCDR(1,14144493,1,1,2) [2024-12-31 15:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144493', 'tblTempUsageDetail_20' ) start [2024-12-31 15:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144493', 'tblTempUsageDetail_20' ) end [2024-12-31 15:34:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:34:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:34:23] Production.INFO: ==4471== Releasing lock... [2024-12-31 15:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:34:23] Production.INFO: 53.25 MB #Memory Used# [2024-12-31 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:35:05 [end_date_ymd] => 2024-12-31 15:35:05 [RateCDR] => 1 ) [2024-12-31 15:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:35:05' and `end` < '2024-12-31 15:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:35:18] Production.INFO: count ==3387 [2024-12-31 15:35:20] Production.ERROR: pbx CDR StartTime 2024-12-31 12:35:05 - End Time 2024-12-31 15:35:05 [2024-12-31 15:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144498', 'tblTempUsageDetail_20' ) start [2024-12-31 15:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144498', 'tblTempUsageDetail_20' ) end [2024-12-31 15:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144498', 'tblTempVendorCDR_20' ) start [2024-12-31 15:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144498', 'tblTempVendorCDR_20' ) end [2024-12-31 15:35:20] Production.INFO: ProcessCDR(1,14144498,1,1,2) [2024-12-31 15:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144498', 'tblTempUsageDetail_20' ) start [2024-12-31 15:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144498', 'tblTempUsageDetail_20' ) end [2024-12-31 15:35:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:35:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:35:23] Production.INFO: ==4555== Releasing lock... [2024-12-31 15:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:35:23] Production.INFO: 53.25 MB #Memory Used# [2024-12-31 15:36:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:36:06 [end_date_ymd] => 2024-12-31 15:36:06 [RateCDR] => 1 ) [2024-12-31 15:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:36:06' and `end` < '2024-12-31 15:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:36:19] Production.INFO: count ==3385 [2024-12-31 15:36:20] Production.ERROR: pbx CDR StartTime 2024-12-31 12:36:06 - End Time 2024-12-31 15:36:06 [2024-12-31 15:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144503', 'tblTempUsageDetail_20' ) start [2024-12-31 15:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144503', 'tblTempUsageDetail_20' ) end [2024-12-31 15:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144503', 'tblTempVendorCDR_20' ) start [2024-12-31 15:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144503', 'tblTempVendorCDR_20' ) end [2024-12-31 15:36:20] Production.INFO: ProcessCDR(1,14144503,1,1,2) [2024-12-31 15:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144503', 'tblTempUsageDetail_20' ) start [2024-12-31 15:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144503', 'tblTempUsageDetail_20' ) end [2024-12-31 15:36:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:36:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:36:23] Production.INFO: ==4685== Releasing lock... [2024-12-31 15:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:36:23] Production.INFO: 53.5 MB #Memory Used# [2024-12-31 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:37:05 [end_date_ymd] => 2024-12-31 15:37:05 [RateCDR] => 1 ) [2024-12-31 15:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:37:05' and `end` < '2024-12-31 15:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:37:18] Production.INFO: count ==3382 [2024-12-31 15:37:20] Production.ERROR: pbx CDR StartTime 2024-12-31 12:37:05 - End Time 2024-12-31 15:37:05 [2024-12-31 15:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144508', 'tblTempUsageDetail_20' ) start [2024-12-31 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144508', 'tblTempUsageDetail_20' ) end [2024-12-31 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144508', 'tblTempVendorCDR_20' ) start [2024-12-31 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144508', 'tblTempVendorCDR_20' ) end [2024-12-31 15:37:20] Production.INFO: ProcessCDR(1,14144508,1,1,2) [2024-12-31 15:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144508', 'tblTempUsageDetail_20' ) start [2024-12-31 15:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144508', 'tblTempUsageDetail_20' ) end [2024-12-31 15:37:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:37:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:37:23] Production.INFO: ==4766== Releasing lock... [2024-12-31 15:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:37:23] Production.INFO: 53.75 MB #Memory Used# [2024-12-31 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:38:05 [end_date_ymd] => 2024-12-31 15:38:05 [RateCDR] => 1 ) [2024-12-31 15:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:38:05' and `end` < '2024-12-31 15:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:38:19] Production.INFO: count ==3373 [2024-12-31 15:38:20] Production.ERROR: pbx CDR StartTime 2024-12-31 12:38:05 - End Time 2024-12-31 15:38:05 [2024-12-31 15:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144513', 'tblTempUsageDetail_20' ) start [2024-12-31 15:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144513', 'tblTempUsageDetail_20' ) end [2024-12-31 15:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144513', 'tblTempVendorCDR_20' ) start [2024-12-31 15:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144513', 'tblTempVendorCDR_20' ) end [2024-12-31 15:38:20] Production.INFO: ProcessCDR(1,14144513,1,1,2) [2024-12-31 15:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144513', 'tblTempUsageDetail_20' ) start [2024-12-31 15:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144513', 'tblTempUsageDetail_20' ) end [2024-12-31 15:38:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:38:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:38:24] Production.INFO: ==4841== Releasing lock... [2024-12-31 15:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:38:24] Production.INFO: 53.25 MB #Memory Used# [2024-12-31 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:39:05 [end_date_ymd] => 2024-12-31 15:39:05 [RateCDR] => 1 ) [2024-12-31 15:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:39:05' and `end` < '2024-12-31 15:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:39:19] Production.INFO: count ==3377 [2024-12-31 15:39:20] Production.ERROR: pbx CDR StartTime 2024-12-31 12:39:05 - End Time 2024-12-31 15:39:05 [2024-12-31 15:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144518', 'tblTempUsageDetail_20' ) start [2024-12-31 15:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144518', 'tblTempUsageDetail_20' ) end [2024-12-31 15:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144518', 'tblTempVendorCDR_20' ) start [2024-12-31 15:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144518', 'tblTempVendorCDR_20' ) end [2024-12-31 15:39:20] Production.INFO: ProcessCDR(1,14144518,1,1,2) [2024-12-31 15:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144518', 'tblTempUsageDetail_20' ) start [2024-12-31 15:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144518', 'tblTempUsageDetail_20' ) end [2024-12-31 15:39:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:39:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:39:25] Production.INFO: ==4922== Releasing lock... [2024-12-31 15:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:39:25] Production.INFO: 53.25 MB #Memory Used# [2024-12-31 15:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:40:05 [end_date_ymd] => 2024-12-31 15:40:05 [RateCDR] => 1 ) [2024-12-31 15:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:40:05' and `end` < '2024-12-31 15:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:40:19] Production.INFO: count ==3369 [2024-12-31 15:40:20] Production.ERROR: pbx CDR StartTime 2024-12-31 12:40:05 - End Time 2024-12-31 15:40:05 [2024-12-31 15:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144523', 'tblTempUsageDetail_20' ) start [2024-12-31 15:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144523', 'tblTempUsageDetail_20' ) end [2024-12-31 15:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144523', 'tblTempVendorCDR_20' ) start [2024-12-31 15:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144523', 'tblTempVendorCDR_20' ) end [2024-12-31 15:40:20] Production.INFO: ProcessCDR(1,14144523,1,1,2) [2024-12-31 15:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144523', 'tblTempUsageDetail_20' ) start [2024-12-31 15:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144523', 'tblTempUsageDetail_20' ) end [2024-12-31 15:40:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:40:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:40:24] Production.INFO: ==5001== Releasing lock... [2024-12-31 15:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:40:24] Production.INFO: 53.25 MB #Memory Used# [2024-12-31 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:41:05 [end_date_ymd] => 2024-12-31 15:41:05 [RateCDR] => 1 ) [2024-12-31 15:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:41:05' and `end` < '2024-12-31 15:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:41:18] Production.INFO: count ==3306 [2024-12-31 15:41:19] Production.ERROR: pbx CDR StartTime 2024-12-31 12:41:05 - End Time 2024-12-31 15:41:05 [2024-12-31 15:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144529', 'tblTempUsageDetail_20' ) start [2024-12-31 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144529', 'tblTempUsageDetail_20' ) end [2024-12-31 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144529', 'tblTempVendorCDR_20' ) start [2024-12-31 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144529', 'tblTempVendorCDR_20' ) end [2024-12-31 15:41:19] Production.INFO: ProcessCDR(1,14144529,1,1,2) [2024-12-31 15:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144529', 'tblTempUsageDetail_20' ) start [2024-12-31 15:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144529', 'tblTempUsageDetail_20' ) end [2024-12-31 15:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:41:22] Production.INFO: ==5078== Releasing lock... [2024-12-31 15:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:41:22] Production.INFO: 53 MB #Memory Used# [2024-12-31 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:42:05 [end_date_ymd] => 2024-12-31 15:42:05 [RateCDR] => 1 ) [2024-12-31 15:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:42:05' and `end` < '2024-12-31 15:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:42:18] Production.INFO: count ==3298 [2024-12-31 15:42:19] Production.ERROR: pbx CDR StartTime 2024-12-31 12:42:05 - End Time 2024-12-31 15:42:05 [2024-12-31 15:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144534', 'tblTempUsageDetail_20' ) start [2024-12-31 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144534', 'tblTempUsageDetail_20' ) end [2024-12-31 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144534', 'tblTempVendorCDR_20' ) start [2024-12-31 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144534', 'tblTempVendorCDR_20' ) end [2024-12-31 15:42:19] Production.INFO: ProcessCDR(1,14144534,1,1,2) [2024-12-31 15:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144534', 'tblTempUsageDetail_20' ) start [2024-12-31 15:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144534', 'tblTempUsageDetail_20' ) end [2024-12-31 15:42:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:42:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:42:24] Production.INFO: ==5155== Releasing lock... [2024-12-31 15:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:42:24] Production.INFO: 53.5 MB #Memory Used# [2024-12-31 15:43:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:43:06 [end_date_ymd] => 2024-12-31 15:43:06 [RateCDR] => 1 ) [2024-12-31 15:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:43:06' and `end` < '2024-12-31 15:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:43:19] Production.INFO: count ==3292 [2024-12-31 15:43:20] Production.ERROR: pbx CDR StartTime 2024-12-31 12:43:06 - End Time 2024-12-31 15:43:06 [2024-12-31 15:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144539', 'tblTempUsageDetail_20' ) start [2024-12-31 15:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144539', 'tblTempUsageDetail_20' ) end [2024-12-31 15:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144539', 'tblTempVendorCDR_20' ) start [2024-12-31 15:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144539', 'tblTempVendorCDR_20' ) end [2024-12-31 15:43:20] Production.INFO: ProcessCDR(1,14144539,1,1,2) [2024-12-31 15:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144539', 'tblTempUsageDetail_20' ) start [2024-12-31 15:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144539', 'tblTempUsageDetail_20' ) end [2024-12-31 15:43:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:43:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:43:23] Production.INFO: ==5234== Releasing lock... [2024-12-31 15:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:43:23] Production.INFO: 52.75 MB #Memory Used# [2024-12-31 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:44:05 [end_date_ymd] => 2024-12-31 15:44:05 [RateCDR] => 1 ) [2024-12-31 15:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:44:05' and `end` < '2024-12-31 15:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:44:19] Production.INFO: count ==3290 [2024-12-31 15:44:20] Production.ERROR: pbx CDR StartTime 2024-12-31 12:44:05 - End Time 2024-12-31 15:44:05 [2024-12-31 15:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144544', 'tblTempUsageDetail_20' ) start [2024-12-31 15:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144544', 'tblTempUsageDetail_20' ) end [2024-12-31 15:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144544', 'tblTempVendorCDR_20' ) start [2024-12-31 15:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144544', 'tblTempVendorCDR_20' ) end [2024-12-31 15:44:20] Production.INFO: ProcessCDR(1,14144544,1,1,2) [2024-12-31 15:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144544', 'tblTempUsageDetail_20' ) start [2024-12-31 15:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144544', 'tblTempUsageDetail_20' ) end [2024-12-31 15:44:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:44:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:44:25] Production.INFO: ==5306== Releasing lock... [2024-12-31 15:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:44:25] Production.INFO: 52.75 MB #Memory Used# [2024-12-31 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:45:05 [end_date_ymd] => 2024-12-31 15:45:05 [RateCDR] => 1 ) [2024-12-31 15:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:45:05' and `end` < '2024-12-31 15:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:45:20] Production.INFO: count ==3287 [2024-12-31 15:45:21] Production.ERROR: pbx CDR StartTime 2024-12-31 12:45:05 - End Time 2024-12-31 15:45:05 [2024-12-31 15:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144549', 'tblTempUsageDetail_20' ) start [2024-12-31 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144549', 'tblTempUsageDetail_20' ) end [2024-12-31 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144549', 'tblTempVendorCDR_20' ) start [2024-12-31 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144549', 'tblTempVendorCDR_20' ) end [2024-12-31 15:45:21] Production.INFO: ProcessCDR(1,14144549,1,1,2) [2024-12-31 15:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144549', 'tblTempUsageDetail_20' ) start [2024-12-31 15:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144549', 'tblTempUsageDetail_20' ) end [2024-12-31 15:45:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:45:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:45:24] Production.INFO: ==5421== Releasing lock... [2024-12-31 15:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:45:24] Production.INFO: 53.75 MB #Memory Used# [2024-12-31 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:46:05 [end_date_ymd] => 2024-12-31 15:46:05 [RateCDR] => 1 ) [2024-12-31 15:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:46:05' and `end` < '2024-12-31 15:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:46:18] Production.INFO: count ==3285 [2024-12-31 15:46:19] Production.ERROR: pbx CDR StartTime 2024-12-31 12:46:05 - End Time 2024-12-31 15:46:05 [2024-12-31 15:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144554', 'tblTempUsageDetail_20' ) start [2024-12-31 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144554', 'tblTempUsageDetail_20' ) end [2024-12-31 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144554', 'tblTempVendorCDR_20' ) start [2024-12-31 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144554', 'tblTempVendorCDR_20' ) end [2024-12-31 15:46:19] Production.INFO: ProcessCDR(1,14144554,1,1,2) [2024-12-31 15:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144554', 'tblTempUsageDetail_20' ) start [2024-12-31 15:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144554', 'tblTempUsageDetail_20' ) end [2024-12-31 15:46:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:46:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:46:24] Production.INFO: ==5495== Releasing lock... [2024-12-31 15:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:46:24] Production.INFO: 52.75 MB #Memory Used# [2024-12-31 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:47:05 [end_date_ymd] => 2024-12-31 15:47:05 [RateCDR] => 1 ) [2024-12-31 15:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:47:05' and `end` < '2024-12-31 15:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:47:18] Production.INFO: count ==3271 [2024-12-31 15:47:19] Production.ERROR: pbx CDR StartTime 2024-12-31 12:47:05 - End Time 2024-12-31 15:47:05 [2024-12-31 15:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144559', 'tblTempUsageDetail_20' ) start [2024-12-31 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144559', 'tblTempUsageDetail_20' ) end [2024-12-31 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144559', 'tblTempVendorCDR_20' ) start [2024-12-31 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144559', 'tblTempVendorCDR_20' ) end [2024-12-31 15:47:19] Production.INFO: ProcessCDR(1,14144559,1,1,2) [2024-12-31 15:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144559', 'tblTempUsageDetail_20' ) start [2024-12-31 15:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144559', 'tblTempUsageDetail_20' ) end [2024-12-31 15:47:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:47:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:47:24] Production.INFO: ==5565== Releasing lock... [2024-12-31 15:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:47:24] Production.INFO: 53 MB #Memory Used# [2024-12-31 15:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:48:04 [end_date_ymd] => 2024-12-31 15:48:04 [RateCDR] => 1 ) [2024-12-31 15:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:48:04' and `end` < '2024-12-31 15:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:48:18] Production.INFO: count ==3259 [2024-12-31 15:48:19] Production.ERROR: pbx CDR StartTime 2024-12-31 12:48:04 - End Time 2024-12-31 15:48:04 [2024-12-31 15:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144564', 'tblTempUsageDetail_20' ) start [2024-12-31 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144564', 'tblTempUsageDetail_20' ) end [2024-12-31 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144564', 'tblTempVendorCDR_20' ) start [2024-12-31 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144564', 'tblTempVendorCDR_20' ) end [2024-12-31 15:48:19] Production.INFO: ProcessCDR(1,14144564,1,1,2) [2024-12-31 15:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144564', 'tblTempUsageDetail_20' ) start [2024-12-31 15:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144564', 'tblTempUsageDetail_20' ) end [2024-12-31 15:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:48:22] Production.INFO: ==5638== Releasing lock... [2024-12-31 15:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:48:22] Production.INFO: 52.5 MB #Memory Used# [2024-12-31 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:49:05 [end_date_ymd] => 2024-12-31 15:49:05 [RateCDR] => 1 ) [2024-12-31 15:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:49:05' and `end` < '2024-12-31 15:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:49:18] Production.INFO: count ==3259 [2024-12-31 15:49:19] Production.ERROR: pbx CDR StartTime 2024-12-31 12:49:05 - End Time 2024-12-31 15:49:05 [2024-12-31 15:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144569', 'tblTempUsageDetail_20' ) start [2024-12-31 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144569', 'tblTempUsageDetail_20' ) end [2024-12-31 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144569', 'tblTempVendorCDR_20' ) start [2024-12-31 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144569', 'tblTempVendorCDR_20' ) end [2024-12-31 15:49:19] Production.INFO: ProcessCDR(1,14144569,1,1,2) [2024-12-31 15:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144569', 'tblTempUsageDetail_20' ) start [2024-12-31 15:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144569', 'tblTempUsageDetail_20' ) end [2024-12-31 15:49:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:49:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:49:23] Production.INFO: ==5711== Releasing lock... [2024-12-31 15:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:49:23] Production.INFO: 52.75 MB #Memory Used# [2024-12-31 15:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:50:05 [end_date_ymd] => 2024-12-31 15:50:05 [RateCDR] => 1 ) [2024-12-31 15:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:50:05' and `end` < '2024-12-31 15:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:50:18] Production.INFO: count ==3264 [2024-12-31 15:50:20] Production.ERROR: pbx CDR StartTime 2024-12-31 12:50:05 - End Time 2024-12-31 15:50:05 [2024-12-31 15:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144575', 'tblTempUsageDetail_20' ) start [2024-12-31 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144575', 'tblTempUsageDetail_20' ) end [2024-12-31 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144575', 'tblTempVendorCDR_20' ) start [2024-12-31 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144575', 'tblTempVendorCDR_20' ) end [2024-12-31 15:50:20] Production.INFO: ProcessCDR(1,14144575,1,1,2) [2024-12-31 15:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144575', 'tblTempUsageDetail_20' ) start [2024-12-31 15:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144575', 'tblTempUsageDetail_20' ) end [2024-12-31 15:50:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:50:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:50:24] Production.INFO: ==5782== Releasing lock... [2024-12-31 15:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:50:24] Production.INFO: 52.25 MB #Memory Used# [2024-12-31 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:51:05 [end_date_ymd] => 2024-12-31 15:51:05 [RateCDR] => 1 ) [2024-12-31 15:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:51:05' and `end` < '2024-12-31 15:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:51:20] Production.INFO: count ==3263 [2024-12-31 15:51:21] Production.ERROR: pbx CDR StartTime 2024-12-31 12:51:05 - End Time 2024-12-31 15:51:05 [2024-12-31 15:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144580', 'tblTempUsageDetail_20' ) start [2024-12-31 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144580', 'tblTempUsageDetail_20' ) end [2024-12-31 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144580', 'tblTempVendorCDR_20' ) start [2024-12-31 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144580', 'tblTempVendorCDR_20' ) end [2024-12-31 15:51:21] Production.INFO: ProcessCDR(1,14144580,1,1,2) [2024-12-31 15:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144580', 'tblTempUsageDetail_20' ) start [2024-12-31 15:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144580', 'tblTempUsageDetail_20' ) end [2024-12-31 15:51:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:51:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:51:24] Production.INFO: ==5856== Releasing lock... [2024-12-31 15:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:51:24] Production.INFO: 52.5 MB #Memory Used# [2024-12-31 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:52:05 [end_date_ymd] => 2024-12-31 15:52:05 [RateCDR] => 1 ) [2024-12-31 15:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:52:05' and `end` < '2024-12-31 15:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:52:19] Production.INFO: count ==3238 [2024-12-31 15:52:20] Production.ERROR: pbx CDR StartTime 2024-12-31 12:52:05 - End Time 2024-12-31 15:52:05 [2024-12-31 15:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144585', 'tblTempUsageDetail_20' ) start [2024-12-31 15:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144585', 'tblTempUsageDetail_20' ) end [2024-12-31 15:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144585', 'tblTempVendorCDR_20' ) start [2024-12-31 15:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144585', 'tblTempVendorCDR_20' ) end [2024-12-31 15:52:20] Production.INFO: ProcessCDR(1,14144585,1,1,2) [2024-12-31 15:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144585', 'tblTempUsageDetail_20' ) start [2024-12-31 15:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144585', 'tblTempUsageDetail_20' ) end [2024-12-31 15:52:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:52:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:52:23] Production.INFO: ==5928== Releasing lock... [2024-12-31 15:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:52:23] Production.INFO: 52.5 MB #Memory Used# [2024-12-31 15:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:53:04 [end_date_ymd] => 2024-12-31 15:53:04 [RateCDR] => 1 ) [2024-12-31 15:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:53:04' and `end` < '2024-12-31 15:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:53:18] Production.INFO: count ==3236 [2024-12-31 15:53:19] Production.ERROR: pbx CDR StartTime 2024-12-31 12:53:04 - End Time 2024-12-31 15:53:04 [2024-12-31 15:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144590', 'tblTempUsageDetail_20' ) start [2024-12-31 15:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144590', 'tblTempUsageDetail_20' ) end [2024-12-31 15:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144590', 'tblTempVendorCDR_20' ) start [2024-12-31 15:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144590', 'tblTempVendorCDR_20' ) end [2024-12-31 15:53:19] Production.INFO: ProcessCDR(1,14144590,1,1,2) [2024-12-31 15:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144590', 'tblTempUsageDetail_20' ) start [2024-12-31 15:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144590', 'tblTempUsageDetail_20' ) end [2024-12-31 15:53:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:53:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:53:24] Production.INFO: ==6000== Releasing lock... [2024-12-31 15:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:53:24] Production.INFO: 52.5 MB #Memory Used# [2024-12-31 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:54:05 [end_date_ymd] => 2024-12-31 15:54:05 [RateCDR] => 1 ) [2024-12-31 15:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:54:05' and `end` < '2024-12-31 15:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:54:19] Production.INFO: count ==3214 [2024-12-31 15:54:20] Production.ERROR: pbx CDR StartTime 2024-12-31 12:54:05 - End Time 2024-12-31 15:54:05 [2024-12-31 15:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144595', 'tblTempUsageDetail_20' ) start [2024-12-31 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144595', 'tblTempUsageDetail_20' ) end [2024-12-31 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144595', 'tblTempVendorCDR_20' ) start [2024-12-31 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144595', 'tblTempVendorCDR_20' ) end [2024-12-31 15:54:20] Production.INFO: ProcessCDR(1,14144595,1,1,2) [2024-12-31 15:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144595', 'tblTempUsageDetail_20' ) start [2024-12-31 15:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144595', 'tblTempUsageDetail_20' ) end [2024-12-31 15:54:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:54:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:54:25] Production.INFO: ==6069== Releasing lock... [2024-12-31 15:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:54:25] Production.INFO: 53 MB #Memory Used# [2024-12-31 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:55:05 [end_date_ymd] => 2024-12-31 15:55:05 [RateCDR] => 1 ) [2024-12-31 15:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:55:05' and `end` < '2024-12-31 15:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:55:22] Production.INFO: count ==3218 [2024-12-31 15:55:23] Production.ERROR: pbx CDR StartTime 2024-12-31 12:55:05 - End Time 2024-12-31 15:55:05 [2024-12-31 15:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144600', 'tblTempUsageDetail_20' ) start [2024-12-31 15:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144600', 'tblTempUsageDetail_20' ) end [2024-12-31 15:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144600', 'tblTempVendorCDR_20' ) start [2024-12-31 15:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144600', 'tblTempVendorCDR_20' ) end [2024-12-31 15:55:23] Production.INFO: ProcessCDR(1,14144600,1,1,2) [2024-12-31 15:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:55:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:55:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144600', 'tblTempUsageDetail_20' ) start [2024-12-31 15:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144600', 'tblTempUsageDetail_20' ) end [2024-12-31 15:55:28] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:55:28] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:55:28] Production.INFO: ==6139== Releasing lock... [2024-12-31 15:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:55:28] Production.INFO: 53 MB #Memory Used# [2024-12-31 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:56:05 [end_date_ymd] => 2024-12-31 15:56:05 [RateCDR] => 1 ) [2024-12-31 15:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:56:05' and `end` < '2024-12-31 15:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:56:19] Production.INFO: count ==3209 [2024-12-31 15:56:20] Production.ERROR: pbx CDR StartTime 2024-12-31 12:56:05 - End Time 2024-12-31 15:56:05 [2024-12-31 15:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144605', 'tblTempUsageDetail_20' ) start [2024-12-31 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144605', 'tblTempUsageDetail_20' ) end [2024-12-31 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144605', 'tblTempVendorCDR_20' ) start [2024-12-31 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144605', 'tblTempVendorCDR_20' ) end [2024-12-31 15:56:20] Production.INFO: ProcessCDR(1,14144605,1,1,2) [2024-12-31 15:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144605', 'tblTempUsageDetail_20' ) start [2024-12-31 15:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144605', 'tblTempUsageDetail_20' ) end [2024-12-31 15:56:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:56:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:56:25] Production.INFO: ==6211== Releasing lock... [2024-12-31 15:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:56:25] Production.INFO: 52.25 MB #Memory Used# [2024-12-31 15:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:57:04 [end_date_ymd] => 2024-12-31 15:57:04 [RateCDR] => 1 ) [2024-12-31 15:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:57:04' and `end` < '2024-12-31 15:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:57:17] Production.INFO: count ==3190 [2024-12-31 15:57:18] Production.ERROR: pbx CDR StartTime 2024-12-31 12:57:04 - End Time 2024-12-31 15:57:04 [2024-12-31 15:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144610', 'tblTempUsageDetail_20' ) start [2024-12-31 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144610', 'tblTempUsageDetail_20' ) end [2024-12-31 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144610', 'tblTempVendorCDR_20' ) start [2024-12-31 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144610', 'tblTempVendorCDR_20' ) end [2024-12-31 15:57:18] Production.INFO: ProcessCDR(1,14144610,1,1,2) [2024-12-31 15:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144610', 'tblTempUsageDetail_20' ) start [2024-12-31 15:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144610', 'tblTempUsageDetail_20' ) end [2024-12-31 15:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:57:22] Production.INFO: ==6282== Releasing lock... [2024-12-31 15:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:57:22] Production.INFO: 52.75 MB #Memory Used# [2024-12-31 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:58:05 [end_date_ymd] => 2024-12-31 15:58:05 [RateCDR] => 1 ) [2024-12-31 15:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:58:05' and `end` < '2024-12-31 15:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:58:18] Production.INFO: count ==3178 [2024-12-31 15:58:19] Production.ERROR: pbx CDR StartTime 2024-12-31 12:58:05 - End Time 2024-12-31 15:58:05 [2024-12-31 15:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144615', 'tblTempUsageDetail_20' ) start [2024-12-31 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144615', 'tblTempUsageDetail_20' ) end [2024-12-31 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144615', 'tblTempVendorCDR_20' ) start [2024-12-31 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144615', 'tblTempVendorCDR_20' ) end [2024-12-31 15:58:19] Production.INFO: ProcessCDR(1,14144615,1,1,2) [2024-12-31 15:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144615', 'tblTempUsageDetail_20' ) start [2024-12-31 15:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144615', 'tblTempUsageDetail_20' ) end [2024-12-31 15:58:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:58:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:58:24] Production.INFO: ==6359== Releasing lock... [2024-12-31 15:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:58:24] Production.INFO: 51.75 MB #Memory Used# [2024-12-31 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 12:59:05 [end_date_ymd] => 2024-12-31 15:59:05 [RateCDR] => 1 ) [2024-12-31 15:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 12:59:05' and `end` < '2024-12-31 15:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 15:59:19] Production.INFO: count ==3143 [2024-12-31 15:59:20] Production.ERROR: pbx CDR StartTime 2024-12-31 12:59:05 - End Time 2024-12-31 15:59:05 [2024-12-31 15:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144620', 'tblTempUsageDetail_20' ) start [2024-12-31 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144620', 'tblTempUsageDetail_20' ) end [2024-12-31 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144620', 'tblTempVendorCDR_20' ) start [2024-12-31 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144620', 'tblTempVendorCDR_20' ) end [2024-12-31 15:59:20] Production.INFO: ProcessCDR(1,14144620,1,1,2) [2024-12-31 15:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 15:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 15:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144620', 'tblTempUsageDetail_20' ) start [2024-12-31 15:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144620', 'tblTempUsageDetail_20' ) end [2024-12-31 15:59:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 15:59:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 15:59:24] Production.INFO: ==6430== Releasing lock... [2024-12-31 15:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 15:59:24] Production.INFO: 51.5 MB #Memory Used# [2024-12-31 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:00:06 [end_date_ymd] => 2024-12-31 16:00:06 [RateCDR] => 1 ) [2024-12-31 16:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:00:06' and `end` < '2024-12-31 16:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:00:19] Production.INFO: count ==3149 [2024-12-31 16:00:20] Production.ERROR: pbx CDR StartTime 2024-12-31 13:00:06 - End Time 2024-12-31 16:00:06 [2024-12-31 16:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144626', 'tblTempUsageDetail_20' ) start [2024-12-31 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144626', 'tblTempUsageDetail_20' ) end [2024-12-31 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144626', 'tblTempVendorCDR_20' ) start [2024-12-31 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144626', 'tblTempVendorCDR_20' ) end [2024-12-31 16:00:20] Production.INFO: ProcessCDR(1,14144626,1,1,2) [2024-12-31 16:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144626', 'tblTempUsageDetail_20' ) start [2024-12-31 16:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144626', 'tblTempUsageDetail_20' ) end [2024-12-31 16:00:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:00:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:00:24] Production.INFO: ==6504== Releasing lock... [2024-12-31 16:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:00:24] Production.INFO: 51.5 MB #Memory Used# [2024-12-31 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:01:05 [end_date_ymd] => 2024-12-31 16:01:05 [RateCDR] => 1 ) [2024-12-31 16:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:01:05' and `end` < '2024-12-31 16:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:01:19] Production.INFO: count ==3164 [2024-12-31 16:01:20] Production.ERROR: pbx CDR StartTime 2024-12-31 13:01:05 - End Time 2024-12-31 16:01:05 [2024-12-31 16:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144631', 'tblTempUsageDetail_20' ) start [2024-12-31 16:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144631', 'tblTempUsageDetail_20' ) end [2024-12-31 16:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144631', 'tblTempVendorCDR_20' ) start [2024-12-31 16:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144631', 'tblTempVendorCDR_20' ) end [2024-12-31 16:01:20] Production.INFO: ProcessCDR(1,14144631,1,1,2) [2024-12-31 16:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144631', 'tblTempUsageDetail_20' ) start [2024-12-31 16:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144631', 'tblTempUsageDetail_20' ) end [2024-12-31 16:01:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:01:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:01:25] Production.INFO: ==6630== Releasing lock... [2024-12-31 16:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:01:25] Production.INFO: 52.5 MB #Memory Used# [2024-12-31 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:02:05 [end_date_ymd] => 2024-12-31 16:02:05 [RateCDR] => 1 ) [2024-12-31 16:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:02:05' and `end` < '2024-12-31 16:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:02:19] Production.INFO: count ==3187 [2024-12-31 16:02:20] Production.ERROR: pbx CDR StartTime 2024-12-31 13:02:05 - End Time 2024-12-31 16:02:05 [2024-12-31 16:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144636', 'tblTempUsageDetail_20' ) start [2024-12-31 16:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144636', 'tblTempUsageDetail_20' ) end [2024-12-31 16:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144636', 'tblTempVendorCDR_20' ) start [2024-12-31 16:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144636', 'tblTempVendorCDR_20' ) end [2024-12-31 16:02:20] Production.INFO: ProcessCDR(1,14144636,1,1,2) [2024-12-31 16:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144636', 'tblTempUsageDetail_20' ) start [2024-12-31 16:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144636', 'tblTempUsageDetail_20' ) end [2024-12-31 16:02:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:02:23] Production.INFO: ==6700== Releasing lock... [2024-12-31 16:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:02:23] Production.INFO: 52.5 MB #Memory Used# [2024-12-31 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:03:05 [end_date_ymd] => 2024-12-31 16:03:05 [RateCDR] => 1 ) [2024-12-31 16:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:03:05' and `end` < '2024-12-31 16:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:03:19] Production.INFO: count ==3159 [2024-12-31 16:03:20] Production.ERROR: pbx CDR StartTime 2024-12-31 13:03:05 - End Time 2024-12-31 16:03:05 [2024-12-31 16:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144641', 'tblTempUsageDetail_20' ) start [2024-12-31 16:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144641', 'tblTempUsageDetail_20' ) end [2024-12-31 16:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144641', 'tblTempVendorCDR_20' ) start [2024-12-31 16:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144641', 'tblTempVendorCDR_20' ) end [2024-12-31 16:03:20] Production.INFO: ProcessCDR(1,14144641,1,1,2) [2024-12-31 16:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144641', 'tblTempUsageDetail_20' ) start [2024-12-31 16:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144641', 'tblTempUsageDetail_20' ) end [2024-12-31 16:03:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:03:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:03:25] Production.INFO: ==6770== Releasing lock... [2024-12-31 16:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:03:25] Production.INFO: 52.25 MB #Memory Used# [2024-12-31 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:04:05 [end_date_ymd] => 2024-12-31 16:04:05 [RateCDR] => 1 ) [2024-12-31 16:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:04:05' and `end` < '2024-12-31 16:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:04:18] Production.INFO: count ==3151 [2024-12-31 16:04:20] Production.ERROR: pbx CDR StartTime 2024-12-31 13:04:05 - End Time 2024-12-31 16:04:05 [2024-12-31 16:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144646', 'tblTempUsageDetail_20' ) start [2024-12-31 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144646', 'tblTempUsageDetail_20' ) end [2024-12-31 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144646', 'tblTempVendorCDR_20' ) start [2024-12-31 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144646', 'tblTempVendorCDR_20' ) end [2024-12-31 16:04:20] Production.INFO: ProcessCDR(1,14144646,1,1,2) [2024-12-31 16:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144646', 'tblTempUsageDetail_20' ) start [2024-12-31 16:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144646', 'tblTempUsageDetail_20' ) end [2024-12-31 16:04:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:04:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:04:23] Production.INFO: ==6840== Releasing lock... [2024-12-31 16:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:04:23] Production.INFO: 53 MB #Memory Used# [2024-12-31 16:05:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:05:06 [end_date_ymd] => 2024-12-31 16:05:06 [RateCDR] => 1 ) [2024-12-31 16:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:05:06' and `end` < '2024-12-31 16:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:05:21] Production.INFO: count ==3115 [2024-12-31 16:05:22] Production.ERROR: pbx CDR StartTime 2024-12-31 13:05:06 - End Time 2024-12-31 16:05:06 [2024-12-31 16:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144651', 'tblTempUsageDetail_20' ) start [2024-12-31 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144651', 'tblTempUsageDetail_20' ) end [2024-12-31 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144651', 'tblTempVendorCDR_20' ) start [2024-12-31 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144651', 'tblTempVendorCDR_20' ) end [2024-12-31 16:05:22] Production.INFO: ProcessCDR(1,14144651,1,1,2) [2024-12-31 16:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144651', 'tblTempUsageDetail_20' ) start [2024-12-31 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144651', 'tblTempUsageDetail_20' ) end [2024-12-31 16:05:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:05:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:05:27] Production.INFO: ==6912== Releasing lock... [2024-12-31 16:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:05:27] Production.INFO: 51.25 MB #Memory Used# [2024-12-31 16:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:06:04 [end_date_ymd] => 2024-12-31 16:06:04 [RateCDR] => 1 ) [2024-12-31 16:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:06:04' and `end` < '2024-12-31 16:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:06:18] Production.INFO: count ==3084 [2024-12-31 16:06:19] Production.ERROR: pbx CDR StartTime 2024-12-31 13:06:04 - End Time 2024-12-31 16:06:04 [2024-12-31 16:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144656', 'tblTempUsageDetail_20' ) start [2024-12-31 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144656', 'tblTempUsageDetail_20' ) end [2024-12-31 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144656', 'tblTempVendorCDR_20' ) start [2024-12-31 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144656', 'tblTempVendorCDR_20' ) end [2024-12-31 16:06:19] Production.INFO: ProcessCDR(1,14144656,1,1,2) [2024-12-31 16:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144656', 'tblTempUsageDetail_20' ) start [2024-12-31 16:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144656', 'tblTempUsageDetail_20' ) end [2024-12-31 16:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:06:22] Production.INFO: ==6983== Releasing lock... [2024-12-31 16:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:06:22] Production.INFO: 51 MB #Memory Used# [2024-12-31 16:07:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:07:06 [end_date_ymd] => 2024-12-31 16:07:06 [RateCDR] => 1 ) [2024-12-31 16:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:07:06' and `end` < '2024-12-31 16:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:07:19] Production.INFO: count ==3070 [2024-12-31 16:07:20] Production.ERROR: pbx CDR StartTime 2024-12-31 13:07:06 - End Time 2024-12-31 16:07:06 [2024-12-31 16:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144661', 'tblTempUsageDetail_20' ) start [2024-12-31 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144661', 'tblTempUsageDetail_20' ) end [2024-12-31 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144661', 'tblTempVendorCDR_20' ) start [2024-12-31 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144661', 'tblTempVendorCDR_20' ) end [2024-12-31 16:07:20] Production.INFO: ProcessCDR(1,14144661,1,1,2) [2024-12-31 16:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144661', 'tblTempUsageDetail_20' ) start [2024-12-31 16:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144661', 'tblTempUsageDetail_20' ) end [2024-12-31 16:07:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:07:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:07:24] Production.INFO: ==7055== Releasing lock... [2024-12-31 16:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:07:24] Production.INFO: 51.25 MB #Memory Used# [2024-12-31 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:08:05 [end_date_ymd] => 2024-12-31 16:08:05 [RateCDR] => 1 ) [2024-12-31 16:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:08:05' and `end` < '2024-12-31 16:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:08:19] Production.INFO: count ==3052 [2024-12-31 16:08:20] Production.ERROR: pbx CDR StartTime 2024-12-31 13:08:05 - End Time 2024-12-31 16:08:05 [2024-12-31 16:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144666', 'tblTempUsageDetail_20' ) start [2024-12-31 16:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144666', 'tblTempUsageDetail_20' ) end [2024-12-31 16:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144666', 'tblTempVendorCDR_20' ) start [2024-12-31 16:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144666', 'tblTempVendorCDR_20' ) end [2024-12-31 16:08:20] Production.INFO: ProcessCDR(1,14144666,1,1,2) [2024-12-31 16:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144666', 'tblTempUsageDetail_20' ) start [2024-12-31 16:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144666', 'tblTempUsageDetail_20' ) end [2024-12-31 16:08:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:08:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:08:24] Production.INFO: ==7125== Releasing lock... [2024-12-31 16:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:08:24] Production.INFO: 50.75 MB #Memory Used# [2024-12-31 16:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:09:04 [end_date_ymd] => 2024-12-31 16:09:04 [RateCDR] => 1 ) [2024-12-31 16:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:09:04' and `end` < '2024-12-31 16:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:09:18] Production.INFO: count ==3037 [2024-12-31 16:09:19] Production.ERROR: pbx CDR StartTime 2024-12-31 13:09:04 - End Time 2024-12-31 16:09:04 [2024-12-31 16:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144671', 'tblTempUsageDetail_20' ) start [2024-12-31 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144671', 'tblTempUsageDetail_20' ) end [2024-12-31 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144671', 'tblTempVendorCDR_20' ) start [2024-12-31 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144671', 'tblTempVendorCDR_20' ) end [2024-12-31 16:09:19] Production.INFO: ProcessCDR(1,14144671,1,1,2) [2024-12-31 16:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144671', 'tblTempUsageDetail_20' ) start [2024-12-31 16:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144671', 'tblTempUsageDetail_20' ) end [2024-12-31 16:09:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:09:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:09:23] Production.INFO: ==7194== Releasing lock... [2024-12-31 16:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:09:23] Production.INFO: 50.75 MB #Memory Used# [2024-12-31 16:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:10:05 [end_date_ymd] => 2024-12-31 16:10:05 [RateCDR] => 1 ) [2024-12-31 16:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:10:05' and `end` < '2024-12-31 16:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:10:19] Production.INFO: count ==3035 [2024-12-31 16:10:20] Production.ERROR: pbx CDR StartTime 2024-12-31 13:10:05 - End Time 2024-12-31 16:10:05 [2024-12-31 16:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144677', 'tblTempUsageDetail_20' ) start [2024-12-31 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144677', 'tblTempUsageDetail_20' ) end [2024-12-31 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144677', 'tblTempVendorCDR_20' ) start [2024-12-31 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144677', 'tblTempVendorCDR_20' ) end [2024-12-31 16:10:20] Production.INFO: ProcessCDR(1,14144677,1,1,2) [2024-12-31 16:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144677', 'tblTempUsageDetail_20' ) start [2024-12-31 16:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144677', 'tblTempUsageDetail_20' ) end [2024-12-31 16:10:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:10:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:10:24] Production.INFO: ==7266== Releasing lock... [2024-12-31 16:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:10:24] Production.INFO: 50.5 MB #Memory Used# [2024-12-31 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:11:05 [end_date_ymd] => 2024-12-31 16:11:05 [RateCDR] => 1 ) [2024-12-31 16:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:11:05' and `end` < '2024-12-31 16:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:11:18] Production.INFO: count ==3057 [2024-12-31 16:11:19] Production.ERROR: pbx CDR StartTime 2024-12-31 13:11:05 - End Time 2024-12-31 16:11:05 [2024-12-31 16:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144682', 'tblTempUsageDetail_20' ) start [2024-12-31 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144682', 'tblTempUsageDetail_20' ) end [2024-12-31 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144682', 'tblTempVendorCDR_20' ) start [2024-12-31 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144682', 'tblTempVendorCDR_20' ) end [2024-12-31 16:11:19] Production.INFO: ProcessCDR(1,14144682,1,1,2) [2024-12-31 16:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144682', 'tblTempUsageDetail_20' ) start [2024-12-31 16:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144682', 'tblTempUsageDetail_20' ) end [2024-12-31 16:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:11:22] Production.INFO: ==7340== Releasing lock... [2024-12-31 16:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:11:22] Production.INFO: 50.75 MB #Memory Used# [2024-12-31 16:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:12:04 [end_date_ymd] => 2024-12-31 16:12:04 [RateCDR] => 1 ) [2024-12-31 16:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:12:04' and `end` < '2024-12-31 16:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:12:18] Production.INFO: count ==3049 [2024-12-31 16:12:19] Production.ERROR: pbx CDR StartTime 2024-12-31 13:12:04 - End Time 2024-12-31 16:12:04 [2024-12-31 16:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144687', 'tblTempUsageDetail_20' ) start [2024-12-31 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144687', 'tblTempUsageDetail_20' ) end [2024-12-31 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144687', 'tblTempVendorCDR_20' ) start [2024-12-31 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144687', 'tblTempVendorCDR_20' ) end [2024-12-31 16:12:19] Production.INFO: ProcessCDR(1,14144687,1,1,2) [2024-12-31 16:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144687', 'tblTempUsageDetail_20' ) start [2024-12-31 16:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144687', 'tblTempUsageDetail_20' ) end [2024-12-31 16:12:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:12:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:12:24] Production.INFO: ==7415== Releasing lock... [2024-12-31 16:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:12:24] Production.INFO: 51 MB #Memory Used# [2024-12-31 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:13:05 [end_date_ymd] => 2024-12-31 16:13:05 [RateCDR] => 1 ) [2024-12-31 16:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:13:05' and `end` < '2024-12-31 16:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:13:19] Production.INFO: count ==3049 [2024-12-31 16:13:20] Production.ERROR: pbx CDR StartTime 2024-12-31 13:13:05 - End Time 2024-12-31 16:13:05 [2024-12-31 16:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144692', 'tblTempUsageDetail_20' ) start [2024-12-31 16:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144692', 'tblTempUsageDetail_20' ) end [2024-12-31 16:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144692', 'tblTempVendorCDR_20' ) start [2024-12-31 16:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144692', 'tblTempVendorCDR_20' ) end [2024-12-31 16:13:20] Production.INFO: ProcessCDR(1,14144692,1,1,2) [2024-12-31 16:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144692', 'tblTempUsageDetail_20' ) start [2024-12-31 16:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144692', 'tblTempUsageDetail_20' ) end [2024-12-31 16:13:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:13:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:13:25] Production.INFO: ==7490== Releasing lock... [2024-12-31 16:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:13:25] Production.INFO: 50.75 MB #Memory Used# [2024-12-31 16:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:14:04 [end_date_ymd] => 2024-12-31 16:14:04 [RateCDR] => 1 ) [2024-12-31 16:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:14:04' and `end` < '2024-12-31 16:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:14:19] Production.INFO: count ==3039 [2024-12-31 16:14:20] Production.ERROR: pbx CDR StartTime 2024-12-31 13:14:04 - End Time 2024-12-31 16:14:04 [2024-12-31 16:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144697', 'tblTempUsageDetail_20' ) start [2024-12-31 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144697', 'tblTempUsageDetail_20' ) end [2024-12-31 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144697', 'tblTempVendorCDR_20' ) start [2024-12-31 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144697', 'tblTempVendorCDR_20' ) end [2024-12-31 16:14:20] Production.INFO: ProcessCDR(1,14144697,1,1,2) [2024-12-31 16:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144697', 'tblTempUsageDetail_20' ) start [2024-12-31 16:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144697', 'tblTempUsageDetail_20' ) end [2024-12-31 16:14:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:14:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:14:24] Production.INFO: ==7560== Releasing lock... [2024-12-31 16:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:14:24] Production.INFO: 50.75 MB #Memory Used# [2024-12-31 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:15:05 [end_date_ymd] => 2024-12-31 16:15:05 [RateCDR] => 1 ) [2024-12-31 16:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:15:05' and `end` < '2024-12-31 16:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:15:18] Production.INFO: count ==3021 [2024-12-31 16:15:19] Production.ERROR: pbx CDR StartTime 2024-12-31 13:15:05 - End Time 2024-12-31 16:15:05 [2024-12-31 16:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144702', 'tblTempUsageDetail_20' ) start [2024-12-31 16:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144702', 'tblTempUsageDetail_20' ) end [2024-12-31 16:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144702', 'tblTempVendorCDR_20' ) start [2024-12-31 16:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144702', 'tblTempVendorCDR_20' ) end [2024-12-31 16:15:20] Production.INFO: ProcessCDR(1,14144702,1,1,2) [2024-12-31 16:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144702', 'tblTempUsageDetail_20' ) start [2024-12-31 16:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144702', 'tblTempUsageDetail_20' ) end [2024-12-31 16:15:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:15:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:15:23] Production.INFO: ==7634== Releasing lock... [2024-12-31 16:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:15:23] Production.INFO: 51.25 MB #Memory Used# [2024-12-31 16:16:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:16:06 [end_date_ymd] => 2024-12-31 16:16:06 [RateCDR] => 1 ) [2024-12-31 16:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:16:06' and `end` < '2024-12-31 16:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:16:19] Production.INFO: count ==3030 [2024-12-31 16:16:20] Production.ERROR: pbx CDR StartTime 2024-12-31 13:16:06 - End Time 2024-12-31 16:16:06 [2024-12-31 16:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144707', 'tblTempUsageDetail_20' ) start [2024-12-31 16:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144707', 'tblTempUsageDetail_20' ) end [2024-12-31 16:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144707', 'tblTempVendorCDR_20' ) start [2024-12-31 16:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144707', 'tblTempVendorCDR_20' ) end [2024-12-31 16:16:20] Production.INFO: ProcessCDR(1,14144707,1,1,2) [2024-12-31 16:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144707', 'tblTempUsageDetail_20' ) start [2024-12-31 16:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144707', 'tblTempUsageDetail_20' ) end [2024-12-31 16:16:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:16:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:16:23] Production.INFO: ==7706== Releasing lock... [2024-12-31 16:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:16:23] Production.INFO: 50.75 MB #Memory Used# [2024-12-31 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:17:05 [end_date_ymd] => 2024-12-31 16:17:05 [RateCDR] => 1 ) [2024-12-31 16:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:17:05' and `end` < '2024-12-31 16:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:17:24] Production.INFO: count ==3024 [2024-12-31 16:17:25] Production.ERROR: pbx CDR StartTime 2024-12-31 13:17:05 - End Time 2024-12-31 16:17:05 [2024-12-31 16:17:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144712', 'tblTempUsageDetail_20' ) start [2024-12-31 16:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144712', 'tblTempUsageDetail_20' ) end [2024-12-31 16:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144712', 'tblTempVendorCDR_20' ) start [2024-12-31 16:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144712', 'tblTempVendorCDR_20' ) end [2024-12-31 16:17:25] Production.INFO: ProcessCDR(1,14144712,1,1,2) [2024-12-31 16:17:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:17:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:17:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144712', 'tblTempUsageDetail_20' ) start [2024-12-31 16:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144712', 'tblTempUsageDetail_20' ) end [2024-12-31 16:17:28] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:17:28] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:17:28] Production.INFO: ==7828== Releasing lock... [2024-12-31 16:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:17:28] Production.INFO: 50.5 MB #Memory Used# [2024-12-31 16:18:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:18:06 [end_date_ymd] => 2024-12-31 16:18:06 [RateCDR] => 1 ) [2024-12-31 16:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:18:06' and `end` < '2024-12-31 16:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:18:22] Production.INFO: count ==3011 [2024-12-31 16:18:24] Production.ERROR: pbx CDR StartTime 2024-12-31 13:18:06 - End Time 2024-12-31 16:18:06 [2024-12-31 16:18:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144717', 'tblTempUsageDetail_20' ) start [2024-12-31 16:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144717', 'tblTempUsageDetail_20' ) end [2024-12-31 16:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144717', 'tblTempVendorCDR_20' ) start [2024-12-31 16:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144717', 'tblTempVendorCDR_20' ) end [2024-12-31 16:18:24] Production.INFO: ProcessCDR(1,14144717,1,1,2) [2024-12-31 16:18:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144717', 'tblTempUsageDetail_20' ) start [2024-12-31 16:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144717', 'tblTempUsageDetail_20' ) end [2024-12-31 16:18:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:18:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:18:27] Production.INFO: ==7906== Releasing lock... [2024-12-31 16:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:18:27] Production.INFO: 50.5 MB #Memory Used# [2024-12-31 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:19:05 [end_date_ymd] => 2024-12-31 16:19:05 [RateCDR] => 1 ) [2024-12-31 16:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:19:05' and `end` < '2024-12-31 16:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:19:18] Production.INFO: count ==2999 [2024-12-31 16:19:19] Production.ERROR: pbx CDR StartTime 2024-12-31 13:19:05 - End Time 2024-12-31 16:19:05 [2024-12-31 16:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144722', 'tblTempUsageDetail_20' ) start [2024-12-31 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144722', 'tblTempUsageDetail_20' ) end [2024-12-31 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144722', 'tblTempVendorCDR_20' ) start [2024-12-31 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144722', 'tblTempVendorCDR_20' ) end [2024-12-31 16:19:19] Production.INFO: ProcessCDR(1,14144722,1,1,2) [2024-12-31 16:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144722', 'tblTempUsageDetail_20' ) start [2024-12-31 16:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144722', 'tblTempUsageDetail_20' ) end [2024-12-31 16:19:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:19:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:19:23] Production.INFO: ==7985== Releasing lock... [2024-12-31 16:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:19:23] Production.INFO: 50.25 MB #Memory Used# [2024-12-31 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:20:06 [end_date_ymd] => 2024-12-31 16:20:06 [RateCDR] => 1 ) [2024-12-31 16:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:20:06' and `end` < '2024-12-31 16:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:20:19] Production.INFO: count ==2995 [2024-12-31 16:20:20] Production.ERROR: pbx CDR StartTime 2024-12-31 13:20:06 - End Time 2024-12-31 16:20:06 [2024-12-31 16:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144728', 'tblTempUsageDetail_20' ) start [2024-12-31 16:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144728', 'tblTempUsageDetail_20' ) end [2024-12-31 16:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144728', 'tblTempVendorCDR_20' ) start [2024-12-31 16:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144728', 'tblTempVendorCDR_20' ) end [2024-12-31 16:20:20] Production.INFO: ProcessCDR(1,14144728,1,1,2) [2024-12-31 16:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144728', 'tblTempUsageDetail_20' ) start [2024-12-31 16:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144728', 'tblTempUsageDetail_20' ) end [2024-12-31 16:20:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:20:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:20:24] Production.INFO: ==8065== Releasing lock... [2024-12-31 16:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:20:24] Production.INFO: 50.25 MB #Memory Used# [2024-12-31 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:21:05 [end_date_ymd] => 2024-12-31 16:21:05 [RateCDR] => 1 ) [2024-12-31 16:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:21:05' and `end` < '2024-12-31 16:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:21:19] Production.INFO: count ==2973 [2024-12-31 16:21:20] Production.ERROR: pbx CDR StartTime 2024-12-31 13:21:05 - End Time 2024-12-31 16:21:05 [2024-12-31 16:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144733', 'tblTempUsageDetail_20' ) start [2024-12-31 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144733', 'tblTempUsageDetail_20' ) end [2024-12-31 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144733', 'tblTempVendorCDR_20' ) start [2024-12-31 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144733', 'tblTempVendorCDR_20' ) end [2024-12-31 16:21:20] Production.INFO: ProcessCDR(1,14144733,1,1,2) [2024-12-31 16:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144733', 'tblTempUsageDetail_20' ) start [2024-12-31 16:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144733', 'tblTempUsageDetail_20' ) end [2024-12-31 16:21:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:21:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:21:23] Production.INFO: ==8138== Releasing lock... [2024-12-31 16:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:21:23] Production.INFO: 50.25 MB #Memory Used# [2024-12-31 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:22:05 [end_date_ymd] => 2024-12-31 16:22:05 [RateCDR] => 1 ) [2024-12-31 16:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:22:05' and `end` < '2024-12-31 16:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:22:18] Production.INFO: count ==2956 [2024-12-31 16:22:19] Production.ERROR: pbx CDR StartTime 2024-12-31 13:22:05 - End Time 2024-12-31 16:22:05 [2024-12-31 16:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144738', 'tblTempUsageDetail_20' ) start [2024-12-31 16:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144738', 'tblTempUsageDetail_20' ) end [2024-12-31 16:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144738', 'tblTempVendorCDR_20' ) start [2024-12-31 16:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144738', 'tblTempVendorCDR_20' ) end [2024-12-31 16:22:19] Production.INFO: ProcessCDR(1,14144738,1,1,2) [2024-12-31 16:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144738', 'tblTempUsageDetail_20' ) start [2024-12-31 16:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144738', 'tblTempUsageDetail_20' ) end [2024-12-31 16:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:22:22] Production.INFO: ==8218== Releasing lock... [2024-12-31 16:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:22:22] Production.INFO: 49.75 MB #Memory Used# [2024-12-31 16:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:23:04 [end_date_ymd] => 2024-12-31 16:23:04 [RateCDR] => 1 ) [2024-12-31 16:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:23:04' and `end` < '2024-12-31 16:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:23:18] Production.INFO: count ==2952 [2024-12-31 16:23:19] Production.ERROR: pbx CDR StartTime 2024-12-31 13:23:04 - End Time 2024-12-31 16:23:04 [2024-12-31 16:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144743', 'tblTempUsageDetail_20' ) start [2024-12-31 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144743', 'tblTempUsageDetail_20' ) end [2024-12-31 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144743', 'tblTempVendorCDR_20' ) start [2024-12-31 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144743', 'tblTempVendorCDR_20' ) end [2024-12-31 16:23:19] Production.INFO: ProcessCDR(1,14144743,1,1,2) [2024-12-31 16:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144743', 'tblTempUsageDetail_20' ) start [2024-12-31 16:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144743', 'tblTempUsageDetail_20' ) end [2024-12-31 16:23:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:23:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:23:24] Production.INFO: ==8297== Releasing lock... [2024-12-31 16:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:23:24] Production.INFO: 50 MB #Memory Used# [2024-12-31 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:24:05 [end_date_ymd] => 2024-12-31 16:24:05 [RateCDR] => 1 ) [2024-12-31 16:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:24:05' and `end` < '2024-12-31 16:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:24:19] Production.INFO: count ==2943 [2024-12-31 16:24:20] Production.ERROR: pbx CDR StartTime 2024-12-31 13:24:05 - End Time 2024-12-31 16:24:05 [2024-12-31 16:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144748', 'tblTempUsageDetail_20' ) start [2024-12-31 16:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144748', 'tblTempUsageDetail_20' ) end [2024-12-31 16:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144748', 'tblTempVendorCDR_20' ) start [2024-12-31 16:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144748', 'tblTempVendorCDR_20' ) end [2024-12-31 16:24:20] Production.INFO: ProcessCDR(1,14144748,1,1,2) [2024-12-31 16:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144748', 'tblTempUsageDetail_20' ) start [2024-12-31 16:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144748', 'tblTempUsageDetail_20' ) end [2024-12-31 16:24:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:24:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:24:23] Production.INFO: ==8378== Releasing lock... [2024-12-31 16:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:24:23] Production.INFO: 49.75 MB #Memory Used# [2024-12-31 16:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:25:04 [end_date_ymd] => 2024-12-31 16:25:04 [RateCDR] => 1 ) [2024-12-31 16:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:25:04' and `end` < '2024-12-31 16:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:25:17] Production.INFO: count ==2942 [2024-12-31 16:25:18] Production.ERROR: pbx CDR StartTime 2024-12-31 13:25:04 - End Time 2024-12-31 16:25:04 [2024-12-31 16:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144753', 'tblTempUsageDetail_20' ) start [2024-12-31 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144753', 'tblTempUsageDetail_20' ) end [2024-12-31 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144753', 'tblTempVendorCDR_20' ) start [2024-12-31 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144753', 'tblTempVendorCDR_20' ) end [2024-12-31 16:25:18] Production.INFO: ProcessCDR(1,14144753,1,1,2) [2024-12-31 16:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144753', 'tblTempUsageDetail_20' ) start [2024-12-31 16:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144753', 'tblTempUsageDetail_20' ) end [2024-12-31 16:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:25:21] Production.INFO: ==8453== Releasing lock... [2024-12-31 16:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:25:21] Production.INFO: 49.75 MB #Memory Used# [2024-12-31 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:26:05 [end_date_ymd] => 2024-12-31 16:26:05 [RateCDR] => 1 ) [2024-12-31 16:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:26:05' and `end` < '2024-12-31 16:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:26:18] Production.INFO: count ==2933 [2024-12-31 16:26:19] Production.ERROR: pbx CDR StartTime 2024-12-31 13:26:05 - End Time 2024-12-31 16:26:05 [2024-12-31 16:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144758', 'tblTempUsageDetail_20' ) start [2024-12-31 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144758', 'tblTempUsageDetail_20' ) end [2024-12-31 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144758', 'tblTempVendorCDR_20' ) start [2024-12-31 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144758', 'tblTempVendorCDR_20' ) end [2024-12-31 16:26:19] Production.INFO: ProcessCDR(1,14144758,1,1,2) [2024-12-31 16:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144758', 'tblTempUsageDetail_20' ) start [2024-12-31 16:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144758', 'tblTempUsageDetail_20' ) end [2024-12-31 16:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:26:22] Production.INFO: ==8532== Releasing lock... [2024-12-31 16:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:26:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-31 16:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:27:04 [end_date_ymd] => 2024-12-31 16:27:04 [RateCDR] => 1 ) [2024-12-31 16:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:27:04' and `end` < '2024-12-31 16:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:27:18] Production.INFO: count ==2921 [2024-12-31 16:27:18] Production.ERROR: pbx CDR StartTime 2024-12-31 13:27:04 - End Time 2024-12-31 16:27:04 [2024-12-31 16:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144763', 'tblTempUsageDetail_20' ) start [2024-12-31 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144763', 'tblTempUsageDetail_20' ) end [2024-12-31 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144763', 'tblTempVendorCDR_20' ) start [2024-12-31 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144763', 'tblTempVendorCDR_20' ) end [2024-12-31 16:27:19] Production.INFO: ProcessCDR(1,14144763,1,1,2) [2024-12-31 16:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144763', 'tblTempUsageDetail_20' ) start [2024-12-31 16:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144763', 'tblTempUsageDetail_20' ) end [2024-12-31 16:27:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:27:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:27:22] Production.INFO: ==8608== Releasing lock... [2024-12-31 16:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:27:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-31 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:28:05 [end_date_ymd] => 2024-12-31 16:28:05 [RateCDR] => 1 ) [2024-12-31 16:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:28:05' and `end` < '2024-12-31 16:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:28:18] Production.INFO: count ==2917 [2024-12-31 16:28:19] Production.ERROR: pbx CDR StartTime 2024-12-31 13:28:05 - End Time 2024-12-31 16:28:05 [2024-12-31 16:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144768', 'tblTempUsageDetail_20' ) start [2024-12-31 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144768', 'tblTempUsageDetail_20' ) end [2024-12-31 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144768', 'tblTempVendorCDR_20' ) start [2024-12-31 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144768', 'tblTempVendorCDR_20' ) end [2024-12-31 16:28:19] Production.INFO: ProcessCDR(1,14144768,1,1,2) [2024-12-31 16:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144768', 'tblTempUsageDetail_20' ) start [2024-12-31 16:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144768', 'tblTempUsageDetail_20' ) end [2024-12-31 16:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:28:22] Production.INFO: ==8691== Releasing lock... [2024-12-31 16:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:28:22] Production.INFO: 49.75 MB #Memory Used# [2024-12-31 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:29:05 [end_date_ymd] => 2024-12-31 16:29:05 [RateCDR] => 1 ) [2024-12-31 16:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:29:05' and `end` < '2024-12-31 16:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:29:19] Production.INFO: count ==2922 [2024-12-31 16:29:20] Production.ERROR: pbx CDR StartTime 2024-12-31 13:29:05 - End Time 2024-12-31 16:29:05 [2024-12-31 16:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144773', 'tblTempUsageDetail_20' ) start [2024-12-31 16:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144773', 'tblTempUsageDetail_20' ) end [2024-12-31 16:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144773', 'tblTempVendorCDR_20' ) start [2024-12-31 16:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144773', 'tblTempVendorCDR_20' ) end [2024-12-31 16:29:20] Production.INFO: ProcessCDR(1,14144773,1,1,2) [2024-12-31 16:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144773', 'tblTempUsageDetail_20' ) start [2024-12-31 16:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144773', 'tblTempUsageDetail_20' ) end [2024-12-31 16:29:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:29:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:29:23] Production.INFO: ==8768== Releasing lock... [2024-12-31 16:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:29:23] Production.INFO: 49.75 MB #Memory Used# [2024-12-31 16:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:30:05 [end_date_ymd] => 2024-12-31 16:30:05 [RateCDR] => 1 ) [2024-12-31 16:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:30:05' and `end` < '2024-12-31 16:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:30:28] Production.INFO: count ==2935 [2024-12-31 16:30:29] Production.ERROR: pbx CDR StartTime 2024-12-31 13:30:05 - End Time 2024-12-31 16:30:05 [2024-12-31 16:30:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144779', 'tblTempUsageDetail_20' ) start [2024-12-31 16:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144779', 'tblTempUsageDetail_20' ) end [2024-12-31 16:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144779', 'tblTempVendorCDR_20' ) start [2024-12-31 16:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144779', 'tblTempVendorCDR_20' ) end [2024-12-31 16:30:29] Production.INFO: ProcessCDR(1,14144779,1,1,2) [2024-12-31 16:30:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:30:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:30:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:30:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:30:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144779', 'tblTempUsageDetail_20' ) start [2024-12-31 16:30:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144779', 'tblTempUsageDetail_20' ) end [2024-12-31 16:30:34] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:30:34] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:30:34] Production.INFO: ==8849== Releasing lock... [2024-12-31 16:30:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:30:34] Production.INFO: 50.5 MB #Memory Used# [2024-12-31 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:31:05 [end_date_ymd] => 2024-12-31 16:31:05 [RateCDR] => 1 ) [2024-12-31 16:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:31:05' and `end` < '2024-12-31 16:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:31:20] Production.INFO: count ==2897 [2024-12-31 16:31:21] Production.ERROR: pbx CDR StartTime 2024-12-31 13:31:05 - End Time 2024-12-31 16:31:05 [2024-12-31 16:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144784', 'tblTempUsageDetail_20' ) start [2024-12-31 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144784', 'tblTempUsageDetail_20' ) end [2024-12-31 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144784', 'tblTempVendorCDR_20' ) start [2024-12-31 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144784', 'tblTempVendorCDR_20' ) end [2024-12-31 16:31:21] Production.INFO: ProcessCDR(1,14144784,1,1,2) [2024-12-31 16:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144784', 'tblTempUsageDetail_20' ) start [2024-12-31 16:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144784', 'tblTempUsageDetail_20' ) end [2024-12-31 16:31:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:31:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:31:24] Production.INFO: ==8929== Releasing lock... [2024-12-31 16:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:31:24] Production.INFO: 49.25 MB #Memory Used# [2024-12-31 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:32:05 [end_date_ymd] => 2024-12-31 16:32:05 [RateCDR] => 1 ) [2024-12-31 16:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:32:05' and `end` < '2024-12-31 16:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:32:18] Production.INFO: count ==2871 [2024-12-31 16:32:19] Production.ERROR: pbx CDR StartTime 2024-12-31 13:32:05 - End Time 2024-12-31 16:32:05 [2024-12-31 16:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144789', 'tblTempUsageDetail_20' ) start [2024-12-31 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144789', 'tblTempUsageDetail_20' ) end [2024-12-31 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144789', 'tblTempVendorCDR_20' ) start [2024-12-31 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144789', 'tblTempVendorCDR_20' ) end [2024-12-31 16:32:19] Production.INFO: ProcessCDR(1,14144789,1,1,2) [2024-12-31 16:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144789', 'tblTempUsageDetail_20' ) start [2024-12-31 16:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144789', 'tblTempUsageDetail_20' ) end [2024-12-31 16:32:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:32:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:32:23] Production.INFO: ==9005== Releasing lock... [2024-12-31 16:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:32:23] Production.INFO: 49.25 MB #Memory Used# [2024-12-31 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:33:05 [end_date_ymd] => 2024-12-31 16:33:05 [RateCDR] => 1 ) [2024-12-31 16:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:33:05' and `end` < '2024-12-31 16:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:33:20] Production.INFO: count ==2864 [2024-12-31 16:33:21] Production.ERROR: pbx CDR StartTime 2024-12-31 13:33:05 - End Time 2024-12-31 16:33:05 [2024-12-31 16:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144794', 'tblTempUsageDetail_20' ) start [2024-12-31 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144794', 'tblTempUsageDetail_20' ) end [2024-12-31 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144794', 'tblTempVendorCDR_20' ) start [2024-12-31 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144794', 'tblTempVendorCDR_20' ) end [2024-12-31 16:33:21] Production.INFO: ProcessCDR(1,14144794,1,1,2) [2024-12-31 16:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144794', 'tblTempUsageDetail_20' ) start [2024-12-31 16:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144794', 'tblTempUsageDetail_20' ) end [2024-12-31 16:33:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:33:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:33:26] Production.INFO: ==9122== Releasing lock... [2024-12-31 16:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:33:26] Production.INFO: 49.25 MB #Memory Used# [2024-12-31 16:34:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:34:06 [end_date_ymd] => 2024-12-31 16:34:06 [RateCDR] => 1 ) [2024-12-31 16:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:34:06' and `end` < '2024-12-31 16:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:34:20] Production.INFO: count ==2857 [2024-12-31 16:34:21] Production.ERROR: pbx CDR StartTime 2024-12-31 13:34:06 - End Time 2024-12-31 16:34:06 [2024-12-31 16:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144799', 'tblTempUsageDetail_20' ) start [2024-12-31 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144799', 'tblTempUsageDetail_20' ) end [2024-12-31 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144799', 'tblTempVendorCDR_20' ) start [2024-12-31 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144799', 'tblTempVendorCDR_20' ) end [2024-12-31 16:34:21] Production.INFO: ProcessCDR(1,14144799,1,1,2) [2024-12-31 16:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144799', 'tblTempUsageDetail_20' ) start [2024-12-31 16:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144799', 'tblTempUsageDetail_20' ) end [2024-12-31 16:34:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:34:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:34:25] Production.INFO: ==9198== Releasing lock... [2024-12-31 16:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:34:25] Production.INFO: 49.25 MB #Memory Used# [2024-12-31 16:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:35:04 [end_date_ymd] => 2024-12-31 16:35:04 [RateCDR] => 1 ) [2024-12-31 16:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:35:04' and `end` < '2024-12-31 16:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:35:18] Production.INFO: count ==2857 [2024-12-31 16:35:19] Production.ERROR: pbx CDR StartTime 2024-12-31 13:35:04 - End Time 2024-12-31 16:35:04 [2024-12-31 16:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144804', 'tblTempUsageDetail_20' ) start [2024-12-31 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144804', 'tblTempUsageDetail_20' ) end [2024-12-31 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144804', 'tblTempVendorCDR_20' ) start [2024-12-31 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144804', 'tblTempVendorCDR_20' ) end [2024-12-31 16:35:19] Production.INFO: ProcessCDR(1,14144804,1,1,2) [2024-12-31 16:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144804', 'tblTempUsageDetail_20' ) start [2024-12-31 16:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144804', 'tblTempUsageDetail_20' ) end [2024-12-31 16:35:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:35:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:35:22] Production.INFO: ==9280== Releasing lock... [2024-12-31 16:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:35:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-31 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:36:05 [end_date_ymd] => 2024-12-31 16:36:05 [RateCDR] => 1 ) [2024-12-31 16:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:36:05' and `end` < '2024-12-31 16:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:36:18] Production.INFO: count ==2857 [2024-12-31 16:36:19] Production.ERROR: pbx CDR StartTime 2024-12-31 13:36:05 - End Time 2024-12-31 16:36:05 [2024-12-31 16:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144809', 'tblTempUsageDetail_20' ) start [2024-12-31 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144809', 'tblTempUsageDetail_20' ) end [2024-12-31 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144809', 'tblTempVendorCDR_20' ) start [2024-12-31 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144809', 'tblTempVendorCDR_20' ) end [2024-12-31 16:36:19] Production.INFO: ProcessCDR(1,14144809,1,1,2) [2024-12-31 16:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144809', 'tblTempUsageDetail_20' ) start [2024-12-31 16:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144809', 'tblTempUsageDetail_20' ) end [2024-12-31 16:36:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:36:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:36:24] Production.INFO: ==9352== Releasing lock... [2024-12-31 16:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:36:24] Production.INFO: 49.25 MB #Memory Used# [2024-12-31 16:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:37:04 [end_date_ymd] => 2024-12-31 16:37:04 [RateCDR] => 1 ) [2024-12-31 16:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:37:04' and `end` < '2024-12-31 16:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:37:17] Production.INFO: count ==2856 [2024-12-31 16:37:18] Production.ERROR: pbx CDR StartTime 2024-12-31 13:37:04 - End Time 2024-12-31 16:37:04 [2024-12-31 16:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144814', 'tblTempUsageDetail_20' ) start [2024-12-31 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144814', 'tblTempUsageDetail_20' ) end [2024-12-31 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144814', 'tblTempVendorCDR_20' ) start [2024-12-31 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144814', 'tblTempVendorCDR_20' ) end [2024-12-31 16:37:19] Production.INFO: ProcessCDR(1,14144814,1,1,2) [2024-12-31 16:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144814', 'tblTempUsageDetail_20' ) start [2024-12-31 16:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144814', 'tblTempUsageDetail_20' ) end [2024-12-31 16:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:37:22] Production.INFO: ==9424== Releasing lock... [2024-12-31 16:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:37:22] Production.INFO: 49.25 MB #Memory Used# [2024-12-31 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:38:05 [end_date_ymd] => 2024-12-31 16:38:05 [RateCDR] => 1 ) [2024-12-31 16:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:38:05' and `end` < '2024-12-31 16:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:38:18] Production.INFO: count ==2874 [2024-12-31 16:38:19] Production.ERROR: pbx CDR StartTime 2024-12-31 13:38:05 - End Time 2024-12-31 16:38:05 [2024-12-31 16:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144819', 'tblTempUsageDetail_20' ) start [2024-12-31 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144819', 'tblTempUsageDetail_20' ) end [2024-12-31 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144819', 'tblTempVendorCDR_20' ) start [2024-12-31 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144819', 'tblTempVendorCDR_20' ) end [2024-12-31 16:38:19] Production.INFO: ProcessCDR(1,14144819,1,1,2) [2024-12-31 16:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144819', 'tblTempUsageDetail_20' ) start [2024-12-31 16:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144819', 'tblTempUsageDetail_20' ) end [2024-12-31 16:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:38:22] Production.INFO: ==9502== Releasing lock... [2024-12-31 16:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:38:22] Production.INFO: 49.25 MB #Memory Used# [2024-12-31 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:39:05 [end_date_ymd] => 2024-12-31 16:39:05 [RateCDR] => 1 ) [2024-12-31 16:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:39:05' and `end` < '2024-12-31 16:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:39:18] Production.INFO: count ==2874 [2024-12-31 16:39:19] Production.ERROR: pbx CDR StartTime 2024-12-31 13:39:05 - End Time 2024-12-31 16:39:05 [2024-12-31 16:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144824', 'tblTempUsageDetail_20' ) start [2024-12-31 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144824', 'tblTempUsageDetail_20' ) end [2024-12-31 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144824', 'tblTempVendorCDR_20' ) start [2024-12-31 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144824', 'tblTempVendorCDR_20' ) end [2024-12-31 16:39:19] Production.INFO: ProcessCDR(1,14144824,1,1,2) [2024-12-31 16:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144824', 'tblTempUsageDetail_20' ) start [2024-12-31 16:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144824', 'tblTempUsageDetail_20' ) end [2024-12-31 16:39:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:39:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:39:23] Production.INFO: ==9576== Releasing lock... [2024-12-31 16:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:39:23] Production.INFO: 49.25 MB #Memory Used# [2024-12-31 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:40:06 [end_date_ymd] => 2024-12-31 16:40:06 [RateCDR] => 1 ) [2024-12-31 16:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:40:06' and `end` < '2024-12-31 16:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:40:21] Production.INFO: count ==2900 [2024-12-31 16:40:22] Production.ERROR: pbx CDR StartTime 2024-12-31 13:40:06 - End Time 2024-12-31 16:40:06 [2024-12-31 16:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144830', 'tblTempUsageDetail_20' ) start [2024-12-31 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144830', 'tblTempUsageDetail_20' ) end [2024-12-31 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144830', 'tblTempVendorCDR_20' ) start [2024-12-31 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144830', 'tblTempVendorCDR_20' ) end [2024-12-31 16:40:22] Production.INFO: ProcessCDR(1,14144830,1,1,2) [2024-12-31 16:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144830', 'tblTempUsageDetail_20' ) start [2024-12-31 16:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144830', 'tblTempUsageDetail_20' ) end [2024-12-31 16:40:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:40:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:40:25] Production.INFO: ==9650== Releasing lock... [2024-12-31 16:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:40:25] Production.INFO: 49.75 MB #Memory Used# [2024-12-31 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:41:05 [end_date_ymd] => 2024-12-31 16:41:05 [RateCDR] => 1 ) [2024-12-31 16:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:41:05' and `end` < '2024-12-31 16:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:41:20] Production.INFO: count ==2935 [2024-12-31 16:41:21] Production.ERROR: pbx CDR StartTime 2024-12-31 13:41:05 - End Time 2024-12-31 16:41:05 [2024-12-31 16:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144835', 'tblTempUsageDetail_20' ) start [2024-12-31 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144835', 'tblTempUsageDetail_20' ) end [2024-12-31 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144835', 'tblTempVendorCDR_20' ) start [2024-12-31 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144835', 'tblTempVendorCDR_20' ) end [2024-12-31 16:41:21] Production.INFO: ProcessCDR(1,14144835,1,1,2) [2024-12-31 16:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144835', 'tblTempUsageDetail_20' ) start [2024-12-31 16:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144835', 'tblTempUsageDetail_20' ) end [2024-12-31 16:41:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:41:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:41:24] Production.INFO: ==9723== Releasing lock... [2024-12-31 16:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:41:24] Production.INFO: 50 MB #Memory Used# [2024-12-31 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:42:04 [end_date_ymd] => 2024-12-31 16:42:04 [RateCDR] => 1 ) [2024-12-31 16:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:42:04' and `end` < '2024-12-31 16:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:42:19] Production.INFO: count ==2953 [2024-12-31 16:42:20] Production.ERROR: pbx CDR StartTime 2024-12-31 13:42:04 - End Time 2024-12-31 16:42:04 [2024-12-31 16:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144840', 'tblTempUsageDetail_20' ) start [2024-12-31 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144840', 'tblTempUsageDetail_20' ) end [2024-12-31 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144840', 'tblTempVendorCDR_20' ) start [2024-12-31 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144840', 'tblTempVendorCDR_20' ) end [2024-12-31 16:42:20] Production.INFO: ProcessCDR(1,14144840,1,1,2) [2024-12-31 16:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144840', 'tblTempUsageDetail_20' ) start [2024-12-31 16:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144840', 'tblTempUsageDetail_20' ) end [2024-12-31 16:42:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:42:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:42:23] Production.INFO: ==9800== Releasing lock... [2024-12-31 16:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:42:23] Production.INFO: 49.75 MB #Memory Used# [2024-12-31 16:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:43:04 [end_date_ymd] => 2024-12-31 16:43:04 [RateCDR] => 1 ) [2024-12-31 16:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:43:04' and `end` < '2024-12-31 16:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:43:17] Production.INFO: count ==2932 [2024-12-31 16:43:18] Production.ERROR: pbx CDR StartTime 2024-12-31 13:43:04 - End Time 2024-12-31 16:43:04 [2024-12-31 16:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144845', 'tblTempUsageDetail_20' ) start [2024-12-31 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144845', 'tblTempUsageDetail_20' ) end [2024-12-31 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144845', 'tblTempVendorCDR_20' ) start [2024-12-31 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144845', 'tblTempVendorCDR_20' ) end [2024-12-31 16:43:18] Production.INFO: ProcessCDR(1,14144845,1,1,2) [2024-12-31 16:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144845', 'tblTempUsageDetail_20' ) start [2024-12-31 16:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144845', 'tblTempUsageDetail_20' ) end [2024-12-31 16:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:43:21] Production.INFO: ==9872== Releasing lock... [2024-12-31 16:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:43:21] Production.INFO: 49.5 MB #Memory Used# [2024-12-31 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:44:05 [end_date_ymd] => 2024-12-31 16:44:05 [RateCDR] => 1 ) [2024-12-31 16:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:44:05' and `end` < '2024-12-31 16:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:44:18] Production.INFO: count ==2943 [2024-12-31 16:44:19] Production.ERROR: pbx CDR StartTime 2024-12-31 13:44:05 - End Time 2024-12-31 16:44:05 [2024-12-31 16:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144850', 'tblTempUsageDetail_20' ) start [2024-12-31 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144850', 'tblTempUsageDetail_20' ) end [2024-12-31 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144850', 'tblTempVendorCDR_20' ) start [2024-12-31 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144850', 'tblTempVendorCDR_20' ) end [2024-12-31 16:44:19] Production.INFO: ProcessCDR(1,14144850,1,1,2) [2024-12-31 16:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144850', 'tblTempUsageDetail_20' ) start [2024-12-31 16:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144850', 'tblTempUsageDetail_20' ) end [2024-12-31 16:44:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:44:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:44:23] Production.INFO: ==9946== Releasing lock... [2024-12-31 16:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:44:23] Production.INFO: 49.75 MB #Memory Used# [2024-12-31 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:45:05 [end_date_ymd] => 2024-12-31 16:45:05 [RateCDR] => 1 ) [2024-12-31 16:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:45:05' and `end` < '2024-12-31 16:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:45:18] Production.INFO: count ==2942 [2024-12-31 16:45:19] Production.ERROR: pbx CDR StartTime 2024-12-31 13:45:05 - End Time 2024-12-31 16:45:05 [2024-12-31 16:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144855', 'tblTempUsageDetail_20' ) start [2024-12-31 16:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144855', 'tblTempUsageDetail_20' ) end [2024-12-31 16:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144855', 'tblTempVendorCDR_20' ) start [2024-12-31 16:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144855', 'tblTempVendorCDR_20' ) end [2024-12-31 16:45:19] Production.INFO: ProcessCDR(1,14144855,1,1,2) [2024-12-31 16:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144855', 'tblTempUsageDetail_20' ) start [2024-12-31 16:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144855', 'tblTempUsageDetail_20' ) end [2024-12-31 16:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:45:22] Production.INFO: ==10022== Releasing lock... [2024-12-31 16:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:45:22] Production.INFO: 49.75 MB #Memory Used# [2024-12-31 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:46:05 [end_date_ymd] => 2024-12-31 16:46:05 [RateCDR] => 1 ) [2024-12-31 16:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:46:05' and `end` < '2024-12-31 16:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:46:18] Production.INFO: count ==2940 [2024-12-31 16:46:19] Production.ERROR: pbx CDR StartTime 2024-12-31 13:46:05 - End Time 2024-12-31 16:46:05 [2024-12-31 16:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144860', 'tblTempUsageDetail_20' ) start [2024-12-31 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144860', 'tblTempUsageDetail_20' ) end [2024-12-31 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144860', 'tblTempVendorCDR_20' ) start [2024-12-31 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144860', 'tblTempVendorCDR_20' ) end [2024-12-31 16:46:19] Production.INFO: ProcessCDR(1,14144860,1,1,2) [2024-12-31 16:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144860', 'tblTempUsageDetail_20' ) start [2024-12-31 16:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144860', 'tblTempUsageDetail_20' ) end [2024-12-31 16:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:46:22] Production.INFO: ==10096== Releasing lock... [2024-12-31 16:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:46:22] Production.INFO: 49.75 MB #Memory Used# [2024-12-31 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:47:05 [end_date_ymd] => 2024-12-31 16:47:05 [RateCDR] => 1 ) [2024-12-31 16:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:47:05' and `end` < '2024-12-31 16:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:47:19] Production.INFO: count ==2927 [2024-12-31 16:47:20] Production.ERROR: pbx CDR StartTime 2024-12-31 13:47:05 - End Time 2024-12-31 16:47:05 [2024-12-31 16:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144865', 'tblTempUsageDetail_20' ) start [2024-12-31 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144865', 'tblTempUsageDetail_20' ) end [2024-12-31 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144865', 'tblTempVendorCDR_20' ) start [2024-12-31 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144865', 'tblTempVendorCDR_20' ) end [2024-12-31 16:47:20] Production.INFO: ProcessCDR(1,14144865,1,1,2) [2024-12-31 16:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144865', 'tblTempUsageDetail_20' ) start [2024-12-31 16:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144865', 'tblTempUsageDetail_20' ) end [2024-12-31 16:47:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:47:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:47:25] Production.INFO: ==10168== Releasing lock... [2024-12-31 16:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:47:25] Production.INFO: 49.75 MB #Memory Used# [2024-12-31 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:48:05 [end_date_ymd] => 2024-12-31 16:48:05 [RateCDR] => 1 ) [2024-12-31 16:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:48:05' and `end` < '2024-12-31 16:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:48:18] Production.INFO: count ==2930 [2024-12-31 16:48:19] Production.ERROR: pbx CDR StartTime 2024-12-31 13:48:05 - End Time 2024-12-31 16:48:05 [2024-12-31 16:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144870', 'tblTempUsageDetail_20' ) start [2024-12-31 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144870', 'tblTempUsageDetail_20' ) end [2024-12-31 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144870', 'tblTempVendorCDR_20' ) start [2024-12-31 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144870', 'tblTempVendorCDR_20' ) end [2024-12-31 16:48:19] Production.INFO: ProcessCDR(1,14144870,1,1,2) [2024-12-31 16:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144870', 'tblTempUsageDetail_20' ) start [2024-12-31 16:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144870', 'tblTempUsageDetail_20' ) end [2024-12-31 16:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:48:22] Production.INFO: ==10276== Releasing lock... [2024-12-31 16:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:48:22] Production.INFO: 49.75 MB #Memory Used# [2024-12-31 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:49:05 [end_date_ymd] => 2024-12-31 16:49:05 [RateCDR] => 1 ) [2024-12-31 16:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:49:05' and `end` < '2024-12-31 16:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:49:22] Production.INFO: count ==2932 [2024-12-31 16:49:23] Production.ERROR: pbx CDR StartTime 2024-12-31 13:49:05 - End Time 2024-12-31 16:49:05 [2024-12-31 16:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144875', 'tblTempUsageDetail_20' ) start [2024-12-31 16:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144875', 'tblTempUsageDetail_20' ) end [2024-12-31 16:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144875', 'tblTempVendorCDR_20' ) start [2024-12-31 16:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144875', 'tblTempVendorCDR_20' ) end [2024-12-31 16:49:23] Production.INFO: ProcessCDR(1,14144875,1,1,2) [2024-12-31 16:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144875', 'tblTempUsageDetail_20' ) start [2024-12-31 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144875', 'tblTempUsageDetail_20' ) end [2024-12-31 16:49:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:49:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:49:26] Production.INFO: ==10350== Releasing lock... [2024-12-31 16:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:49:26] Production.INFO: 49.75 MB #Memory Used# [2024-12-31 16:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:50:05 [end_date_ymd] => 2024-12-31 16:50:05 [RateCDR] => 1 ) [2024-12-31 16:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:50:05' and `end` < '2024-12-31 16:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:50:18] Production.INFO: count ==2926 [2024-12-31 16:50:19] Production.ERROR: pbx CDR StartTime 2024-12-31 13:50:05 - End Time 2024-12-31 16:50:05 [2024-12-31 16:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144880', 'tblTempUsageDetail_20' ) start [2024-12-31 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144880', 'tblTempUsageDetail_20' ) end [2024-12-31 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144880', 'tblTempVendorCDR_20' ) start [2024-12-31 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144880', 'tblTempVendorCDR_20' ) end [2024-12-31 16:50:19] Production.INFO: ProcessCDR(1,14144880,1,1,2) [2024-12-31 16:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144880', 'tblTempUsageDetail_20' ) start [2024-12-31 16:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144880', 'tblTempUsageDetail_20' ) end [2024-12-31 16:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:50:24] Production.INFO: ==10424== Releasing lock... [2024-12-31 16:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:50:24] Production.INFO: 49.5 MB #Memory Used# [2024-12-31 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:51:05 [end_date_ymd] => 2024-12-31 16:51:05 [RateCDR] => 1 ) [2024-12-31 16:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:51:05' and `end` < '2024-12-31 16:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:51:19] Production.INFO: count ==2956 [2024-12-31 16:51:20] Production.ERROR: pbx CDR StartTime 2024-12-31 13:51:05 - End Time 2024-12-31 16:51:05 [2024-12-31 16:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144886', 'tblTempUsageDetail_20' ) start [2024-12-31 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144886', 'tblTempUsageDetail_20' ) end [2024-12-31 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144886', 'tblTempVendorCDR_20' ) start [2024-12-31 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144886', 'tblTempVendorCDR_20' ) end [2024-12-31 16:51:20] Production.INFO: ProcessCDR(1,14144886,1,1,2) [2024-12-31 16:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144886', 'tblTempUsageDetail_20' ) start [2024-12-31 16:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144886', 'tblTempUsageDetail_20' ) end [2024-12-31 16:51:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:51:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:51:23] Production.INFO: ==10498== Releasing lock... [2024-12-31 16:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:51:23] Production.INFO: 49.75 MB #Memory Used# [2024-12-31 16:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:52:04 [end_date_ymd] => 2024-12-31 16:52:04 [RateCDR] => 1 ) [2024-12-31 16:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:52:04' and `end` < '2024-12-31 16:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:52:18] Production.INFO: count ==2957 [2024-12-31 16:52:19] Production.ERROR: pbx CDR StartTime 2024-12-31 13:52:04 - End Time 2024-12-31 16:52:04 [2024-12-31 16:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144891', 'tblTempUsageDetail_20' ) start [2024-12-31 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144891', 'tblTempUsageDetail_20' ) end [2024-12-31 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144891', 'tblTempVendorCDR_20' ) start [2024-12-31 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144891', 'tblTempVendorCDR_20' ) end [2024-12-31 16:52:19] Production.INFO: ProcessCDR(1,14144891,1,1,2) [2024-12-31 16:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144891', 'tblTempUsageDetail_20' ) start [2024-12-31 16:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144891', 'tblTempUsageDetail_20' ) end [2024-12-31 16:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:52:22] Production.INFO: ==10569== Releasing lock... [2024-12-31 16:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:52:22] Production.INFO: 49.75 MB #Memory Used# [2024-12-31 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:53:05 [end_date_ymd] => 2024-12-31 16:53:05 [RateCDR] => 1 ) [2024-12-31 16:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:53:05' and `end` < '2024-12-31 16:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:53:19] Production.INFO: count ==2938 [2024-12-31 16:53:20] Production.ERROR: pbx CDR StartTime 2024-12-31 13:53:05 - End Time 2024-12-31 16:53:05 [2024-12-31 16:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144896', 'tblTempUsageDetail_20' ) start [2024-12-31 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144896', 'tblTempUsageDetail_20' ) end [2024-12-31 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144896', 'tblTempVendorCDR_20' ) start [2024-12-31 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144896', 'tblTempVendorCDR_20' ) end [2024-12-31 16:53:20] Production.INFO: ProcessCDR(1,14144896,1,1,2) [2024-12-31 16:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144896', 'tblTempUsageDetail_20' ) start [2024-12-31 16:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144896', 'tblTempUsageDetail_20' ) end [2024-12-31 16:53:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:53:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:53:23] Production.INFO: ==10641== Releasing lock... [2024-12-31 16:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:53:23] Production.INFO: 49.5 MB #Memory Used# [2024-12-31 16:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:54:04 [end_date_ymd] => 2024-12-31 16:54:04 [RateCDR] => 1 ) [2024-12-31 16:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:54:04' and `end` < '2024-12-31 16:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:54:18] Production.INFO: count ==2926 [2024-12-31 16:54:19] Production.ERROR: pbx CDR StartTime 2024-12-31 13:54:04 - End Time 2024-12-31 16:54:04 [2024-12-31 16:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144901', 'tblTempUsageDetail_20' ) start [2024-12-31 16:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144901', 'tblTempUsageDetail_20' ) end [2024-12-31 16:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144901', 'tblTempVendorCDR_20' ) start [2024-12-31 16:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144901', 'tblTempVendorCDR_20' ) end [2024-12-31 16:54:19] Production.INFO: ProcessCDR(1,14144901,1,1,2) [2024-12-31 16:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144901', 'tblTempUsageDetail_20' ) start [2024-12-31 16:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144901', 'tblTempUsageDetail_20' ) end [2024-12-31 16:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:54:22] Production.INFO: ==10712== Releasing lock... [2024-12-31 16:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:54:22] Production.INFO: 49.75 MB #Memory Used# [2024-12-31 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:55:05 [end_date_ymd] => 2024-12-31 16:55:05 [RateCDR] => 1 ) [2024-12-31 16:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:55:05' and `end` < '2024-12-31 16:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:55:19] Production.INFO: count ==2944 [2024-12-31 16:55:20] Production.ERROR: pbx CDR StartTime 2024-12-31 13:55:05 - End Time 2024-12-31 16:55:05 [2024-12-31 16:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144906', 'tblTempUsageDetail_20' ) start [2024-12-31 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144906', 'tblTempUsageDetail_20' ) end [2024-12-31 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144906', 'tblTempVendorCDR_20' ) start [2024-12-31 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144906', 'tblTempVendorCDR_20' ) end [2024-12-31 16:55:20] Production.INFO: ProcessCDR(1,14144906,1,1,2) [2024-12-31 16:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144906', 'tblTempUsageDetail_20' ) start [2024-12-31 16:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144906', 'tblTempUsageDetail_20' ) end [2024-12-31 16:55:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:55:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:55:23] Production.INFO: ==10784== Releasing lock... [2024-12-31 16:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:55:23] Production.INFO: 49.75 MB #Memory Used# [2024-12-31 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:56:05 [end_date_ymd] => 2024-12-31 16:56:05 [RateCDR] => 1 ) [2024-12-31 16:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:56:05' and `end` < '2024-12-31 16:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:56:18] Production.INFO: count ==2920 [2024-12-31 16:56:19] Production.ERROR: pbx CDR StartTime 2024-12-31 13:56:05 - End Time 2024-12-31 16:56:05 [2024-12-31 16:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144911', 'tblTempUsageDetail_20' ) start [2024-12-31 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144911', 'tblTempUsageDetail_20' ) end [2024-12-31 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144911', 'tblTempVendorCDR_20' ) start [2024-12-31 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144911', 'tblTempVendorCDR_20' ) end [2024-12-31 16:56:19] Production.INFO: ProcessCDR(1,14144911,1,1,2) [2024-12-31 16:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144911', 'tblTempUsageDetail_20' ) start [2024-12-31 16:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144911', 'tblTempUsageDetail_20' ) end [2024-12-31 16:56:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:56:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:56:23] Production.INFO: ==10860== Releasing lock... [2024-12-31 16:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:56:23] Production.INFO: 49.5 MB #Memory Used# [2024-12-31 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:57:05 [end_date_ymd] => 2024-12-31 16:57:05 [RateCDR] => 1 ) [2024-12-31 16:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:57:05' and `end` < '2024-12-31 16:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:57:18] Production.INFO: count ==2918 [2024-12-31 16:57:19] Production.ERROR: pbx CDR StartTime 2024-12-31 13:57:05 - End Time 2024-12-31 16:57:05 [2024-12-31 16:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144916', 'tblTempUsageDetail_20' ) start [2024-12-31 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144916', 'tblTempUsageDetail_20' ) end [2024-12-31 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144916', 'tblTempVendorCDR_20' ) start [2024-12-31 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144916', 'tblTempVendorCDR_20' ) end [2024-12-31 16:57:19] Production.INFO: ProcessCDR(1,14144916,1,1,2) [2024-12-31 16:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144916', 'tblTempUsageDetail_20' ) start [2024-12-31 16:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144916', 'tblTempUsageDetail_20' ) end [2024-12-31 16:57:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:57:23] Production.INFO: ==10937== Releasing lock... [2024-12-31 16:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:57:23] Production.INFO: 49.5 MB #Memory Used# [2024-12-31 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:58:05 [end_date_ymd] => 2024-12-31 16:58:05 [RateCDR] => 1 ) [2024-12-31 16:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:58:05' and `end` < '2024-12-31 16:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:58:18] Production.INFO: count ==2916 [2024-12-31 16:58:19] Production.ERROR: pbx CDR StartTime 2024-12-31 13:58:05 - End Time 2024-12-31 16:58:05 [2024-12-31 16:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144921', 'tblTempUsageDetail_20' ) start [2024-12-31 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144921', 'tblTempUsageDetail_20' ) end [2024-12-31 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144921', 'tblTempVendorCDR_20' ) start [2024-12-31 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144921', 'tblTempVendorCDR_20' ) end [2024-12-31 16:58:19] Production.INFO: ProcessCDR(1,14144921,1,1,2) [2024-12-31 16:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144921', 'tblTempUsageDetail_20' ) start [2024-12-31 16:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144921', 'tblTempUsageDetail_20' ) end [2024-12-31 16:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:58:22] Production.INFO: ==11009== Releasing lock... [2024-12-31 16:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:58:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-31 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 13:59:05 [end_date_ymd] => 2024-12-31 16:59:05 [RateCDR] => 1 ) [2024-12-31 16:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 13:59:05' and `end` < '2024-12-31 16:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 16:59:19] Production.INFO: count ==2909 [2024-12-31 16:59:19] Production.ERROR: pbx CDR StartTime 2024-12-31 13:59:05 - End Time 2024-12-31 16:59:05 [2024-12-31 16:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 16:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144926', 'tblTempUsageDetail_20' ) start [2024-12-31 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144926', 'tblTempUsageDetail_20' ) end [2024-12-31 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144926', 'tblTempVendorCDR_20' ) start [2024-12-31 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144926', 'tblTempVendorCDR_20' ) end [2024-12-31 16:59:20] Production.INFO: ProcessCDR(1,14144926,1,1,2) [2024-12-31 16:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 16:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 16:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144926', 'tblTempUsageDetail_20' ) start [2024-12-31 16:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144926', 'tblTempUsageDetail_20' ) end [2024-12-31 16:59:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 16:59:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 16:59:24] Production.INFO: ==11080== Releasing lock... [2024-12-31 16:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 16:59:24] Production.INFO: 49.5 MB #Memory Used# [2024-12-31 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:00:06 [end_date_ymd] => 2024-12-31 17:00:06 [RateCDR] => 1 ) [2024-12-31 17:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:00:06' and `end` < '2024-12-31 17:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:00:19] Production.INFO: count ==2917 [2024-12-31 17:00:20] Production.ERROR: pbx CDR StartTime 2024-12-31 14:00:06 - End Time 2024-12-31 17:00:06 [2024-12-31 17:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144932', 'tblTempUsageDetail_20' ) start [2024-12-31 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144932', 'tblTempUsageDetail_20' ) end [2024-12-31 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144932', 'tblTempVendorCDR_20' ) start [2024-12-31 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144932', 'tblTempVendorCDR_20' ) end [2024-12-31 17:00:20] Production.INFO: ProcessCDR(1,14144932,1,1,2) [2024-12-31 17:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144932', 'tblTempUsageDetail_20' ) start [2024-12-31 17:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144932', 'tblTempUsageDetail_20' ) end [2024-12-31 17:00:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:00:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:00:24] Production.INFO: ==11154== Releasing lock... [2024-12-31 17:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:00:24] Production.INFO: 49.5 MB #Memory Used# [2024-12-31 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:01:05 [end_date_ymd] => 2024-12-31 17:01:05 [RateCDR] => 1 ) [2024-12-31 17:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:01:05' and `end` < '2024-12-31 17:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:01:20] Production.INFO: count ==2954 [2024-12-31 17:01:21] Production.ERROR: pbx CDR StartTime 2024-12-31 14:01:05 - End Time 2024-12-31 17:01:05 [2024-12-31 17:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144937', 'tblTempUsageDetail_20' ) start [2024-12-31 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144937', 'tblTempUsageDetail_20' ) end [2024-12-31 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144937', 'tblTempVendorCDR_20' ) start [2024-12-31 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144937', 'tblTempVendorCDR_20' ) end [2024-12-31 17:01:21] Production.INFO: ProcessCDR(1,14144937,1,1,2) [2024-12-31 17:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144937', 'tblTempUsageDetail_20' ) start [2024-12-31 17:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144937', 'tblTempUsageDetail_20' ) end [2024-12-31 17:01:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:01:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:01:24] Production.INFO: ==11240== Releasing lock... [2024-12-31 17:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:01:24] Production.INFO: 50.75 MB #Memory Used# [2024-12-31 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:02:05 [end_date_ymd] => 2024-12-31 17:02:05 [RateCDR] => 1 ) [2024-12-31 17:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:02:05' and `end` < '2024-12-31 17:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:02:20] Production.INFO: count ==2959 [2024-12-31 17:02:21] Production.ERROR: pbx CDR StartTime 2024-12-31 14:02:05 - End Time 2024-12-31 17:02:05 [2024-12-31 17:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144942', 'tblTempUsageDetail_20' ) start [2024-12-31 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144942', 'tblTempUsageDetail_20' ) end [2024-12-31 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144942', 'tblTempVendorCDR_20' ) start [2024-12-31 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144942', 'tblTempVendorCDR_20' ) end [2024-12-31 17:02:21] Production.INFO: ProcessCDR(1,14144942,1,1,2) [2024-12-31 17:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144942', 'tblTempUsageDetail_20' ) start [2024-12-31 17:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144942', 'tblTempUsageDetail_20' ) end [2024-12-31 17:02:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:02:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:02:26] Production.INFO: ==11310== Releasing lock... [2024-12-31 17:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:02:26] Production.INFO: 49.75 MB #Memory Used# [2024-12-31 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:03:05 [end_date_ymd] => 2024-12-31 17:03:05 [RateCDR] => 1 ) [2024-12-31 17:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:03:05' and `end` < '2024-12-31 17:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:03:19] Production.INFO: count ==2957 [2024-12-31 17:03:20] Production.ERROR: pbx CDR StartTime 2024-12-31 14:03:05 - End Time 2024-12-31 17:03:05 [2024-12-31 17:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144947', 'tblTempUsageDetail_20' ) start [2024-12-31 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144947', 'tblTempUsageDetail_20' ) end [2024-12-31 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144947', 'tblTempVendorCDR_20' ) start [2024-12-31 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144947', 'tblTempVendorCDR_20' ) end [2024-12-31 17:03:20] Production.INFO: ProcessCDR(1,14144947,1,1,2) [2024-12-31 17:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144947', 'tblTempUsageDetail_20' ) start [2024-12-31 17:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144947', 'tblTempUsageDetail_20' ) end [2024-12-31 17:03:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:03:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:03:25] Production.INFO: ==11383== Releasing lock... [2024-12-31 17:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:03:25] Production.INFO: 49.75 MB #Memory Used# [2024-12-31 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:04:05 [end_date_ymd] => 2024-12-31 17:04:05 [RateCDR] => 1 ) [2024-12-31 17:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:04:05' and `end` < '2024-12-31 17:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:04:19] Production.INFO: count ==2957 [2024-12-31 17:04:20] Production.ERROR: pbx CDR StartTime 2024-12-31 14:04:05 - End Time 2024-12-31 17:04:05 [2024-12-31 17:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144952', 'tblTempUsageDetail_20' ) start [2024-12-31 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144952', 'tblTempUsageDetail_20' ) end [2024-12-31 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144952', 'tblTempVendorCDR_20' ) start [2024-12-31 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144952', 'tblTempVendorCDR_20' ) end [2024-12-31 17:04:20] Production.INFO: ProcessCDR(1,14144952,1,1,2) [2024-12-31 17:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144952', 'tblTempUsageDetail_20' ) start [2024-12-31 17:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144952', 'tblTempUsageDetail_20' ) end [2024-12-31 17:04:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:04:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:04:23] Production.INFO: ==11495== Releasing lock... [2024-12-31 17:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:04:23] Production.INFO: 49.75 MB #Memory Used# [2024-12-31 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:05:05 [end_date_ymd] => 2024-12-31 17:05:05 [RateCDR] => 1 ) [2024-12-31 17:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:05:05' and `end` < '2024-12-31 17:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:05:18] Production.INFO: count ==2952 [2024-12-31 17:05:19] Production.ERROR: pbx CDR StartTime 2024-12-31 14:05:05 - End Time 2024-12-31 17:05:05 [2024-12-31 17:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144957', 'tblTempUsageDetail_20' ) start [2024-12-31 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144957', 'tblTempUsageDetail_20' ) end [2024-12-31 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144957', 'tblTempVendorCDR_20' ) start [2024-12-31 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144957', 'tblTempVendorCDR_20' ) end [2024-12-31 17:05:19] Production.INFO: ProcessCDR(1,14144957,1,1,2) [2024-12-31 17:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144957', 'tblTempUsageDetail_20' ) start [2024-12-31 17:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144957', 'tblTempUsageDetail_20' ) end [2024-12-31 17:05:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:05:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:05:23] Production.INFO: ==11566== Releasing lock... [2024-12-31 17:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:05:23] Production.INFO: 49.75 MB #Memory Used# [2024-12-31 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:06:05 [end_date_ymd] => 2024-12-31 17:06:05 [RateCDR] => 1 ) [2024-12-31 17:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:06:05' and `end` < '2024-12-31 17:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:06:18] Production.INFO: count ==2943 [2024-12-31 17:06:19] Production.ERROR: pbx CDR StartTime 2024-12-31 14:06:05 - End Time 2024-12-31 17:06:05 [2024-12-31 17:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144962', 'tblTempUsageDetail_20' ) start [2024-12-31 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144962', 'tblTempUsageDetail_20' ) end [2024-12-31 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144962', 'tblTempVendorCDR_20' ) start [2024-12-31 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144962', 'tblTempVendorCDR_20' ) end [2024-12-31 17:06:19] Production.INFO: ProcessCDR(1,14144962,1,1,2) [2024-12-31 17:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144962', 'tblTempUsageDetail_20' ) start [2024-12-31 17:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144962', 'tblTempUsageDetail_20' ) end [2024-12-31 17:06:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:06:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:06:23] Production.INFO: ==11640== Releasing lock... [2024-12-31 17:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:06:23] Production.INFO: 49.75 MB #Memory Used# [2024-12-31 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:07:05 [end_date_ymd] => 2024-12-31 17:07:05 [RateCDR] => 1 ) [2024-12-31 17:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:07:05' and `end` < '2024-12-31 17:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:07:18] Production.INFO: count ==2935 [2024-12-31 17:07:19] Production.ERROR: pbx CDR StartTime 2024-12-31 14:07:05 - End Time 2024-12-31 17:07:05 [2024-12-31 17:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144967', 'tblTempUsageDetail_20' ) start [2024-12-31 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144967', 'tblTempUsageDetail_20' ) end [2024-12-31 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144967', 'tblTempVendorCDR_20' ) start [2024-12-31 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144967', 'tblTempVendorCDR_20' ) end [2024-12-31 17:07:19] Production.INFO: ProcessCDR(1,14144967,1,1,2) [2024-12-31 17:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144967', 'tblTempUsageDetail_20' ) start [2024-12-31 17:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144967', 'tblTempUsageDetail_20' ) end [2024-12-31 17:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:07:22] Production.INFO: ==11711== Releasing lock... [2024-12-31 17:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:07:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-31 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:08:05 [end_date_ymd] => 2024-12-31 17:08:05 [RateCDR] => 1 ) [2024-12-31 17:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:08:05' and `end` < '2024-12-31 17:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:08:18] Production.INFO: count ==2932 [2024-12-31 17:08:19] Production.ERROR: pbx CDR StartTime 2024-12-31 14:08:05 - End Time 2024-12-31 17:08:05 [2024-12-31 17:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144972', 'tblTempUsageDetail_20' ) start [2024-12-31 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144972', 'tblTempUsageDetail_20' ) end [2024-12-31 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144972', 'tblTempVendorCDR_20' ) start [2024-12-31 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144972', 'tblTempVendorCDR_20' ) end [2024-12-31 17:08:19] Production.INFO: ProcessCDR(1,14144972,1,1,2) [2024-12-31 17:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144972', 'tblTempUsageDetail_20' ) start [2024-12-31 17:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144972', 'tblTempUsageDetail_20' ) end [2024-12-31 17:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:08:22] Production.INFO: ==11781== Releasing lock... [2024-12-31 17:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:08:22] Production.INFO: 49.75 MB #Memory Used# [2024-12-31 17:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:09:04 [end_date_ymd] => 2024-12-31 17:09:04 [RateCDR] => 1 ) [2024-12-31 17:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:09:04' and `end` < '2024-12-31 17:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:09:17] Production.INFO: count ==2926 [2024-12-31 17:09:18] Production.ERROR: pbx CDR StartTime 2024-12-31 14:09:04 - End Time 2024-12-31 17:09:04 [2024-12-31 17:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144977', 'tblTempUsageDetail_20' ) start [2024-12-31 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144977', 'tblTempUsageDetail_20' ) end [2024-12-31 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144977', 'tblTempVendorCDR_20' ) start [2024-12-31 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144977', 'tblTempVendorCDR_20' ) end [2024-12-31 17:09:18] Production.INFO: ProcessCDR(1,14144977,1,1,2) [2024-12-31 17:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144977', 'tblTempUsageDetail_20' ) start [2024-12-31 17:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144977', 'tblTempUsageDetail_20' ) end [2024-12-31 17:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:09:22] Production.INFO: ==11852== Releasing lock... [2024-12-31 17:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:09:22] Production.INFO: 49.75 MB #Memory Used# [2024-12-31 17:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:10:05 [end_date_ymd] => 2024-12-31 17:10:05 [RateCDR] => 1 ) [2024-12-31 17:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:10:05' and `end` < '2024-12-31 17:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:10:20] Production.INFO: count ==2921 [2024-12-31 17:10:20] Production.ERROR: pbx CDR StartTime 2024-12-31 14:10:05 - End Time 2024-12-31 17:10:05 [2024-12-31 17:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144983', 'tblTempUsageDetail_20' ) start [2024-12-31 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144983', 'tblTempUsageDetail_20' ) end [2024-12-31 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144983', 'tblTempVendorCDR_20' ) start [2024-12-31 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144983', 'tblTempVendorCDR_20' ) end [2024-12-31 17:10:20] Production.INFO: ProcessCDR(1,14144983,1,1,2) [2024-12-31 17:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144983', 'tblTempUsageDetail_20' ) start [2024-12-31 17:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144983', 'tblTempUsageDetail_20' ) end [2024-12-31 17:10:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:10:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:10:24] Production.INFO: ==11927== Releasing lock... [2024-12-31 17:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:10:24] Production.INFO: 49.5 MB #Memory Used# [2024-12-31 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:11:05 [end_date_ymd] => 2024-12-31 17:11:05 [RateCDR] => 1 ) [2024-12-31 17:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:11:05' and `end` < '2024-12-31 17:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:11:19] Production.INFO: count ==2920 [2024-12-31 17:11:19] Production.ERROR: pbx CDR StartTime 2024-12-31 14:11:05 - End Time 2024-12-31 17:11:05 [2024-12-31 17:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144988', 'tblTempUsageDetail_20' ) start [2024-12-31 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144988', 'tblTempUsageDetail_20' ) end [2024-12-31 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144988', 'tblTempVendorCDR_20' ) start [2024-12-31 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144988', 'tblTempVendorCDR_20' ) end [2024-12-31 17:11:20] Production.INFO: ProcessCDR(1,14144988,1,1,2) [2024-12-31 17:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144988', 'tblTempUsageDetail_20' ) start [2024-12-31 17:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144988', 'tblTempUsageDetail_20' ) end [2024-12-31 17:11:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:11:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:11:23] Production.INFO: ==12005== Releasing lock... [2024-12-31 17:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:11:23] Production.INFO: 49.5 MB #Memory Used# [2024-12-31 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:12:05 [end_date_ymd] => 2024-12-31 17:12:05 [RateCDR] => 1 ) [2024-12-31 17:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:12:05' and `end` < '2024-12-31 17:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:12:18] Production.INFO: count ==2916 [2024-12-31 17:12:19] Production.ERROR: pbx CDR StartTime 2024-12-31 14:12:05 - End Time 2024-12-31 17:12:05 [2024-12-31 17:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144993', 'tblTempUsageDetail_20' ) start [2024-12-31 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144993', 'tblTempUsageDetail_20' ) end [2024-12-31 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144993', 'tblTempVendorCDR_20' ) start [2024-12-31 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144993', 'tblTempVendorCDR_20' ) end [2024-12-31 17:12:19] Production.INFO: ProcessCDR(1,14144993,1,1,2) [2024-12-31 17:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144993', 'tblTempUsageDetail_20' ) start [2024-12-31 17:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144993', 'tblTempUsageDetail_20' ) end [2024-12-31 17:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:12:22] Production.INFO: ==12077== Releasing lock... [2024-12-31 17:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:12:22] Production.INFO: 49.75 MB #Memory Used# [2024-12-31 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:13:05 [end_date_ymd] => 2024-12-31 17:13:05 [RateCDR] => 1 ) [2024-12-31 17:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:13:05' and `end` < '2024-12-31 17:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:13:18] Production.INFO: count ==2914 [2024-12-31 17:13:19] Production.ERROR: pbx CDR StartTime 2024-12-31 14:13:05 - End Time 2024-12-31 17:13:05 [2024-12-31 17:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144998', 'tblTempUsageDetail_20' ) start [2024-12-31 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14144998', 'tblTempUsageDetail_20' ) end [2024-12-31 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144998', 'tblTempVendorCDR_20' ) start [2024-12-31 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14144998', 'tblTempVendorCDR_20' ) end [2024-12-31 17:13:19] Production.INFO: ProcessCDR(1,14144998,1,1,2) [2024-12-31 17:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14144998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14144998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14144998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14144998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144998', 'tblTempUsageDetail_20' ) start [2024-12-31 17:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14144998', 'tblTempUsageDetail_20' ) end [2024-12-31 17:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:13:22] Production.INFO: ==12152== Releasing lock... [2024-12-31 17:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:13:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-31 17:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:14:04 [end_date_ymd] => 2024-12-31 17:14:04 [RateCDR] => 1 ) [2024-12-31 17:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:14:04' and `end` < '2024-12-31 17:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:14:20] Production.INFO: count ==2913 [2024-12-31 17:14:21] Production.ERROR: pbx CDR StartTime 2024-12-31 14:14:04 - End Time 2024-12-31 17:14:04 [2024-12-31 17:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145003', 'tblTempUsageDetail_20' ) start [2024-12-31 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145003', 'tblTempUsageDetail_20' ) end [2024-12-31 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145003', 'tblTempVendorCDR_20' ) start [2024-12-31 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145003', 'tblTempVendorCDR_20' ) end [2024-12-31 17:14:21] Production.INFO: ProcessCDR(1,14145003,1,1,2) [2024-12-31 17:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145003', 'tblTempUsageDetail_20' ) start [2024-12-31 17:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145003', 'tblTempUsageDetail_20' ) end [2024-12-31 17:14:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:14:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:14:26] Production.INFO: ==12221== Releasing lock... [2024-12-31 17:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:14:26] Production.INFO: 49.5 MB #Memory Used# [2024-12-31 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:15:05 [end_date_ymd] => 2024-12-31 17:15:05 [RateCDR] => 1 ) [2024-12-31 17:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:15:05' and `end` < '2024-12-31 17:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:15:18] Production.INFO: count ==2914 [2024-12-31 17:15:19] Production.ERROR: pbx CDR StartTime 2024-12-31 14:15:05 - End Time 2024-12-31 17:15:05 [2024-12-31 17:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145008', 'tblTempUsageDetail_20' ) start [2024-12-31 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145008', 'tblTempUsageDetail_20' ) end [2024-12-31 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145008', 'tblTempVendorCDR_20' ) start [2024-12-31 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145008', 'tblTempVendorCDR_20' ) end [2024-12-31 17:15:19] Production.INFO: ProcessCDR(1,14145008,1,1,2) [2024-12-31 17:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145008', 'tblTempUsageDetail_20' ) start [2024-12-31 17:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145008', 'tblTempUsageDetail_20' ) end [2024-12-31 17:15:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:15:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:15:23] Production.INFO: ==12293== Releasing lock... [2024-12-31 17:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:15:23] Production.INFO: 49.5 MB #Memory Used# [2024-12-31 17:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:16:04 [end_date_ymd] => 2024-12-31 17:16:04 [RateCDR] => 1 ) [2024-12-31 17:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:16:04' and `end` < '2024-12-31 17:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:16:18] Production.INFO: count ==2917 [2024-12-31 17:16:19] Production.ERROR: pbx CDR StartTime 2024-12-31 14:16:04 - End Time 2024-12-31 17:16:04 [2024-12-31 17:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145013', 'tblTempUsageDetail_20' ) start [2024-12-31 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145013', 'tblTempUsageDetail_20' ) end [2024-12-31 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145013', 'tblTempVendorCDR_20' ) start [2024-12-31 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145013', 'tblTempVendorCDR_20' ) end [2024-12-31 17:16:19] Production.INFO: ProcessCDR(1,14145013,1,1,2) [2024-12-31 17:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145013', 'tblTempUsageDetail_20' ) start [2024-12-31 17:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145013', 'tblTempUsageDetail_20' ) end [2024-12-31 17:16:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:16:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:16:23] Production.INFO: ==12363== Releasing lock... [2024-12-31 17:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:16:23] Production.INFO: 49.5 MB #Memory Used# [2024-12-31 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:17:05 [end_date_ymd] => 2024-12-31 17:17:05 [RateCDR] => 1 ) [2024-12-31 17:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:17:05' and `end` < '2024-12-31 17:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:17:19] Production.INFO: count ==2911 [2024-12-31 17:17:19] Production.ERROR: pbx CDR StartTime 2024-12-31 14:17:05 - End Time 2024-12-31 17:17:05 [2024-12-31 17:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145018', 'tblTempUsageDetail_20' ) start [2024-12-31 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145018', 'tblTempUsageDetail_20' ) end [2024-12-31 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145018', 'tblTempVendorCDR_20' ) start [2024-12-31 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145018', 'tblTempVendorCDR_20' ) end [2024-12-31 17:17:19] Production.INFO: ProcessCDR(1,14145018,1,1,2) [2024-12-31 17:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145018', 'tblTempUsageDetail_20' ) start [2024-12-31 17:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145018', 'tblTempUsageDetail_20' ) end [2024-12-31 17:17:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:17:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:17:24] Production.INFO: ==12434== Releasing lock... [2024-12-31 17:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:17:24] Production.INFO: 49.5 MB #Memory Used# [2024-12-31 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:18:05 [end_date_ymd] => 2024-12-31 17:18:05 [RateCDR] => 1 ) [2024-12-31 17:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:18:05' and `end` < '2024-12-31 17:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:18:19] Production.INFO: count ==2914 [2024-12-31 17:18:20] Production.ERROR: pbx CDR StartTime 2024-12-31 14:18:05 - End Time 2024-12-31 17:18:05 [2024-12-31 17:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145023', 'tblTempUsageDetail_20' ) start [2024-12-31 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145023', 'tblTempUsageDetail_20' ) end [2024-12-31 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145023', 'tblTempVendorCDR_20' ) start [2024-12-31 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145023', 'tblTempVendorCDR_20' ) end [2024-12-31 17:18:20] Production.INFO: ProcessCDR(1,14145023,1,1,2) [2024-12-31 17:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145023', 'tblTempUsageDetail_20' ) start [2024-12-31 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145023', 'tblTempUsageDetail_20' ) end [2024-12-31 17:18:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:18:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:18:25] Production.INFO: ==12505== Releasing lock... [2024-12-31 17:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:18:25] Production.INFO: 49.5 MB #Memory Used# [2024-12-31 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:19:05 [end_date_ymd] => 2024-12-31 17:19:05 [RateCDR] => 1 ) [2024-12-31 17:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:19:05' and `end` < '2024-12-31 17:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:19:18] Production.INFO: count ==2912 [2024-12-31 17:19:19] Production.ERROR: pbx CDR StartTime 2024-12-31 14:19:05 - End Time 2024-12-31 17:19:05 [2024-12-31 17:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145028', 'tblTempUsageDetail_20' ) start [2024-12-31 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145028', 'tblTempUsageDetail_20' ) end [2024-12-31 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145028', 'tblTempVendorCDR_20' ) start [2024-12-31 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145028', 'tblTempVendorCDR_20' ) end [2024-12-31 17:19:19] Production.INFO: ProcessCDR(1,14145028,1,1,2) [2024-12-31 17:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145028', 'tblTempUsageDetail_20' ) start [2024-12-31 17:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145028', 'tblTempUsageDetail_20' ) end [2024-12-31 17:19:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:19:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:19:24] Production.INFO: ==12581== Releasing lock... [2024-12-31 17:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:19:24] Production.INFO: 49.5 MB #Memory Used# [2024-12-31 17:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:20:05 [end_date_ymd] => 2024-12-31 17:20:05 [RateCDR] => 1 ) [2024-12-31 17:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:20:05' and `end` < '2024-12-31 17:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:20:22] Production.INFO: count ==2899 [2024-12-31 17:20:23] Production.ERROR: pbx CDR StartTime 2024-12-31 14:20:05 - End Time 2024-12-31 17:20:05 [2024-12-31 17:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145033', 'tblTempUsageDetail_20' ) start [2024-12-31 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145033', 'tblTempUsageDetail_20' ) end [2024-12-31 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145033', 'tblTempVendorCDR_20' ) start [2024-12-31 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145033', 'tblTempVendorCDR_20' ) end [2024-12-31 17:20:23] Production.INFO: ProcessCDR(1,14145033,1,1,2) [2024-12-31 17:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145033', 'tblTempUsageDetail_20' ) start [2024-12-31 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145033', 'tblTempUsageDetail_20' ) end [2024-12-31 17:20:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:20:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:20:27] Production.INFO: ==12691== Releasing lock... [2024-12-31 17:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:20:27] Production.INFO: 49.5 MB #Memory Used# [2024-12-31 17:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:21:04 [end_date_ymd] => 2024-12-31 17:21:04 [RateCDR] => 1 ) [2024-12-31 17:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:21:04' and `end` < '2024-12-31 17:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:21:18] Production.INFO: count ==2856 [2024-12-31 17:21:19] Production.ERROR: pbx CDR StartTime 2024-12-31 14:21:04 - End Time 2024-12-31 17:21:04 [2024-12-31 17:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145039', 'tblTempUsageDetail_20' ) start [2024-12-31 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145039', 'tblTempUsageDetail_20' ) end [2024-12-31 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145039', 'tblTempVendorCDR_20' ) start [2024-12-31 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145039', 'tblTempVendorCDR_20' ) end [2024-12-31 17:21:19] Production.INFO: ProcessCDR(1,14145039,1,1,2) [2024-12-31 17:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145039', 'tblTempUsageDetail_20' ) start [2024-12-31 17:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145039', 'tblTempUsageDetail_20' ) end [2024-12-31 17:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:21:22] Production.INFO: ==12763== Releasing lock... [2024-12-31 17:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:21:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-31 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:22:05 [end_date_ymd] => 2024-12-31 17:22:05 [RateCDR] => 1 ) [2024-12-31 17:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:22:05' and `end` < '2024-12-31 17:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:22:18] Production.INFO: count ==2848 [2024-12-31 17:22:19] Production.ERROR: pbx CDR StartTime 2024-12-31 14:22:05 - End Time 2024-12-31 17:22:05 [2024-12-31 17:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145044', 'tblTempUsageDetail_20' ) start [2024-12-31 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145044', 'tblTempUsageDetail_20' ) end [2024-12-31 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145044', 'tblTempVendorCDR_20' ) start [2024-12-31 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145044', 'tblTempVendorCDR_20' ) end [2024-12-31 17:22:19] Production.INFO: ProcessCDR(1,14145044,1,1,2) [2024-12-31 17:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145044', 'tblTempUsageDetail_20' ) start [2024-12-31 17:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145044', 'tblTempUsageDetail_20' ) end [2024-12-31 17:22:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:22:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:22:23] Production.INFO: ==12834== Releasing lock... [2024-12-31 17:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:22:23] Production.INFO: 49 MB #Memory Used# [2024-12-31 17:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:23:04 [end_date_ymd] => 2024-12-31 17:23:04 [RateCDR] => 1 ) [2024-12-31 17:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:23:04' and `end` < '2024-12-31 17:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:23:17] Production.INFO: count ==2849 [2024-12-31 17:23:18] Production.ERROR: pbx CDR StartTime 2024-12-31 14:23:04 - End Time 2024-12-31 17:23:04 [2024-12-31 17:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145049', 'tblTempUsageDetail_20' ) start [2024-12-31 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145049', 'tblTempUsageDetail_20' ) end [2024-12-31 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145049', 'tblTempVendorCDR_20' ) start [2024-12-31 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145049', 'tblTempVendorCDR_20' ) end [2024-12-31 17:23:18] Production.INFO: ProcessCDR(1,14145049,1,1,2) [2024-12-31 17:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145049', 'tblTempUsageDetail_20' ) start [2024-12-31 17:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145049', 'tblTempUsageDetail_20' ) end [2024-12-31 17:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:23:22] Production.INFO: ==12902== Releasing lock... [2024-12-31 17:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:23:22] Production.INFO: 49 MB #Memory Used# [2024-12-31 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:24:05 [end_date_ymd] => 2024-12-31 17:24:05 [RateCDR] => 1 ) [2024-12-31 17:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:24:05' and `end` < '2024-12-31 17:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:24:19] Production.INFO: count ==2847 [2024-12-31 17:24:20] Production.ERROR: pbx CDR StartTime 2024-12-31 14:24:05 - End Time 2024-12-31 17:24:05 [2024-12-31 17:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145054', 'tblTempUsageDetail_20' ) start [2024-12-31 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145054', 'tblTempUsageDetail_20' ) end [2024-12-31 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145054', 'tblTempVendorCDR_20' ) start [2024-12-31 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145054', 'tblTempVendorCDR_20' ) end [2024-12-31 17:24:20] Production.INFO: ProcessCDR(1,14145054,1,1,2) [2024-12-31 17:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145054', 'tblTempUsageDetail_20' ) start [2024-12-31 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145054', 'tblTempUsageDetail_20' ) end [2024-12-31 17:24:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:24:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:24:25] Production.INFO: ==12973== Releasing lock... [2024-12-31 17:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:24:25] Production.INFO: 49 MB #Memory Used# [2024-12-31 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:25:05 [end_date_ymd] => 2024-12-31 17:25:05 [RateCDR] => 1 ) [2024-12-31 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:25:05' and `end` < '2024-12-31 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:25:19] Production.INFO: count ==2833 [2024-12-31 17:25:20] Production.ERROR: pbx CDR StartTime 2024-12-31 14:25:05 - End Time 2024-12-31 17:25:05 [2024-12-31 17:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145059', 'tblTempUsageDetail_20' ) start [2024-12-31 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145059', 'tblTempUsageDetail_20' ) end [2024-12-31 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145059', 'tblTempVendorCDR_20' ) start [2024-12-31 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145059', 'tblTempVendorCDR_20' ) end [2024-12-31 17:25:20] Production.INFO: ProcessCDR(1,14145059,1,1,2) [2024-12-31 17:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145059', 'tblTempUsageDetail_20' ) start [2024-12-31 17:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145059', 'tblTempUsageDetail_20' ) end [2024-12-31 17:25:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:25:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:25:23] Production.INFO: ==13046== Releasing lock... [2024-12-31 17:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:25:23] Production.INFO: 49 MB #Memory Used# [2024-12-31 17:26:21] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:26:21 [end_date_ymd] => 2024-12-31 17:26:21 [RateCDR] => 1 ) [2024-12-31 17:26:21] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:26:21' and `end` < '2024-12-31 17:26:21' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:26:35] Production.INFO: count ==2839 [2024-12-31 17:27:04] Production.ERROR: pbx CDR StartTime 2024-12-31 14:26:21 - End Time 2024-12-31 17:26:21 [2024-12-31 17:27:04] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:27:04] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145064', 'tblTempUsageDetail_20' ) start [2024-12-31 17:27:04] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145064', 'tblTempUsageDetail_20' ) end [2024-12-31 17:27:04] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145064', 'tblTempVendorCDR_20' ) start [2024-12-31 17:27:04] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145064', 'tblTempVendorCDR_20' ) end [2024-12-31 17:27:04] Production.INFO: ProcessCDR(1,14145064,1,1,2) [2024-12-31 17:27:04] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:27:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:27:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:27:48] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:27:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145064', 'tblTempUsageDetail_20' ) start [2024-12-31 17:27:50] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145064', 'tblTempUsageDetail_20' ) end [2024-12-31 17:27:50] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:27:50] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:27:50] Production.INFO: ==13121== Releasing lock... [2024-12-31 17:27:50] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:27:50] Production.INFO: 49 MB #Memory Used# [2024-12-31 17:28:13] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:28:13 [end_date_ymd] => 2024-12-31 17:28:13 [RateCDR] => 1 ) [2024-12-31 17:28:13] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:28:13' and `end` < '2024-12-31 17:28:13' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:28:26] Production.INFO: count ==2840 [2024-12-31 17:28:44] Production.ERROR: pbx CDR StartTime 2024-12-31 14:28:13 - End Time 2024-12-31 17:28:13 [2024-12-31 17:28:44] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:28:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145072', 'tblTempUsageDetail_20' ) start [2024-12-31 17:28:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145072', 'tblTempUsageDetail_20' ) end [2024-12-31 17:28:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145072', 'tblTempVendorCDR_20' ) start [2024-12-31 17:28:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145072', 'tblTempVendorCDR_20' ) end [2024-12-31 17:28:46] Production.INFO: ProcessCDR(1,14145072,1,1,2) [2024-12-31 17:28:46] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:28:50] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:28:50] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:29:04] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:29:04] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145072', 'tblTempUsageDetail_20' ) start [2024-12-31 17:29:04] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145072', 'tblTempUsageDetail_20' ) end [2024-12-31 17:29:04] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:29:04] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:29:06] Production.INFO: ==13249== Releasing lock... [2024-12-31 17:29:06] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:29:06] Production.INFO: 49 MB #Memory Used# [2024-12-31 17:30:21] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:30:21 [end_date_ymd] => 2024-12-31 17:30:21 [RateCDR] => 1 ) [2024-12-31 17:30:21] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:30:21' and `end` < '2024-12-31 17:30:21' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:30:34] Production.INFO: count ==2828 [2024-12-31 17:30:53] Production.ERROR: pbx CDR StartTime 2024-12-31 14:30:21 - End Time 2024-12-31 17:30:21 [2024-12-31 17:30:53] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:30:53] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145081', 'tblTempUsageDetail_20' ) start [2024-12-31 17:30:56] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145081', 'tblTempUsageDetail_20' ) end [2024-12-31 17:30:56] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145081', 'tblTempVendorCDR_20' ) start [2024-12-31 17:30:56] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145081', 'tblTempVendorCDR_20' ) end [2024-12-31 17:30:56] Production.INFO: ProcessCDR(1,14145081,1,1,2) [2024-12-31 17:30:56] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:31:00] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:31:00] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:31:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:31:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145081', 'tblTempUsageDetail_20' ) start [2024-12-31 17:31:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145081', 'tblTempUsageDetail_20' ) end [2024-12-31 17:31:33] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:31:33] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:31:33] Production.INFO: ==13383== Releasing lock... [2024-12-31 17:31:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:31:33] Production.INFO: 49 MB #Memory Used# [2024-12-31 17:32:27] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:32:27 [end_date_ymd] => 2024-12-31 17:32:27 [RateCDR] => 1 ) [2024-12-31 17:32:27] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:32:27' and `end` < '2024-12-31 17:32:27' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:32:41] Production.INFO: count ==2871 [2024-12-31 17:33:03] Production.ERROR: pbx CDR StartTime 2024-12-31 14:32:27 - End Time 2024-12-31 17:32:27 [2024-12-31 17:33:03] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:33:03] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145089', 'tblTempUsageDetail_20' ) start [2024-12-31 17:33:04] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145089', 'tblTempUsageDetail_20' ) end [2024-12-31 17:33:04] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145089', 'tblTempVendorCDR_20' ) start [2024-12-31 17:33:05] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145089', 'tblTempVendorCDR_20' ) end [2024-12-31 17:33:05] Production.INFO: ProcessCDR(1,14145089,1,1,2) [2024-12-31 17:33:05] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:33:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:33:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145089', 'tblTempUsageDetail_20' ) start [2024-12-31 17:33:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145089', 'tblTempUsageDetail_20' ) end [2024-12-31 17:33:41] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:33:41] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:33:41] Production.INFO: ==13520== Releasing lock... [2024-12-31 17:33:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:33:41] Production.INFO: 49.25 MB #Memory Used# [2024-12-31 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:34:05 [end_date_ymd] => 2024-12-31 17:34:05 [RateCDR] => 1 ) [2024-12-31 17:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:34:05' and `end` < '2024-12-31 17:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:34:20] Production.INFO: count ==2865 [2024-12-31 17:34:21] Production.ERROR: pbx CDR StartTime 2024-12-31 14:34:05 - End Time 2024-12-31 17:34:05 [2024-12-31 17:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145097', 'tblTempUsageDetail_20' ) start [2024-12-31 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145097', 'tblTempUsageDetail_20' ) end [2024-12-31 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145097', 'tblTempVendorCDR_20' ) start [2024-12-31 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145097', 'tblTempVendorCDR_20' ) end [2024-12-31 17:34:21] Production.INFO: ProcessCDR(1,14145097,1,1,2) [2024-12-31 17:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145097', 'tblTempUsageDetail_20' ) start [2024-12-31 17:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145097', 'tblTempUsageDetail_20' ) end [2024-12-31 17:34:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:34:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:34:26] Production.INFO: ==13658== Releasing lock... [2024-12-31 17:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:34:26] Production.INFO: 49 MB #Memory Used# [2024-12-31 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:35:05 [end_date_ymd] => 2024-12-31 17:35:05 [RateCDR] => 1 ) [2024-12-31 17:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:35:05' and `end` < '2024-12-31 17:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:35:21] Production.INFO: count ==2857 [2024-12-31 17:35:21] Production.ERROR: pbx CDR StartTime 2024-12-31 14:35:05 - End Time 2024-12-31 17:35:05 [2024-12-31 17:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145102', 'tblTempUsageDetail_20' ) start [2024-12-31 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145102', 'tblTempUsageDetail_20' ) end [2024-12-31 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145102', 'tblTempVendorCDR_20' ) start [2024-12-31 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145102', 'tblTempVendorCDR_20' ) end [2024-12-31 17:35:21] Production.INFO: ProcessCDR(1,14145102,1,1,2) [2024-12-31 17:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145102', 'tblTempUsageDetail_20' ) start [2024-12-31 17:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145102', 'tblTempUsageDetail_20' ) end [2024-12-31 17:35:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:35:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:35:26] Production.INFO: ==13768== Releasing lock... [2024-12-31 17:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:35:26] Production.INFO: 49 MB #Memory Used# [2024-12-31 17:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:36:04 [end_date_ymd] => 2024-12-31 17:36:04 [RateCDR] => 1 ) [2024-12-31 17:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:36:04' and `end` < '2024-12-31 17:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:36:17] Production.INFO: count ==2836 [2024-12-31 17:36:18] Production.ERROR: pbx CDR StartTime 2024-12-31 14:36:04 - End Time 2024-12-31 17:36:04 [2024-12-31 17:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145107', 'tblTempUsageDetail_20' ) start [2024-12-31 17:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145107', 'tblTempUsageDetail_20' ) end [2024-12-31 17:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145107', 'tblTempVendorCDR_20' ) start [2024-12-31 17:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145107', 'tblTempVendorCDR_20' ) end [2024-12-31 17:36:18] Production.INFO: ProcessCDR(1,14145107,1,1,2) [2024-12-31 17:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145107', 'tblTempUsageDetail_20' ) start [2024-12-31 17:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145107', 'tblTempUsageDetail_20' ) end [2024-12-31 17:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:36:21] Production.INFO: ==13839== Releasing lock... [2024-12-31 17:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:36:21] Production.INFO: 49 MB #Memory Used# [2024-12-31 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:37:05 [end_date_ymd] => 2024-12-31 17:37:05 [RateCDR] => 1 ) [2024-12-31 17:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:37:05' and `end` < '2024-12-31 17:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:37:19] Production.INFO: count ==2817 [2024-12-31 17:37:20] Production.ERROR: pbx CDR StartTime 2024-12-31 14:37:05 - End Time 2024-12-31 17:37:05 [2024-12-31 17:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145112', 'tblTempUsageDetail_20' ) start [2024-12-31 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145112', 'tblTempUsageDetail_20' ) end [2024-12-31 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145112', 'tblTempVendorCDR_20' ) start [2024-12-31 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145112', 'tblTempVendorCDR_20' ) end [2024-12-31 17:37:20] Production.INFO: ProcessCDR(1,14145112,1,1,2) [2024-12-31 17:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145112', 'tblTempUsageDetail_20' ) start [2024-12-31 17:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145112', 'tblTempUsageDetail_20' ) end [2024-12-31 17:37:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:37:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:37:23] Production.INFO: ==13909== Releasing lock... [2024-12-31 17:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:37:23] Production.INFO: 49 MB #Memory Used# [2024-12-31 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:38:05 [end_date_ymd] => 2024-12-31 17:38:05 [RateCDR] => 1 ) [2024-12-31 17:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:38:05' and `end` < '2024-12-31 17:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:38:18] Production.INFO: count ==2815 [2024-12-31 17:38:19] Production.ERROR: pbx CDR StartTime 2024-12-31 14:38:05 - End Time 2024-12-31 17:38:05 [2024-12-31 17:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145117', 'tblTempUsageDetail_20' ) start [2024-12-31 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145117', 'tblTempUsageDetail_20' ) end [2024-12-31 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145117', 'tblTempVendorCDR_20' ) start [2024-12-31 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145117', 'tblTempVendorCDR_20' ) end [2024-12-31 17:38:19] Production.INFO: ProcessCDR(1,14145117,1,1,2) [2024-12-31 17:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145117', 'tblTempUsageDetail_20' ) start [2024-12-31 17:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145117', 'tblTempUsageDetail_20' ) end [2024-12-31 17:38:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:38:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:38:24] Production.INFO: ==13983== Releasing lock... [2024-12-31 17:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:38:24] Production.INFO: 49 MB #Memory Used# [2024-12-31 17:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:39:04 [end_date_ymd] => 2024-12-31 17:39:04 [RateCDR] => 1 ) [2024-12-31 17:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:39:04' and `end` < '2024-12-31 17:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:39:19] Production.INFO: count ==2783 [2024-12-31 17:39:20] Production.ERROR: pbx CDR StartTime 2024-12-31 14:39:04 - End Time 2024-12-31 17:39:04 [2024-12-31 17:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145122', 'tblTempUsageDetail_20' ) start [2024-12-31 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145122', 'tblTempUsageDetail_20' ) end [2024-12-31 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145122', 'tblTempVendorCDR_20' ) start [2024-12-31 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145122', 'tblTempVendorCDR_20' ) end [2024-12-31 17:39:20] Production.INFO: ProcessCDR(1,14145122,1,1,2) [2024-12-31 17:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145122', 'tblTempUsageDetail_20' ) start [2024-12-31 17:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145122', 'tblTempUsageDetail_20' ) end [2024-12-31 17:39:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:39:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:39:23] Production.INFO: ==14051== Releasing lock... [2024-12-31 17:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:39:23] Production.INFO: 48.75 MB #Memory Used# [2024-12-31 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:40:06 [end_date_ymd] => 2024-12-31 17:40:06 [RateCDR] => 1 ) [2024-12-31 17:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:40:06' and `end` < '2024-12-31 17:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:40:19] Production.INFO: count ==2782 [2024-12-31 17:40:20] Production.ERROR: pbx CDR StartTime 2024-12-31 14:40:06 - End Time 2024-12-31 17:40:06 [2024-12-31 17:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145128', 'tblTempUsageDetail_20' ) start [2024-12-31 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145128', 'tblTempUsageDetail_20' ) end [2024-12-31 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145128', 'tblTempVendorCDR_20' ) start [2024-12-31 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145128', 'tblTempVendorCDR_20' ) end [2024-12-31 17:40:20] Production.INFO: ProcessCDR(1,14145128,1,1,2) [2024-12-31 17:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145128', 'tblTempUsageDetail_20' ) start [2024-12-31 17:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145128', 'tblTempUsageDetail_20' ) end [2024-12-31 17:40:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:40:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:40:23] Production.INFO: ==14129== Releasing lock... [2024-12-31 17:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:40:23] Production.INFO: 48.75 MB #Memory Used# [2024-12-31 17:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:41:04 [end_date_ymd] => 2024-12-31 17:41:04 [RateCDR] => 1 ) [2024-12-31 17:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:41:04' and `end` < '2024-12-31 17:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:41:18] Production.INFO: count ==2767 [2024-12-31 17:41:19] Production.ERROR: pbx CDR StartTime 2024-12-31 14:41:04 - End Time 2024-12-31 17:41:04 [2024-12-31 17:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145133', 'tblTempUsageDetail_20' ) start [2024-12-31 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145133', 'tblTempUsageDetail_20' ) end [2024-12-31 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145133', 'tblTempVendorCDR_20' ) start [2024-12-31 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145133', 'tblTempVendorCDR_20' ) end [2024-12-31 17:41:19] Production.INFO: ProcessCDR(1,14145133,1,1,2) [2024-12-31 17:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145133', 'tblTempUsageDetail_20' ) start [2024-12-31 17:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145133', 'tblTempUsageDetail_20' ) end [2024-12-31 17:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:41:22] Production.INFO: ==14204== Releasing lock... [2024-12-31 17:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:41:22] Production.INFO: 48.75 MB #Memory Used# [2024-12-31 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:42:05 [end_date_ymd] => 2024-12-31 17:42:05 [RateCDR] => 1 ) [2024-12-31 17:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:42:05' and `end` < '2024-12-31 17:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:42:18] Production.INFO: count ==2767 [2024-12-31 17:42:19] Production.ERROR: pbx CDR StartTime 2024-12-31 14:42:05 - End Time 2024-12-31 17:42:05 [2024-12-31 17:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145138', 'tblTempUsageDetail_20' ) start [2024-12-31 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145138', 'tblTempUsageDetail_20' ) end [2024-12-31 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145138', 'tblTempVendorCDR_20' ) start [2024-12-31 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145138', 'tblTempVendorCDR_20' ) end [2024-12-31 17:42:19] Production.INFO: ProcessCDR(1,14145138,1,1,2) [2024-12-31 17:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145138', 'tblTempUsageDetail_20' ) start [2024-12-31 17:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145138', 'tblTempUsageDetail_20' ) end [2024-12-31 17:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:42:22] Production.INFO: ==14275== Releasing lock... [2024-12-31 17:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:42:22] Production.INFO: 48.75 MB #Memory Used# [2024-12-31 17:43:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:43:06 [end_date_ymd] => 2024-12-31 17:43:06 [RateCDR] => 1 ) [2024-12-31 17:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:43:06' and `end` < '2024-12-31 17:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:43:19] Production.INFO: count ==2751 [2024-12-31 17:43:19] Production.ERROR: pbx CDR StartTime 2024-12-31 14:43:06 - End Time 2024-12-31 17:43:06 [2024-12-31 17:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145143', 'tblTempUsageDetail_20' ) start [2024-12-31 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145143', 'tblTempUsageDetail_20' ) end [2024-12-31 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145143', 'tblTempVendorCDR_20' ) start [2024-12-31 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145143', 'tblTempVendorCDR_20' ) end [2024-12-31 17:43:20] Production.INFO: ProcessCDR(1,14145143,1,1,2) [2024-12-31 17:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145143', 'tblTempUsageDetail_20' ) start [2024-12-31 17:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145143', 'tblTempUsageDetail_20' ) end [2024-12-31 17:43:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:43:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:43:23] Production.INFO: ==14344== Releasing lock... [2024-12-31 17:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:43:23] Production.INFO: 48.75 MB #Memory Used# [2024-12-31 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:44:05 [end_date_ymd] => 2024-12-31 17:44:05 [RateCDR] => 1 ) [2024-12-31 17:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:44:05' and `end` < '2024-12-31 17:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:44:18] Production.INFO: count ==2750 [2024-12-31 17:44:19] Production.ERROR: pbx CDR StartTime 2024-12-31 14:44:05 - End Time 2024-12-31 17:44:05 [2024-12-31 17:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145148', 'tblTempUsageDetail_20' ) start [2024-12-31 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145148', 'tblTempUsageDetail_20' ) end [2024-12-31 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145148', 'tblTempVendorCDR_20' ) start [2024-12-31 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145148', 'tblTempVendorCDR_20' ) end [2024-12-31 17:44:19] Production.INFO: ProcessCDR(1,14145148,1,1,2) [2024-12-31 17:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145148', 'tblTempUsageDetail_20' ) start [2024-12-31 17:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145148', 'tblTempUsageDetail_20' ) end [2024-12-31 17:44:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:44:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:44:24] Production.INFO: ==14419== Releasing lock... [2024-12-31 17:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:44:24] Production.INFO: 48.75 MB #Memory Used# [2024-12-31 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:45:05 [end_date_ymd] => 2024-12-31 17:45:05 [RateCDR] => 1 ) [2024-12-31 17:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:45:05' and `end` < '2024-12-31 17:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:45:19] Production.INFO: count ==2751 [2024-12-31 17:45:19] Production.ERROR: pbx CDR StartTime 2024-12-31 14:45:05 - End Time 2024-12-31 17:45:05 [2024-12-31 17:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145153', 'tblTempUsageDetail_20' ) start [2024-12-31 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145153', 'tblTempUsageDetail_20' ) end [2024-12-31 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145153', 'tblTempVendorCDR_20' ) start [2024-12-31 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145153', 'tblTempVendorCDR_20' ) end [2024-12-31 17:45:19] Production.INFO: ProcessCDR(1,14145153,1,1,2) [2024-12-31 17:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145153', 'tblTempUsageDetail_20' ) start [2024-12-31 17:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145153', 'tblTempUsageDetail_20' ) end [2024-12-31 17:45:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:45:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:45:23] Production.INFO: ==14494== Releasing lock... [2024-12-31 17:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:45:23] Production.INFO: 48.75 MB #Memory Used# [2024-12-31 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:46:05 [end_date_ymd] => 2024-12-31 17:46:05 [RateCDR] => 1 ) [2024-12-31 17:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:46:05' and `end` < '2024-12-31 17:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:46:18] Production.INFO: count ==2734 [2024-12-31 17:46:19] Production.ERROR: pbx CDR StartTime 2024-12-31 14:46:05 - End Time 2024-12-31 17:46:05 [2024-12-31 17:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145158', 'tblTempUsageDetail_20' ) start [2024-12-31 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145158', 'tblTempUsageDetail_20' ) end [2024-12-31 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145158', 'tblTempVendorCDR_20' ) start [2024-12-31 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145158', 'tblTempVendorCDR_20' ) end [2024-12-31 17:46:19] Production.INFO: ProcessCDR(1,14145158,1,1,2) [2024-12-31 17:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145158', 'tblTempUsageDetail_20' ) start [2024-12-31 17:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145158', 'tblTempUsageDetail_20' ) end [2024-12-31 17:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:46:22] Production.INFO: ==14567== Releasing lock... [2024-12-31 17:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:46:22] Production.INFO: 48.75 MB #Memory Used# [2024-12-31 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:47:05 [end_date_ymd] => 2024-12-31 17:47:05 [RateCDR] => 1 ) [2024-12-31 17:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:47:05' and `end` < '2024-12-31 17:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:47:19] Production.INFO: count ==2729 [2024-12-31 17:47:19] Production.ERROR: pbx CDR StartTime 2024-12-31 14:47:05 - End Time 2024-12-31 17:47:05 [2024-12-31 17:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145163', 'tblTempUsageDetail_20' ) start [2024-12-31 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145163', 'tblTempUsageDetail_20' ) end [2024-12-31 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145163', 'tblTempVendorCDR_20' ) start [2024-12-31 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145163', 'tblTempVendorCDR_20' ) end [2024-12-31 17:47:19] Production.INFO: ProcessCDR(1,14145163,1,1,2) [2024-12-31 17:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145163', 'tblTempUsageDetail_20' ) start [2024-12-31 17:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145163', 'tblTempUsageDetail_20' ) end [2024-12-31 17:47:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:47:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:47:24] Production.INFO: ==14637== Releasing lock... [2024-12-31 17:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:47:24] Production.INFO: 48.25 MB #Memory Used# [2024-12-31 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:48:05 [end_date_ymd] => 2024-12-31 17:48:05 [RateCDR] => 1 ) [2024-12-31 17:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:48:05' and `end` < '2024-12-31 17:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:48:22] Production.INFO: count ==2722 [2024-12-31 17:48:23] Production.ERROR: pbx CDR StartTime 2024-12-31 14:48:05 - End Time 2024-12-31 17:48:05 [2024-12-31 17:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145168', 'tblTempUsageDetail_20' ) start [2024-12-31 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145168', 'tblTempUsageDetail_20' ) end [2024-12-31 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145168', 'tblTempVendorCDR_20' ) start [2024-12-31 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145168', 'tblTempVendorCDR_20' ) end [2024-12-31 17:48:23] Production.INFO: ProcessCDR(1,14145168,1,1,2) [2024-12-31 17:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145168', 'tblTempUsageDetail_20' ) start [2024-12-31 17:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145168', 'tblTempUsageDetail_20' ) end [2024-12-31 17:48:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:48:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:48:26] Production.INFO: ==14707== Releasing lock... [2024-12-31 17:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:48:26] Production.INFO: 48.5 MB #Memory Used# [2024-12-31 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:49:05 [end_date_ymd] => 2024-12-31 17:49:05 [RateCDR] => 1 ) [2024-12-31 17:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:49:05' and `end` < '2024-12-31 17:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:49:18] Production.INFO: count ==2725 [2024-12-31 17:49:19] Production.ERROR: pbx CDR StartTime 2024-12-31 14:49:05 - End Time 2024-12-31 17:49:05 [2024-12-31 17:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145173', 'tblTempUsageDetail_20' ) start [2024-12-31 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145173', 'tblTempUsageDetail_20' ) end [2024-12-31 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145173', 'tblTempVendorCDR_20' ) start [2024-12-31 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145173', 'tblTempVendorCDR_20' ) end [2024-12-31 17:49:19] Production.INFO: ProcessCDR(1,14145173,1,1,2) [2024-12-31 17:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145173', 'tblTempUsageDetail_20' ) start [2024-12-31 17:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145173', 'tblTempUsageDetail_20' ) end [2024-12-31 17:49:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:49:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:49:24] Production.INFO: ==14776== Releasing lock... [2024-12-31 17:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:49:24] Production.INFO: 48.5 MB #Memory Used# [2024-12-31 17:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:50:05 [end_date_ymd] => 2024-12-31 17:50:05 [RateCDR] => 1 ) [2024-12-31 17:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:50:05' and `end` < '2024-12-31 17:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:50:19] Production.INFO: count ==2719 [2024-12-31 17:50:19] Production.ERROR: pbx CDR StartTime 2024-12-31 14:50:05 - End Time 2024-12-31 17:50:05 [2024-12-31 17:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145178', 'tblTempUsageDetail_20' ) start [2024-12-31 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145178', 'tblTempUsageDetail_20' ) end [2024-12-31 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145178', 'tblTempVendorCDR_20' ) start [2024-12-31 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145178', 'tblTempVendorCDR_20' ) end [2024-12-31 17:50:19] Production.INFO: ProcessCDR(1,14145178,1,1,2) [2024-12-31 17:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145178', 'tblTempUsageDetail_20' ) start [2024-12-31 17:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145178', 'tblTempUsageDetail_20' ) end [2024-12-31 17:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:50:22] Production.INFO: ==14848== Releasing lock... [2024-12-31 17:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:50:22] Production.INFO: 48.5 MB #Memory Used# [2024-12-31 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:51:05 [end_date_ymd] => 2024-12-31 17:51:05 [RateCDR] => 1 ) [2024-12-31 17:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:51:05' and `end` < '2024-12-31 17:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:51:18] Production.INFO: count ==2738 [2024-12-31 17:51:19] Production.ERROR: pbx CDR StartTime 2024-12-31 14:51:05 - End Time 2024-12-31 17:51:05 [2024-12-31 17:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145184', 'tblTempUsageDetail_20' ) start [2024-12-31 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145184', 'tblTempUsageDetail_20' ) end [2024-12-31 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145184', 'tblTempVendorCDR_20' ) start [2024-12-31 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145184', 'tblTempVendorCDR_20' ) end [2024-12-31 17:51:19] Production.INFO: ProcessCDR(1,14145184,1,1,2) [2024-12-31 17:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145184', 'tblTempUsageDetail_20' ) start [2024-12-31 17:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145184', 'tblTempUsageDetail_20' ) end [2024-12-31 17:51:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:51:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:51:23] Production.INFO: ==14962== Releasing lock... [2024-12-31 17:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:51:23] Production.INFO: 48.25 MB #Memory Used# [2024-12-31 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:52:05 [end_date_ymd] => 2024-12-31 17:52:05 [RateCDR] => 1 ) [2024-12-31 17:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:52:05' and `end` < '2024-12-31 17:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:52:18] Production.INFO: count ==2730 [2024-12-31 17:52:19] Production.ERROR: pbx CDR StartTime 2024-12-31 14:52:05 - End Time 2024-12-31 17:52:05 [2024-12-31 17:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145189', 'tblTempUsageDetail_20' ) start [2024-12-31 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145189', 'tblTempUsageDetail_20' ) end [2024-12-31 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145189', 'tblTempVendorCDR_20' ) start [2024-12-31 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145189', 'tblTempVendorCDR_20' ) end [2024-12-31 17:52:19] Production.INFO: ProcessCDR(1,14145189,1,1,2) [2024-12-31 17:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145189', 'tblTempUsageDetail_20' ) start [2024-12-31 17:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145189', 'tblTempUsageDetail_20' ) end [2024-12-31 17:52:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:52:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:52:23] Production.INFO: ==15033== Releasing lock... [2024-12-31 17:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:52:23] Production.INFO: 48.5 MB #Memory Used# [2024-12-31 17:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:53:04 [end_date_ymd] => 2024-12-31 17:53:04 [RateCDR] => 1 ) [2024-12-31 17:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:53:04' and `end` < '2024-12-31 17:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:53:18] Production.INFO: count ==2726 [2024-12-31 17:53:18] Production.ERROR: pbx CDR StartTime 2024-12-31 14:53:04 - End Time 2024-12-31 17:53:04 [2024-12-31 17:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145194', 'tblTempUsageDetail_20' ) start [2024-12-31 17:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145194', 'tblTempUsageDetail_20' ) end [2024-12-31 17:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145194', 'tblTempVendorCDR_20' ) start [2024-12-31 17:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145194', 'tblTempVendorCDR_20' ) end [2024-12-31 17:53:18] Production.INFO: ProcessCDR(1,14145194,1,1,2) [2024-12-31 17:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145194', 'tblTempUsageDetail_20' ) start [2024-12-31 17:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145194', 'tblTempUsageDetail_20' ) end [2024-12-31 17:53:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:53:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:53:23] Production.INFO: ==15103== Releasing lock... [2024-12-31 17:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:53:23] Production.INFO: 48.5 MB #Memory Used# [2024-12-31 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:54:05 [end_date_ymd] => 2024-12-31 17:54:05 [RateCDR] => 1 ) [2024-12-31 17:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:54:05' and `end` < '2024-12-31 17:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:54:19] Production.INFO: count ==2704 [2024-12-31 17:54:20] Production.ERROR: pbx CDR StartTime 2024-12-31 14:54:05 - End Time 2024-12-31 17:54:05 [2024-12-31 17:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145199', 'tblTempUsageDetail_20' ) start [2024-12-31 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145199', 'tblTempUsageDetail_20' ) end [2024-12-31 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145199', 'tblTempVendorCDR_20' ) start [2024-12-31 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145199', 'tblTempVendorCDR_20' ) end [2024-12-31 17:54:20] Production.INFO: ProcessCDR(1,14145199,1,1,2) [2024-12-31 17:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145199', 'tblTempUsageDetail_20' ) start [2024-12-31 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145199', 'tblTempUsageDetail_20' ) end [2024-12-31 17:54:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:54:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:54:24] Production.INFO: ==15177== Releasing lock... [2024-12-31 17:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:54:24] Production.INFO: 48.25 MB #Memory Used# [2024-12-31 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:55:05 [end_date_ymd] => 2024-12-31 17:55:05 [RateCDR] => 1 ) [2024-12-31 17:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:55:05' and `end` < '2024-12-31 17:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:55:20] Production.INFO: count ==2680 [2024-12-31 17:55:20] Production.ERROR: pbx CDR StartTime 2024-12-31 14:55:05 - End Time 2024-12-31 17:55:05 [2024-12-31 17:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145204', 'tblTempUsageDetail_20' ) start [2024-12-31 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145204', 'tblTempUsageDetail_20' ) end [2024-12-31 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145204', 'tblTempVendorCDR_20' ) start [2024-12-31 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145204', 'tblTempVendorCDR_20' ) end [2024-12-31 17:55:20] Production.INFO: ProcessCDR(1,14145204,1,1,2) [2024-12-31 17:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145204', 'tblTempUsageDetail_20' ) start [2024-12-31 17:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145204', 'tblTempUsageDetail_20' ) end [2024-12-31 17:55:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:55:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:55:23] Production.INFO: ==15252== Releasing lock... [2024-12-31 17:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:55:23] Production.INFO: 48.25 MB #Memory Used# [2024-12-31 17:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:56:04 [end_date_ymd] => 2024-12-31 17:56:04 [RateCDR] => 1 ) [2024-12-31 17:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:56:04' and `end` < '2024-12-31 17:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:56:17] Production.INFO: count ==2639 [2024-12-31 17:56:18] Production.ERROR: pbx CDR StartTime 2024-12-31 14:56:04 - End Time 2024-12-31 17:56:04 [2024-12-31 17:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145209', 'tblTempUsageDetail_20' ) start [2024-12-31 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145209', 'tblTempUsageDetail_20' ) end [2024-12-31 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145209', 'tblTempVendorCDR_20' ) start [2024-12-31 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145209', 'tblTempVendorCDR_20' ) end [2024-12-31 17:56:18] Production.INFO: ProcessCDR(1,14145209,1,1,2) [2024-12-31 17:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145209', 'tblTempUsageDetail_20' ) start [2024-12-31 17:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145209', 'tblTempUsageDetail_20' ) end [2024-12-31 17:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:56:21] Production.INFO: ==15321== Releasing lock... [2024-12-31 17:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:56:21] Production.INFO: 47.75 MB #Memory Used# [2024-12-31 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:57:05 [end_date_ymd] => 2024-12-31 17:57:05 [RateCDR] => 1 ) [2024-12-31 17:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:57:05' and `end` < '2024-12-31 17:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:57:19] Production.INFO: count ==2612 [2024-12-31 17:57:20] Production.ERROR: pbx CDR StartTime 2024-12-31 14:57:05 - End Time 2024-12-31 17:57:05 [2024-12-31 17:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145214', 'tblTempUsageDetail_20' ) start [2024-12-31 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145214', 'tblTempUsageDetail_20' ) end [2024-12-31 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145214', 'tblTempVendorCDR_20' ) start [2024-12-31 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145214', 'tblTempVendorCDR_20' ) end [2024-12-31 17:57:20] Production.INFO: ProcessCDR(1,14145214,1,1,2) [2024-12-31 17:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145214', 'tblTempUsageDetail_20' ) start [2024-12-31 17:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145214', 'tblTempUsageDetail_20' ) end [2024-12-31 17:57:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:57:23] Production.INFO: ==15398== Releasing lock... [2024-12-31 17:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:57:23] Production.INFO: 47.75 MB #Memory Used# [2024-12-31 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:58:05 [end_date_ymd] => 2024-12-31 17:58:05 [RateCDR] => 1 ) [2024-12-31 17:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:58:05' and `end` < '2024-12-31 17:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:58:18] Production.INFO: count ==2604 [2024-12-31 17:58:18] Production.ERROR: pbx CDR StartTime 2024-12-31 14:58:05 - End Time 2024-12-31 17:58:05 [2024-12-31 17:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145219', 'tblTempUsageDetail_20' ) start [2024-12-31 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145219', 'tblTempUsageDetail_20' ) end [2024-12-31 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145219', 'tblTempVendorCDR_20' ) start [2024-12-31 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145219', 'tblTempVendorCDR_20' ) end [2024-12-31 17:58:19] Production.INFO: ProcessCDR(1,14145219,1,1,2) [2024-12-31 17:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145219', 'tblTempUsageDetail_20' ) start [2024-12-31 17:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145219', 'tblTempUsageDetail_20' ) end [2024-12-31 17:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:58:22] Production.INFO: ==15467== Releasing lock... [2024-12-31 17:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:58:22] Production.INFO: 47.5 MB #Memory Used# [2024-12-31 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 14:59:05 [end_date_ymd] => 2024-12-31 17:59:05 [RateCDR] => 1 ) [2024-12-31 17:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 14:59:05' and `end` < '2024-12-31 17:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 17:59:18] Production.INFO: count ==2599 [2024-12-31 17:59:19] Production.ERROR: pbx CDR StartTime 2024-12-31 14:59:05 - End Time 2024-12-31 17:59:05 [2024-12-31 17:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145224', 'tblTempUsageDetail_20' ) start [2024-12-31 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145224', 'tblTempUsageDetail_20' ) end [2024-12-31 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145224', 'tblTempVendorCDR_20' ) start [2024-12-31 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145224', 'tblTempVendorCDR_20' ) end [2024-12-31 17:59:19] Production.INFO: ProcessCDR(1,14145224,1,1,2) [2024-12-31 17:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 17:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 17:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145224', 'tblTempUsageDetail_20' ) start [2024-12-31 17:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145224', 'tblTempUsageDetail_20' ) end [2024-12-31 17:59:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 17:59:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 17:59:23] Production.INFO: ==15538== Releasing lock... [2024-12-31 17:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 17:59:23] Production.INFO: 47.5 MB #Memory Used# [2024-12-31 18:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:00:05 [end_date_ymd] => 2024-12-31 18:00:05 [RateCDR] => 1 ) [2024-12-31 18:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:00:05' and `end` < '2024-12-31 18:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:00:19] Production.INFO: count ==2589 [2024-12-31 18:00:19] Production.ERROR: pbx CDR StartTime 2024-12-31 15:00:05 - End Time 2024-12-31 18:00:05 [2024-12-31 18:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145229', 'tblTempUsageDetail_20' ) start [2024-12-31 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145229', 'tblTempUsageDetail_20' ) end [2024-12-31 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145229', 'tblTempVendorCDR_20' ) start [2024-12-31 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145229', 'tblTempVendorCDR_20' ) end [2024-12-31 18:00:19] Production.INFO: ProcessCDR(1,14145229,1,1,2) [2024-12-31 18:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145229', 'tblTempUsageDetail_20' ) start [2024-12-31 18:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145229', 'tblTempUsageDetail_20' ) end [2024-12-31 18:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:00:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:00:23] Production.INFO: ==15611== Releasing lock... [2024-12-31 18:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:00:23] Production.INFO: 47.5 MB #Memory Used# [2024-12-31 18:01:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:01:06 [end_date_ymd] => 2024-12-31 18:01:06 [RateCDR] => 1 ) [2024-12-31 18:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:01:06' and `end` < '2024-12-31 18:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:01:20] Production.INFO: count ==2562 [2024-12-31 18:01:20] Production.ERROR: pbx CDR StartTime 2024-12-31 15:01:06 - End Time 2024-12-31 18:01:06 [2024-12-31 18:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145235', 'tblTempUsageDetail_20' ) start [2024-12-31 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145235', 'tblTempUsageDetail_20' ) end [2024-12-31 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145235', 'tblTempVendorCDR_20' ) start [2024-12-31 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145235', 'tblTempVendorCDR_20' ) end [2024-12-31 18:01:20] Production.INFO: ProcessCDR(1,14145235,1,1,2) [2024-12-31 18:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145235', 'tblTempUsageDetail_20' ) start [2024-12-31 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145235', 'tblTempUsageDetail_20' ) end [2024-12-31 18:01:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:01:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:01:24] Production.INFO: ==15696== Releasing lock... [2024-12-31 18:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:01:24] Production.INFO: 47.25 MB #Memory Used# [2024-12-31 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:02:05 [end_date_ymd] => 2024-12-31 18:02:05 [RateCDR] => 1 ) [2024-12-31 18:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:02:05' and `end` < '2024-12-31 18:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:02:19] Production.INFO: count ==2558 [2024-12-31 18:02:19] Production.ERROR: pbx CDR StartTime 2024-12-31 15:02:05 - End Time 2024-12-31 18:02:05 [2024-12-31 18:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145240', 'tblTempUsageDetail_20' ) start [2024-12-31 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145240', 'tblTempUsageDetail_20' ) end [2024-12-31 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145240', 'tblTempVendorCDR_20' ) start [2024-12-31 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145240', 'tblTempVendorCDR_20' ) end [2024-12-31 18:02:19] Production.INFO: ProcessCDR(1,14145240,1,1,2) [2024-12-31 18:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145240', 'tblTempUsageDetail_20' ) start [2024-12-31 18:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145240', 'tblTempUsageDetail_20' ) end [2024-12-31 18:02:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:02:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:02:24] Production.INFO: ==15768== Releasing lock... [2024-12-31 18:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:02:24] Production.INFO: 47.25 MB #Memory Used# [2024-12-31 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:03:05 [end_date_ymd] => 2024-12-31 18:03:05 [RateCDR] => 1 ) [2024-12-31 18:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:03:05' and `end` < '2024-12-31 18:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:03:18] Production.INFO: count ==2555 [2024-12-31 18:03:19] Production.ERROR: pbx CDR StartTime 2024-12-31 15:03:05 - End Time 2024-12-31 18:03:05 [2024-12-31 18:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145245', 'tblTempUsageDetail_20' ) start [2024-12-31 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145245', 'tblTempUsageDetail_20' ) end [2024-12-31 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145245', 'tblTempVendorCDR_20' ) start [2024-12-31 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145245', 'tblTempVendorCDR_20' ) end [2024-12-31 18:03:19] Production.INFO: ProcessCDR(1,14145245,1,1,2) [2024-12-31 18:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145245', 'tblTempUsageDetail_20' ) start [2024-12-31 18:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145245', 'tblTempUsageDetail_20' ) end [2024-12-31 18:03:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:03:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:03:24] Production.INFO: ==15837== Releasing lock... [2024-12-31 18:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:03:24] Production.INFO: 47.5 MB #Memory Used# [2024-12-31 18:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:04:04 [end_date_ymd] => 2024-12-31 18:04:04 [RateCDR] => 1 ) [2024-12-31 18:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:04:04' and `end` < '2024-12-31 18:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:04:23] Production.INFO: count ==2550 [2024-12-31 18:04:23] Production.ERROR: pbx CDR StartTime 2024-12-31 15:04:04 - End Time 2024-12-31 18:04:04 [2024-12-31 18:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145250', 'tblTempUsageDetail_20' ) start [2024-12-31 18:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145250', 'tblTempUsageDetail_20' ) end [2024-12-31 18:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145250', 'tblTempVendorCDR_20' ) start [2024-12-31 18:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145250', 'tblTempVendorCDR_20' ) end [2024-12-31 18:04:23] Production.INFO: ProcessCDR(1,14145250,1,1,2) [2024-12-31 18:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145250', 'tblTempUsageDetail_20' ) start [2024-12-31 18:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145250', 'tblTempUsageDetail_20' ) end [2024-12-31 18:04:28] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:04:28] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:04:28] Production.INFO: ==15909== Releasing lock... [2024-12-31 18:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:04:28] Production.INFO: 47.25 MB #Memory Used# [2024-12-31 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:05:05 [end_date_ymd] => 2024-12-31 18:05:05 [RateCDR] => 1 ) [2024-12-31 18:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:05:05' and `end` < '2024-12-31 18:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:05:20] Production.INFO: count ==2524 [2024-12-31 18:05:21] Production.ERROR: pbx CDR StartTime 2024-12-31 15:05:05 - End Time 2024-12-31 18:05:05 [2024-12-31 18:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145255', 'tblTempUsageDetail_20' ) start [2024-12-31 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145255', 'tblTempUsageDetail_20' ) end [2024-12-31 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145255', 'tblTempVendorCDR_20' ) start [2024-12-31 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145255', 'tblTempVendorCDR_20' ) end [2024-12-31 18:05:21] Production.INFO: ProcessCDR(1,14145255,1,1,2) [2024-12-31 18:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145255', 'tblTempUsageDetail_20' ) start [2024-12-31 18:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145255', 'tblTempUsageDetail_20' ) end [2024-12-31 18:05:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:05:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:05:24] Production.INFO: ==15981== Releasing lock... [2024-12-31 18:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:05:24] Production.INFO: 47 MB #Memory Used# [2024-12-31 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:06:05 [end_date_ymd] => 2024-12-31 18:06:05 [RateCDR] => 1 ) [2024-12-31 18:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:06:05' and `end` < '2024-12-31 18:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:06:20] Production.INFO: count ==2516 [2024-12-31 18:06:20] Production.ERROR: pbx CDR StartTime 2024-12-31 15:06:05 - End Time 2024-12-31 18:06:05 [2024-12-31 18:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145260', 'tblTempUsageDetail_20' ) start [2024-12-31 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145260', 'tblTempUsageDetail_20' ) end [2024-12-31 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145260', 'tblTempVendorCDR_20' ) start [2024-12-31 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145260', 'tblTempVendorCDR_20' ) end [2024-12-31 18:06:20] Production.INFO: ProcessCDR(1,14145260,1,1,2) [2024-12-31 18:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145260', 'tblTempUsageDetail_20' ) start [2024-12-31 18:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145260', 'tblTempUsageDetail_20' ) end [2024-12-31 18:06:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:06:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:06:25] Production.INFO: ==16053== Releasing lock... [2024-12-31 18:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:06:25] Production.INFO: 47 MB #Memory Used# [2024-12-31 18:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:07:04 [end_date_ymd] => 2024-12-31 18:07:04 [RateCDR] => 1 ) [2024-12-31 18:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:07:04' and `end` < '2024-12-31 18:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:07:18] Production.INFO: count ==2501 [2024-12-31 18:07:19] Production.ERROR: pbx CDR StartTime 2024-12-31 15:07:04 - End Time 2024-12-31 18:07:04 [2024-12-31 18:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145265', 'tblTempUsageDetail_20' ) start [2024-12-31 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145265', 'tblTempUsageDetail_20' ) end [2024-12-31 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145265', 'tblTempVendorCDR_20' ) start [2024-12-31 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145265', 'tblTempVendorCDR_20' ) end [2024-12-31 18:07:19] Production.INFO: ProcessCDR(1,14145265,1,1,2) [2024-12-31 18:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145265', 'tblTempUsageDetail_20' ) start [2024-12-31 18:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145265', 'tblTempUsageDetail_20' ) end [2024-12-31 18:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:07:22] Production.INFO: ==16163== Releasing lock... [2024-12-31 18:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:07:22] Production.INFO: 46.75 MB #Memory Used# [2024-12-31 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:08:05 [end_date_ymd] => 2024-12-31 18:08:05 [RateCDR] => 1 ) [2024-12-31 18:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:08:05' and `end` < '2024-12-31 18:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:08:20] Production.INFO: count ==2482 [2024-12-31 18:08:21] Production.ERROR: pbx CDR StartTime 2024-12-31 15:08:05 - End Time 2024-12-31 18:08:05 [2024-12-31 18:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145270', 'tblTempUsageDetail_20' ) start [2024-12-31 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145270', 'tblTempUsageDetail_20' ) end [2024-12-31 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145270', 'tblTempVendorCDR_20' ) start [2024-12-31 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145270', 'tblTempVendorCDR_20' ) end [2024-12-31 18:08:21] Production.INFO: ProcessCDR(1,14145270,1,1,2) [2024-12-31 18:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145270', 'tblTempUsageDetail_20' ) start [2024-12-31 18:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145270', 'tblTempUsageDetail_20' ) end [2024-12-31 18:08:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:08:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:08:24] Production.INFO: ==16234== Releasing lock... [2024-12-31 18:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:08:24] Production.INFO: 46.75 MB #Memory Used# [2024-12-31 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:09:05 [end_date_ymd] => 2024-12-31 18:09:05 [RateCDR] => 1 ) [2024-12-31 18:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:09:05' and `end` < '2024-12-31 18:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:09:19] Production.INFO: count ==2469 [2024-12-31 18:09:20] Production.ERROR: pbx CDR StartTime 2024-12-31 15:09:05 - End Time 2024-12-31 18:09:05 [2024-12-31 18:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145275', 'tblTempUsageDetail_20' ) start [2024-12-31 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145275', 'tblTempUsageDetail_20' ) end [2024-12-31 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145275', 'tblTempVendorCDR_20' ) start [2024-12-31 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145275', 'tblTempVendorCDR_20' ) end [2024-12-31 18:09:20] Production.INFO: ProcessCDR(1,14145275,1,1,2) [2024-12-31 18:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145275', 'tblTempUsageDetail_20' ) start [2024-12-31 18:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145275', 'tblTempUsageDetail_20' ) end [2024-12-31 18:09:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:09:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:09:24] Production.INFO: ==16311== Releasing lock... [2024-12-31 18:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:09:24] Production.INFO: 46.5 MB #Memory Used# [2024-12-31 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:10:06 [end_date_ymd] => 2024-12-31 18:10:06 [RateCDR] => 1 ) [2024-12-31 18:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:10:06' and `end` < '2024-12-31 18:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:10:21] Production.INFO: count ==2457 [2024-12-31 18:10:21] Production.ERROR: pbx CDR StartTime 2024-12-31 15:10:06 - End Time 2024-12-31 18:10:06 [2024-12-31 18:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145281', 'tblTempUsageDetail_20' ) start [2024-12-31 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145281', 'tblTempUsageDetail_20' ) end [2024-12-31 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145281', 'tblTempVendorCDR_20' ) start [2024-12-31 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145281', 'tblTempVendorCDR_20' ) end [2024-12-31 18:10:21] Production.INFO: ProcessCDR(1,14145281,1,1,2) [2024-12-31 18:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145281', 'tblTempUsageDetail_20' ) start [2024-12-31 18:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145281', 'tblTempUsageDetail_20' ) end [2024-12-31 18:10:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:10:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:10:25] Production.INFO: ==16387== Releasing lock... [2024-12-31 18:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:10:25] Production.INFO: 46.5 MB #Memory Used# [2024-12-31 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:11:05 [end_date_ymd] => 2024-12-31 18:11:05 [RateCDR] => 1 ) [2024-12-31 18:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:11:05' and `end` < '2024-12-31 18:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:11:19] Production.INFO: count ==2416 [2024-12-31 18:11:20] Production.ERROR: pbx CDR StartTime 2024-12-31 15:11:05 - End Time 2024-12-31 18:11:05 [2024-12-31 18:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145286', 'tblTempUsageDetail_20' ) start [2024-12-31 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145286', 'tblTempUsageDetail_20' ) end [2024-12-31 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145286', 'tblTempVendorCDR_20' ) start [2024-12-31 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145286', 'tblTempVendorCDR_20' ) end [2024-12-31 18:11:20] Production.INFO: ProcessCDR(1,14145286,1,1,2) [2024-12-31 18:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145286', 'tblTempUsageDetail_20' ) start [2024-12-31 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145286', 'tblTempUsageDetail_20' ) end [2024-12-31 18:11:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:11:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:11:24] Production.INFO: ==16458== Releasing lock... [2024-12-31 18:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:11:24] Production.INFO: 46.25 MB #Memory Used# [2024-12-31 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:12:05 [end_date_ymd] => 2024-12-31 18:12:05 [RateCDR] => 1 ) [2024-12-31 18:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:12:05' and `end` < '2024-12-31 18:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:12:18] Production.INFO: count ==2402 [2024-12-31 18:12:19] Production.ERROR: pbx CDR StartTime 2024-12-31 15:12:05 - End Time 2024-12-31 18:12:05 [2024-12-31 18:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145291', 'tblTempUsageDetail_20' ) start [2024-12-31 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145291', 'tblTempUsageDetail_20' ) end [2024-12-31 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145291', 'tblTempVendorCDR_20' ) start [2024-12-31 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145291', 'tblTempVendorCDR_20' ) end [2024-12-31 18:12:19] Production.INFO: ProcessCDR(1,14145291,1,1,2) [2024-12-31 18:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145291', 'tblTempUsageDetail_20' ) start [2024-12-31 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145291', 'tblTempUsageDetail_20' ) end [2024-12-31 18:12:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:12:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:12:24] Production.INFO: ==16529== Releasing lock... [2024-12-31 18:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:12:24] Production.INFO: 46 MB #Memory Used# [2024-12-31 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:13:05 [end_date_ymd] => 2024-12-31 18:13:05 [RateCDR] => 1 ) [2024-12-31 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:13:05' and `end` < '2024-12-31 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:13:18] Production.INFO: count ==2379 [2024-12-31 18:13:18] Production.ERROR: pbx CDR StartTime 2024-12-31 15:13:05 - End Time 2024-12-31 18:13:05 [2024-12-31 18:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145296', 'tblTempUsageDetail_20' ) start [2024-12-31 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145296', 'tblTempUsageDetail_20' ) end [2024-12-31 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145296', 'tblTempVendorCDR_20' ) start [2024-12-31 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145296', 'tblTempVendorCDR_20' ) end [2024-12-31 18:13:18] Production.INFO: ProcessCDR(1,14145296,1,1,2) [2024-12-31 18:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145296', 'tblTempUsageDetail_20' ) start [2024-12-31 18:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145296', 'tblTempUsageDetail_20' ) end [2024-12-31 18:13:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:13:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:13:23] Production.INFO: ==16599== Releasing lock... [2024-12-31 18:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:13:23] Production.INFO: 46.25 MB #Memory Used# [2024-12-31 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:14:05 [end_date_ymd] => 2024-12-31 18:14:05 [RateCDR] => 1 ) [2024-12-31 18:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:14:05' and `end` < '2024-12-31 18:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:14:18] Production.INFO: count ==2361 [2024-12-31 18:14:19] Production.ERROR: pbx CDR StartTime 2024-12-31 15:14:05 - End Time 2024-12-31 18:14:05 [2024-12-31 18:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145301', 'tblTempUsageDetail_20' ) start [2024-12-31 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145301', 'tblTempUsageDetail_20' ) end [2024-12-31 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145301', 'tblTempVendorCDR_20' ) start [2024-12-31 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145301', 'tblTempVendorCDR_20' ) end [2024-12-31 18:14:19] Production.INFO: ProcessCDR(1,14145301,1,1,2) [2024-12-31 18:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145301', 'tblTempUsageDetail_20' ) start [2024-12-31 18:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145301', 'tblTempUsageDetail_20' ) end [2024-12-31 18:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:14:22] Production.INFO: ==16674== Releasing lock... [2024-12-31 18:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:14:22] Production.INFO: 45.75 MB #Memory Used# [2024-12-31 18:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:15:04 [end_date_ymd] => 2024-12-31 18:15:04 [RateCDR] => 1 ) [2024-12-31 18:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:15:04' and `end` < '2024-12-31 18:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:15:19] Production.INFO: count ==2321 [2024-12-31 18:15:19] Production.ERROR: pbx CDR StartTime 2024-12-31 15:15:04 - End Time 2024-12-31 18:15:04 [2024-12-31 18:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145306', 'tblTempUsageDetail_20' ) start [2024-12-31 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145306', 'tblTempUsageDetail_20' ) end [2024-12-31 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145306', 'tblTempVendorCDR_20' ) start [2024-12-31 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145306', 'tblTempVendorCDR_20' ) end [2024-12-31 18:15:19] Production.INFO: ProcessCDR(1,14145306,1,1,2) [2024-12-31 18:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145306', 'tblTempUsageDetail_20' ) start [2024-12-31 18:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145306', 'tblTempUsageDetail_20' ) end [2024-12-31 18:15:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:15:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:15:22] Production.INFO: ==16746== Releasing lock... [2024-12-31 18:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:15:22] Production.INFO: 45.5 MB #Memory Used# [2024-12-31 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:16:05 [end_date_ymd] => 2024-12-31 18:16:05 [RateCDR] => 1 ) [2024-12-31 18:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:16:05' and `end` < '2024-12-31 18:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:16:20] Production.INFO: count ==2277 [2024-12-31 18:16:20] Production.ERROR: pbx CDR StartTime 2024-12-31 15:16:05 - End Time 2024-12-31 18:16:05 [2024-12-31 18:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145311', 'tblTempUsageDetail_20' ) start [2024-12-31 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145311', 'tblTempUsageDetail_20' ) end [2024-12-31 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145311', 'tblTempVendorCDR_20' ) start [2024-12-31 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145311', 'tblTempVendorCDR_20' ) end [2024-12-31 18:16:21] Production.INFO: ProcessCDR(1,14145311,1,1,2) [2024-12-31 18:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145311', 'tblTempUsageDetail_20' ) start [2024-12-31 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145311', 'tblTempUsageDetail_20' ) end [2024-12-31 18:16:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:16:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:16:24] Production.INFO: ==16821== Releasing lock... [2024-12-31 18:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:16:24] Production.INFO: 45.25 MB #Memory Used# [2024-12-31 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:17:05 [end_date_ymd] => 2024-12-31 18:17:05 [RateCDR] => 1 ) [2024-12-31 18:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:17:05' and `end` < '2024-12-31 18:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:17:18] Production.INFO: count ==2260 [2024-12-31 18:17:19] Production.ERROR: pbx CDR StartTime 2024-12-31 15:17:05 - End Time 2024-12-31 18:17:05 [2024-12-31 18:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145316', 'tblTempUsageDetail_20' ) start [2024-12-31 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145316', 'tblTempUsageDetail_20' ) end [2024-12-31 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145316', 'tblTempVendorCDR_20' ) start [2024-12-31 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145316', 'tblTempVendorCDR_20' ) end [2024-12-31 18:17:19] Production.INFO: ProcessCDR(1,14145316,1,1,2) [2024-12-31 18:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145316', 'tblTempUsageDetail_20' ) start [2024-12-31 18:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145316', 'tblTempUsageDetail_20' ) end [2024-12-31 18:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:17:22] Production.INFO: ==16891== Releasing lock... [2024-12-31 18:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:17:22] Production.INFO: 45 MB #Memory Used# [2024-12-31 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:18:05 [end_date_ymd] => 2024-12-31 18:18:05 [RateCDR] => 1 ) [2024-12-31 18:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:18:05' and `end` < '2024-12-31 18:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:18:18] Production.INFO: count ==2244 [2024-12-31 18:18:19] Production.ERROR: pbx CDR StartTime 2024-12-31 15:18:05 - End Time 2024-12-31 18:18:05 [2024-12-31 18:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145321', 'tblTempUsageDetail_20' ) start [2024-12-31 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145321', 'tblTempUsageDetail_20' ) end [2024-12-31 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145321', 'tblTempVendorCDR_20' ) start [2024-12-31 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145321', 'tblTempVendorCDR_20' ) end [2024-12-31 18:18:19] Production.INFO: ProcessCDR(1,14145321,1,1,2) [2024-12-31 18:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145321', 'tblTempUsageDetail_20' ) start [2024-12-31 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145321', 'tblTempUsageDetail_20' ) end [2024-12-31 18:18:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:18:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:18:24] Production.INFO: ==16962== Releasing lock... [2024-12-31 18:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:18:24] Production.INFO: 45 MB #Memory Used# [2024-12-31 18:19:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:19:06 [end_date_ymd] => 2024-12-31 18:19:06 [RateCDR] => 1 ) [2024-12-31 18:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:19:06' and `end` < '2024-12-31 18:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:19:21] Production.INFO: count ==2229 [2024-12-31 18:19:22] Production.ERROR: pbx CDR StartTime 2024-12-31 15:19:06 - End Time 2024-12-31 18:19:06 [2024-12-31 18:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145326', 'tblTempUsageDetail_20' ) start [2024-12-31 18:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145326', 'tblTempUsageDetail_20' ) end [2024-12-31 18:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145326', 'tblTempVendorCDR_20' ) start [2024-12-31 18:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145326', 'tblTempVendorCDR_20' ) end [2024-12-31 18:19:22] Production.INFO: ProcessCDR(1,14145326,1,1,2) [2024-12-31 18:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145326', 'tblTempUsageDetail_20' ) start [2024-12-31 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145326', 'tblTempUsageDetail_20' ) end [2024-12-31 18:19:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:19:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:19:25] Production.INFO: ==17033== Releasing lock... [2024-12-31 18:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:19:25] Production.INFO: 44.5 MB #Memory Used# [2024-12-31 18:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:20:05 [end_date_ymd] => 2024-12-31 18:20:05 [RateCDR] => 1 ) [2024-12-31 18:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:20:05' and `end` < '2024-12-31 18:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:20:18] Production.INFO: count ==2202 [2024-12-31 18:20:19] Production.ERROR: pbx CDR StartTime 2024-12-31 15:20:05 - End Time 2024-12-31 18:20:05 [2024-12-31 18:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145331', 'tblTempUsageDetail_20' ) start [2024-12-31 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145331', 'tblTempUsageDetail_20' ) end [2024-12-31 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145331', 'tblTempVendorCDR_20' ) start [2024-12-31 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145331', 'tblTempVendorCDR_20' ) end [2024-12-31 18:20:19] Production.INFO: ProcessCDR(1,14145331,1,1,2) [2024-12-31 18:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145331', 'tblTempUsageDetail_20' ) start [2024-12-31 18:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145331', 'tblTempUsageDetail_20' ) end [2024-12-31 18:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:20:22] Production.INFO: ==17106== Releasing lock... [2024-12-31 18:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:20:22] Production.INFO: 44.25 MB #Memory Used# [2024-12-31 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:21:05 [end_date_ymd] => 2024-12-31 18:21:05 [RateCDR] => 1 ) [2024-12-31 18:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:21:05' and `end` < '2024-12-31 18:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:21:19] Production.INFO: count ==2220 [2024-12-31 18:21:19] Production.ERROR: pbx CDR StartTime 2024-12-31 15:21:05 - End Time 2024-12-31 18:21:05 [2024-12-31 18:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145337', 'tblTempUsageDetail_20' ) start [2024-12-31 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145337', 'tblTempUsageDetail_20' ) end [2024-12-31 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145337', 'tblTempVendorCDR_20' ) start [2024-12-31 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145337', 'tblTempVendorCDR_20' ) end [2024-12-31 18:21:19] Production.INFO: ProcessCDR(1,14145337,1,1,2) [2024-12-31 18:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145337', 'tblTempUsageDetail_20' ) start [2024-12-31 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145337', 'tblTempUsageDetail_20' ) end [2024-12-31 18:21:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:21:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:21:24] Production.INFO: ==17179== Releasing lock... [2024-12-31 18:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:21:24] Production.INFO: 44.5 MB #Memory Used# [2024-12-31 18:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:22:04 [end_date_ymd] => 2024-12-31 18:22:04 [RateCDR] => 1 ) [2024-12-31 18:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:22:04' and `end` < '2024-12-31 18:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:22:21] Production.INFO: count ==2206 [2024-12-31 18:22:22] Production.ERROR: pbx CDR StartTime 2024-12-31 15:22:04 - End Time 2024-12-31 18:22:04 [2024-12-31 18:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145342', 'tblTempUsageDetail_20' ) start [2024-12-31 18:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145342', 'tblTempUsageDetail_20' ) end [2024-12-31 18:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145342', 'tblTempVendorCDR_20' ) start [2024-12-31 18:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145342', 'tblTempVendorCDR_20' ) end [2024-12-31 18:22:22] Production.INFO: ProcessCDR(1,14145342,1,1,2) [2024-12-31 18:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145342', 'tblTempUsageDetail_20' ) start [2024-12-31 18:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145342', 'tblTempUsageDetail_20' ) end [2024-12-31 18:22:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:22:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:22:26] Production.INFO: ==17250== Releasing lock... [2024-12-31 18:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:22:26] Production.INFO: 44.25 MB #Memory Used# [2024-12-31 18:23:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:23:06 [end_date_ymd] => 2024-12-31 18:23:06 [RateCDR] => 1 ) [2024-12-31 18:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:23:06' and `end` < '2024-12-31 18:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:23:22] Production.INFO: count ==2284 [2024-12-31 18:23:23] Production.ERROR: pbx CDR StartTime 2024-12-31 15:23:06 - End Time 2024-12-31 18:23:06 [2024-12-31 18:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145347', 'tblTempUsageDetail_20' ) start [2024-12-31 18:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145347', 'tblTempUsageDetail_20' ) end [2024-12-31 18:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145347', 'tblTempVendorCDR_20' ) start [2024-12-31 18:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145347', 'tblTempVendorCDR_20' ) end [2024-12-31 18:23:23] Production.INFO: ProcessCDR(1,14145347,1,1,2) [2024-12-31 18:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145347', 'tblTempUsageDetail_20' ) start [2024-12-31 18:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145347', 'tblTempUsageDetail_20' ) end [2024-12-31 18:23:27] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:23:27] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:23:27] Production.INFO: ==17363== Releasing lock... [2024-12-31 18:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:23:27] Production.INFO: 45.25 MB #Memory Used# [2024-12-31 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:24:05 [end_date_ymd] => 2024-12-31 18:24:05 [RateCDR] => 1 ) [2024-12-31 18:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:24:05' and `end` < '2024-12-31 18:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:24:21] Production.INFO: count ==2281 [2024-12-31 18:24:21] Production.ERROR: pbx CDR StartTime 2024-12-31 15:24:05 - End Time 2024-12-31 18:24:05 [2024-12-31 18:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145352', 'tblTempUsageDetail_20' ) start [2024-12-31 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145352', 'tblTempUsageDetail_20' ) end [2024-12-31 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145352', 'tblTempVendorCDR_20' ) start [2024-12-31 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145352', 'tblTempVendorCDR_20' ) end [2024-12-31 18:24:21] Production.INFO: ProcessCDR(1,14145352,1,1,2) [2024-12-31 18:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145352', 'tblTempUsageDetail_20' ) start [2024-12-31 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145352', 'tblTempUsageDetail_20' ) end [2024-12-31 18:24:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:24:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:24:24] Production.INFO: ==17433== Releasing lock... [2024-12-31 18:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:24:24] Production.INFO: 45.25 MB #Memory Used# [2024-12-31 18:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:25:04 [end_date_ymd] => 2024-12-31 18:25:04 [RateCDR] => 1 ) [2024-12-31 18:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:25:04' and `end` < '2024-12-31 18:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:25:17] Production.INFO: count ==2269 [2024-12-31 18:25:18] Production.ERROR: pbx CDR StartTime 2024-12-31 15:25:04 - End Time 2024-12-31 18:25:04 [2024-12-31 18:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145357', 'tblTempUsageDetail_20' ) start [2024-12-31 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145357', 'tblTempUsageDetail_20' ) end [2024-12-31 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145357', 'tblTempVendorCDR_20' ) start [2024-12-31 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145357', 'tblTempVendorCDR_20' ) end [2024-12-31 18:25:18] Production.INFO: ProcessCDR(1,14145357,1,1,2) [2024-12-31 18:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145357', 'tblTempUsageDetail_20' ) start [2024-12-31 18:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145357', 'tblTempUsageDetail_20' ) end [2024-12-31 18:25:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:25:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:25:23] Production.INFO: ==17503== Releasing lock... [2024-12-31 18:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:25:23] Production.INFO: 45 MB #Memory Used# [2024-12-31 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:26:05 [end_date_ymd] => 2024-12-31 18:26:05 [RateCDR] => 1 ) [2024-12-31 18:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:26:05' and `end` < '2024-12-31 18:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:26:20] Production.INFO: count ==2283 [2024-12-31 18:26:21] Production.ERROR: pbx CDR StartTime 2024-12-31 15:26:05 - End Time 2024-12-31 18:26:05 [2024-12-31 18:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145362', 'tblTempUsageDetail_20' ) start [2024-12-31 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145362', 'tblTempUsageDetail_20' ) end [2024-12-31 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145362', 'tblTempVendorCDR_20' ) start [2024-12-31 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145362', 'tblTempVendorCDR_20' ) end [2024-12-31 18:26:21] Production.INFO: ProcessCDR(1,14145362,1,1,2) [2024-12-31 18:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145362', 'tblTempUsageDetail_20' ) start [2024-12-31 18:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145362', 'tblTempUsageDetail_20' ) end [2024-12-31 18:26:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:26:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:26:26] Production.INFO: ==17575== Releasing lock... [2024-12-31 18:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:26:26] Production.INFO: 45.25 MB #Memory Used# [2024-12-31 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:27:05 [end_date_ymd] => 2024-12-31 18:27:05 [RateCDR] => 1 ) [2024-12-31 18:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:27:05' and `end` < '2024-12-31 18:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:27:19] Production.INFO: count ==2281 [2024-12-31 18:27:19] Production.ERROR: pbx CDR StartTime 2024-12-31 15:27:05 - End Time 2024-12-31 18:27:05 [2024-12-31 18:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145367', 'tblTempUsageDetail_20' ) start [2024-12-31 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145367', 'tblTempUsageDetail_20' ) end [2024-12-31 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145367', 'tblTempVendorCDR_20' ) start [2024-12-31 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145367', 'tblTempVendorCDR_20' ) end [2024-12-31 18:27:19] Production.INFO: ProcessCDR(1,14145367,1,1,2) [2024-12-31 18:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145367', 'tblTempUsageDetail_20' ) start [2024-12-31 18:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145367', 'tblTempUsageDetail_20' ) end [2024-12-31 18:27:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:27:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:27:24] Production.INFO: ==17647== Releasing lock... [2024-12-31 18:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:27:24] Production.INFO: 45 MB #Memory Used# [2024-12-31 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:28:05 [end_date_ymd] => 2024-12-31 18:28:05 [RateCDR] => 1 ) [2024-12-31 18:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:28:05' and `end` < '2024-12-31 18:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:28:19] Production.INFO: count ==2282 [2024-12-31 18:28:20] Production.ERROR: pbx CDR StartTime 2024-12-31 15:28:05 - End Time 2024-12-31 18:28:05 [2024-12-31 18:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145372', 'tblTempUsageDetail_20' ) start [2024-12-31 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145372', 'tblTempUsageDetail_20' ) end [2024-12-31 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145372', 'tblTempVendorCDR_20' ) start [2024-12-31 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145372', 'tblTempVendorCDR_20' ) end [2024-12-31 18:28:20] Production.INFO: ProcessCDR(1,14145372,1,1,2) [2024-12-31 18:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145372', 'tblTempUsageDetail_20' ) start [2024-12-31 18:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145372', 'tblTempUsageDetail_20' ) end [2024-12-31 18:28:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:28:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:28:24] Production.INFO: ==17716== Releasing lock... [2024-12-31 18:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:28:24] Production.INFO: 45.25 MB #Memory Used# [2024-12-31 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:29:05 [end_date_ymd] => 2024-12-31 18:29:05 [RateCDR] => 1 ) [2024-12-31 18:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:29:05' and `end` < '2024-12-31 18:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:29:20] Production.INFO: count ==2280 [2024-12-31 18:29:20] Production.ERROR: pbx CDR StartTime 2024-12-31 15:29:05 - End Time 2024-12-31 18:29:05 [2024-12-31 18:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145377', 'tblTempUsageDetail_20' ) start [2024-12-31 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145377', 'tblTempUsageDetail_20' ) end [2024-12-31 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145377', 'tblTempVendorCDR_20' ) start [2024-12-31 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145377', 'tblTempVendorCDR_20' ) end [2024-12-31 18:29:20] Production.INFO: ProcessCDR(1,14145377,1,1,2) [2024-12-31 18:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145377', 'tblTempUsageDetail_20' ) start [2024-12-31 18:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145377', 'tblTempUsageDetail_20' ) end [2024-12-31 18:29:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:29:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:29:23] Production.INFO: ==17790== Releasing lock... [2024-12-31 18:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:29:23] Production.INFO: 45.25 MB #Memory Used# [2024-12-31 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:30:06 [end_date_ymd] => 2024-12-31 18:30:06 [RateCDR] => 1 ) [2024-12-31 18:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:30:06' and `end` < '2024-12-31 18:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:30:19] Production.INFO: count ==2283 [2024-12-31 18:30:19] Production.ERROR: pbx CDR StartTime 2024-12-31 15:30:06 - End Time 2024-12-31 18:30:06 [2024-12-31 18:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145383', 'tblTempUsageDetail_20' ) start [2024-12-31 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145383', 'tblTempUsageDetail_20' ) end [2024-12-31 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145383', 'tblTempVendorCDR_20' ) start [2024-12-31 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145383', 'tblTempVendorCDR_20' ) end [2024-12-31 18:30:20] Production.INFO: ProcessCDR(1,14145383,1,1,2) [2024-12-31 18:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145383', 'tblTempUsageDetail_20' ) start [2024-12-31 18:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145383', 'tblTempUsageDetail_20' ) end [2024-12-31 18:30:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:30:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:30:24] Production.INFO: ==17861== Releasing lock... [2024-12-31 18:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:30:24] Production.INFO: 45.25 MB #Memory Used# [2024-12-31 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:31:05 [end_date_ymd] => 2024-12-31 18:31:05 [RateCDR] => 1 ) [2024-12-31 18:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:31:05' and `end` < '2024-12-31 18:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:31:19] Production.INFO: count ==2296 [2024-12-31 18:31:19] Production.ERROR: pbx CDR StartTime 2024-12-31 15:31:05 - End Time 2024-12-31 18:31:05 [2024-12-31 18:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145388', 'tblTempUsageDetail_20' ) start [2024-12-31 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145388', 'tblTempUsageDetail_20' ) end [2024-12-31 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145388', 'tblTempVendorCDR_20' ) start [2024-12-31 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145388', 'tblTempVendorCDR_20' ) end [2024-12-31 18:31:19] Production.INFO: ProcessCDR(1,14145388,1,1,2) [2024-12-31 18:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145388', 'tblTempUsageDetail_20' ) start [2024-12-31 18:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145388', 'tblTempUsageDetail_20' ) end [2024-12-31 18:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:31:23] Production.INFO: ==17934== Releasing lock... [2024-12-31 18:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:31:23] Production.INFO: 45.25 MB #Memory Used# [2024-12-31 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:32:05 [end_date_ymd] => 2024-12-31 18:32:05 [RateCDR] => 1 ) [2024-12-31 18:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:32:05' and `end` < '2024-12-31 18:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:32:18] Production.INFO: count ==2365 [2024-12-31 18:32:18] Production.ERROR: pbx CDR StartTime 2024-12-31 15:32:05 - End Time 2024-12-31 18:32:05 [2024-12-31 18:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145393', 'tblTempUsageDetail_20' ) start [2024-12-31 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145393', 'tblTempUsageDetail_20' ) end [2024-12-31 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145393', 'tblTempVendorCDR_20' ) start [2024-12-31 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145393', 'tblTempVendorCDR_20' ) end [2024-12-31 18:32:18] Production.INFO: ProcessCDR(1,14145393,1,1,2) [2024-12-31 18:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145393', 'tblTempUsageDetail_20' ) start [2024-12-31 18:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145393', 'tblTempUsageDetail_20' ) end [2024-12-31 18:32:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:32:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:32:23] Production.INFO: ==18003== Releasing lock... [2024-12-31 18:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:32:23] Production.INFO: 45.75 MB #Memory Used# [2024-12-31 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:33:05 [end_date_ymd] => 2024-12-31 18:33:05 [RateCDR] => 1 ) [2024-12-31 18:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:33:05' and `end` < '2024-12-31 18:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:33:20] Production.INFO: count ==2382 [2024-12-31 18:33:21] Production.ERROR: pbx CDR StartTime 2024-12-31 15:33:05 - End Time 2024-12-31 18:33:05 [2024-12-31 18:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145398', 'tblTempUsageDetail_20' ) start [2024-12-31 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145398', 'tblTempUsageDetail_20' ) end [2024-12-31 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145398', 'tblTempVendorCDR_20' ) start [2024-12-31 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145398', 'tblTempVendorCDR_20' ) end [2024-12-31 18:33:21] Production.INFO: ProcessCDR(1,14145398,1,1,2) [2024-12-31 18:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145398', 'tblTempUsageDetail_20' ) start [2024-12-31 18:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145398', 'tblTempUsageDetail_20' ) end [2024-12-31 18:33:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:33:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:33:25] Production.INFO: ==18074== Releasing lock... [2024-12-31 18:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:33:25] Production.INFO: 46 MB #Memory Used# [2024-12-31 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:34:05 [end_date_ymd] => 2024-12-31 18:34:05 [RateCDR] => 1 ) [2024-12-31 18:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:34:05' and `end` < '2024-12-31 18:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:34:18] Production.INFO: count ==2383 [2024-12-31 18:34:18] Production.ERROR: pbx CDR StartTime 2024-12-31 15:34:05 - End Time 2024-12-31 18:34:05 [2024-12-31 18:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145403', 'tblTempUsageDetail_20' ) start [2024-12-31 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145403', 'tblTempUsageDetail_20' ) end [2024-12-31 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145403', 'tblTempVendorCDR_20' ) start [2024-12-31 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145403', 'tblTempVendorCDR_20' ) end [2024-12-31 18:34:18] Production.INFO: ProcessCDR(1,14145403,1,1,2) [2024-12-31 18:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145403', 'tblTempUsageDetail_20' ) start [2024-12-31 18:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145403', 'tblTempUsageDetail_20' ) end [2024-12-31 18:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:34:21] Production.INFO: ==18145== Releasing lock... [2024-12-31 18:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:34:21] Production.INFO: 46 MB #Memory Used# [2024-12-31 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:35:05 [end_date_ymd] => 2024-12-31 18:35:05 [RateCDR] => 1 ) [2024-12-31 18:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:35:05' and `end` < '2024-12-31 18:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:35:19] Production.INFO: count ==2376 [2024-12-31 18:35:20] Production.ERROR: pbx CDR StartTime 2024-12-31 15:35:05 - End Time 2024-12-31 18:35:05 [2024-12-31 18:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145408', 'tblTempUsageDetail_20' ) start [2024-12-31 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145408', 'tblTempUsageDetail_20' ) end [2024-12-31 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145408', 'tblTempVendorCDR_20' ) start [2024-12-31 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145408', 'tblTempVendorCDR_20' ) end [2024-12-31 18:35:20] Production.INFO: ProcessCDR(1,14145408,1,1,2) [2024-12-31 18:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145408', 'tblTempUsageDetail_20' ) start [2024-12-31 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145408', 'tblTempUsageDetail_20' ) end [2024-12-31 18:35:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:35:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:35:24] Production.INFO: ==18217== Releasing lock... [2024-12-31 18:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:35:24] Production.INFO: 45.75 MB #Memory Used# [2024-12-31 18:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:36:04 [end_date_ymd] => 2024-12-31 18:36:04 [RateCDR] => 1 ) [2024-12-31 18:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:36:04' and `end` < '2024-12-31 18:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:36:18] Production.INFO: count ==2368 [2024-12-31 18:36:19] Production.ERROR: pbx CDR StartTime 2024-12-31 15:36:04 - End Time 2024-12-31 18:36:04 [2024-12-31 18:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145413', 'tblTempUsageDetail_20' ) start [2024-12-31 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145413', 'tblTempUsageDetail_20' ) end [2024-12-31 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145413', 'tblTempVendorCDR_20' ) start [2024-12-31 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145413', 'tblTempVendorCDR_20' ) end [2024-12-31 18:36:19] Production.INFO: ProcessCDR(1,14145413,1,1,2) [2024-12-31 18:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145413', 'tblTempUsageDetail_20' ) start [2024-12-31 18:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145413', 'tblTempUsageDetail_20' ) end [2024-12-31 18:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:36:22] Production.INFO: ==18289== Releasing lock... [2024-12-31 18:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:36:22] Production.INFO: 45.75 MB #Memory Used# [2024-12-31 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:37:04 [end_date_ymd] => 2024-12-31 18:37:04 [RateCDR] => 1 ) [2024-12-31 18:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:37:04' and `end` < '2024-12-31 18:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:37:17] Production.INFO: count ==2364 [2024-12-31 18:37:18] Production.ERROR: pbx CDR StartTime 2024-12-31 15:37:04 - End Time 2024-12-31 18:37:04 [2024-12-31 18:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145418', 'tblTempUsageDetail_20' ) start [2024-12-31 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145418', 'tblTempUsageDetail_20' ) end [2024-12-31 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145418', 'tblTempVendorCDR_20' ) start [2024-12-31 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145418', 'tblTempVendorCDR_20' ) end [2024-12-31 18:37:18] Production.INFO: ProcessCDR(1,14145418,1,1,2) [2024-12-31 18:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145418', 'tblTempUsageDetail_20' ) start [2024-12-31 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145418', 'tblTempUsageDetail_20' ) end [2024-12-31 18:37:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:37:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:37:23] Production.INFO: ==18362== Releasing lock... [2024-12-31 18:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:37:23] Production.INFO: 45.75 MB #Memory Used# [2024-12-31 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:38:05 [end_date_ymd] => 2024-12-31 18:38:05 [RateCDR] => 1 ) [2024-12-31 18:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:38:05' and `end` < '2024-12-31 18:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:38:18] Production.INFO: count ==2361 [2024-12-31 18:38:19] Production.ERROR: pbx CDR StartTime 2024-12-31 15:38:05 - End Time 2024-12-31 18:38:05 [2024-12-31 18:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145423', 'tblTempUsageDetail_20' ) start [2024-12-31 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145423', 'tblTempUsageDetail_20' ) end [2024-12-31 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145423', 'tblTempVendorCDR_20' ) start [2024-12-31 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145423', 'tblTempVendorCDR_20' ) end [2024-12-31 18:38:19] Production.INFO: ProcessCDR(1,14145423,1,1,2) [2024-12-31 18:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145423', 'tblTempUsageDetail_20' ) start [2024-12-31 18:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145423', 'tblTempUsageDetail_20' ) end [2024-12-31 18:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:38:22] Production.INFO: ==18476== Releasing lock... [2024-12-31 18:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:38:22] Production.INFO: 45.75 MB #Memory Used# [2024-12-31 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:39:05 [end_date_ymd] => 2024-12-31 18:39:05 [RateCDR] => 1 ) [2024-12-31 18:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:39:05' and `end` < '2024-12-31 18:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:39:18] Production.INFO: count ==2361 [2024-12-31 18:39:19] Production.ERROR: pbx CDR StartTime 2024-12-31 15:39:05 - End Time 2024-12-31 18:39:05 [2024-12-31 18:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145428', 'tblTempUsageDetail_20' ) start [2024-12-31 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145428', 'tblTempUsageDetail_20' ) end [2024-12-31 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145428', 'tblTempVendorCDR_20' ) start [2024-12-31 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145428', 'tblTempVendorCDR_20' ) end [2024-12-31 18:39:19] Production.INFO: ProcessCDR(1,14145428,1,1,2) [2024-12-31 18:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145428', 'tblTempUsageDetail_20' ) start [2024-12-31 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145428', 'tblTempUsageDetail_20' ) end [2024-12-31 18:39:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:39:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:39:23] Production.INFO: ==18553== Releasing lock... [2024-12-31 18:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:39:23] Production.INFO: 45.75 MB #Memory Used# [2024-12-31 18:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:40:05 [end_date_ymd] => 2024-12-31 18:40:05 [RateCDR] => 1 ) [2024-12-31 18:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:40:05' and `end` < '2024-12-31 18:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:40:19] Production.INFO: count ==2368 [2024-12-31 18:40:19] Production.ERROR: pbx CDR StartTime 2024-12-31 15:40:05 - End Time 2024-12-31 18:40:05 [2024-12-31 18:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145434', 'tblTempUsageDetail_20' ) start [2024-12-31 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145434', 'tblTempUsageDetail_20' ) end [2024-12-31 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145434', 'tblTempVendorCDR_20' ) start [2024-12-31 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145434', 'tblTempVendorCDR_20' ) end [2024-12-31 18:40:19] Production.INFO: ProcessCDR(1,14145434,1,1,2) [2024-12-31 18:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145434', 'tblTempUsageDetail_20' ) start [2024-12-31 18:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145434', 'tblTempUsageDetail_20' ) end [2024-12-31 18:40:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:40:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:40:23] Production.INFO: ==18627== Releasing lock... [2024-12-31 18:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:40:23] Production.INFO: 45.75 MB #Memory Used# [2024-12-31 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:41:05 [end_date_ymd] => 2024-12-31 18:41:05 [RateCDR] => 1 ) [2024-12-31 18:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:41:05' and `end` < '2024-12-31 18:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:41:19] Production.INFO: count ==2413 [2024-12-31 18:41:19] Production.ERROR: pbx CDR StartTime 2024-12-31 15:41:05 - End Time 2024-12-31 18:41:05 [2024-12-31 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145439', 'tblTempUsageDetail_20' ) start [2024-12-31 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145439', 'tblTempUsageDetail_20' ) end [2024-12-31 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145439', 'tblTempVendorCDR_20' ) start [2024-12-31 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145439', 'tblTempVendorCDR_20' ) end [2024-12-31 18:41:19] Production.INFO: ProcessCDR(1,14145439,1,1,2) [2024-12-31 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145439', 'tblTempUsageDetail_20' ) start [2024-12-31 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145439', 'tblTempUsageDetail_20' ) end [2024-12-31 18:41:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:41:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:41:23] Production.INFO: ==18704== Releasing lock... [2024-12-31 18:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:41:23] Production.INFO: 46.25 MB #Memory Used# [2024-12-31 18:42:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:42:06 [end_date_ymd] => 2024-12-31 18:42:06 [RateCDR] => 1 ) [2024-12-31 18:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:42:06' and `end` < '2024-12-31 18:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:42:20] Production.INFO: count ==2406 [2024-12-31 18:42:20] Production.ERROR: pbx CDR StartTime 2024-12-31 15:42:06 - End Time 2024-12-31 18:42:06 [2024-12-31 18:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145444', 'tblTempUsageDetail_20' ) start [2024-12-31 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145444', 'tblTempUsageDetail_20' ) end [2024-12-31 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145444', 'tblTempVendorCDR_20' ) start [2024-12-31 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145444', 'tblTempVendorCDR_20' ) end [2024-12-31 18:42:20] Production.INFO: ProcessCDR(1,14145444,1,1,2) [2024-12-31 18:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145444', 'tblTempUsageDetail_20' ) start [2024-12-31 18:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145444', 'tblTempUsageDetail_20' ) end [2024-12-31 18:42:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:42:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:42:26] Production.INFO: ==18788== Releasing lock... [2024-12-31 18:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:42:26] Production.INFO: 46 MB #Memory Used# [2024-12-31 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:43:05 [end_date_ymd] => 2024-12-31 18:43:05 [RateCDR] => 1 ) [2024-12-31 18:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:43:05' and `end` < '2024-12-31 18:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:43:19] Production.INFO: count ==2411 [2024-12-31 18:43:20] Production.ERROR: pbx CDR StartTime 2024-12-31 15:43:05 - End Time 2024-12-31 18:43:05 [2024-12-31 18:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145449', 'tblTempUsageDetail_20' ) start [2024-12-31 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145449', 'tblTempUsageDetail_20' ) end [2024-12-31 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145449', 'tblTempVendorCDR_20' ) start [2024-12-31 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145449', 'tblTempVendorCDR_20' ) end [2024-12-31 18:43:20] Production.INFO: ProcessCDR(1,14145449,1,1,2) [2024-12-31 18:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145449', 'tblTempUsageDetail_20' ) start [2024-12-31 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145449', 'tblTempUsageDetail_20' ) end [2024-12-31 18:43:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:43:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:43:24] Production.INFO: ==18864== Releasing lock... [2024-12-31 18:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:43:24] Production.INFO: 46.25 MB #Memory Used# [2024-12-31 18:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:44:04 [end_date_ymd] => 2024-12-31 18:44:04 [RateCDR] => 1 ) [2024-12-31 18:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:44:04' and `end` < '2024-12-31 18:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:44:20] Production.INFO: count ==2407 [2024-12-31 18:44:20] Production.ERROR: pbx CDR StartTime 2024-12-31 15:44:04 - End Time 2024-12-31 18:44:04 [2024-12-31 18:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145454', 'tblTempUsageDetail_20' ) start [2024-12-31 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145454', 'tblTempUsageDetail_20' ) end [2024-12-31 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145454', 'tblTempVendorCDR_20' ) start [2024-12-31 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145454', 'tblTempVendorCDR_20' ) end [2024-12-31 18:44:20] Production.INFO: ProcessCDR(1,14145454,1,1,2) [2024-12-31 18:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145454', 'tblTempUsageDetail_20' ) start [2024-12-31 18:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145454', 'tblTempUsageDetail_20' ) end [2024-12-31 18:44:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:44:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:44:25] Production.INFO: ==18939== Releasing lock... [2024-12-31 18:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:44:25] Production.INFO: 46 MB #Memory Used# [2024-12-31 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:45:05 [end_date_ymd] => 2024-12-31 18:45:05 [RateCDR] => 1 ) [2024-12-31 18:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:45:05' and `end` < '2024-12-31 18:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:45:18] Production.INFO: count ==2412 [2024-12-31 18:45:19] Production.ERROR: pbx CDR StartTime 2024-12-31 15:45:05 - End Time 2024-12-31 18:45:05 [2024-12-31 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145459', 'tblTempUsageDetail_20' ) start [2024-12-31 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145459', 'tblTempUsageDetail_20' ) end [2024-12-31 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145459', 'tblTempVendorCDR_20' ) start [2024-12-31 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145459', 'tblTempVendorCDR_20' ) end [2024-12-31 18:45:19] Production.INFO: ProcessCDR(1,14145459,1,1,2) [2024-12-31 18:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145459', 'tblTempUsageDetail_20' ) start [2024-12-31 18:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145459', 'tblTempUsageDetail_20' ) end [2024-12-31 18:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:45:22] Production.INFO: ==19019== Releasing lock... [2024-12-31 18:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:45:22] Production.INFO: 46.25 MB #Memory Used# [2024-12-31 18:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:46:04 [end_date_ymd] => 2024-12-31 18:46:04 [RateCDR] => 1 ) [2024-12-31 18:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:46:04' and `end` < '2024-12-31 18:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:46:19] Production.INFO: count ==2406 [2024-12-31 18:46:20] Production.ERROR: pbx CDR StartTime 2024-12-31 15:46:04 - End Time 2024-12-31 18:46:04 [2024-12-31 18:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145464', 'tblTempUsageDetail_20' ) start [2024-12-31 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145464', 'tblTempUsageDetail_20' ) end [2024-12-31 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145464', 'tblTempVendorCDR_20' ) start [2024-12-31 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145464', 'tblTempVendorCDR_20' ) end [2024-12-31 18:46:20] Production.INFO: ProcessCDR(1,14145464,1,1,2) [2024-12-31 18:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145464', 'tblTempUsageDetail_20' ) start [2024-12-31 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145464', 'tblTempUsageDetail_20' ) end [2024-12-31 18:46:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:46:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:46:25] Production.INFO: ==19098== Releasing lock... [2024-12-31 18:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:46:25] Production.INFO: 46 MB #Memory Used# [2024-12-31 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:47:05 [end_date_ymd] => 2024-12-31 18:47:05 [RateCDR] => 1 ) [2024-12-31 18:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:47:05' and `end` < '2024-12-31 18:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:47:18] Production.INFO: count ==2409 [2024-12-31 18:47:19] Production.ERROR: pbx CDR StartTime 2024-12-31 15:47:05 - End Time 2024-12-31 18:47:05 [2024-12-31 18:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145469', 'tblTempUsageDetail_20' ) start [2024-12-31 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145469', 'tblTempUsageDetail_20' ) end [2024-12-31 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145469', 'tblTempVendorCDR_20' ) start [2024-12-31 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145469', 'tblTempVendorCDR_20' ) end [2024-12-31 18:47:19] Production.INFO: ProcessCDR(1,14145469,1,1,2) [2024-12-31 18:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145469', 'tblTempUsageDetail_20' ) start [2024-12-31 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145469', 'tblTempUsageDetail_20' ) end [2024-12-31 18:47:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:47:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:47:23] Production.INFO: ==19181== Releasing lock... [2024-12-31 18:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:47:23] Production.INFO: 46 MB #Memory Used# [2024-12-31 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:48:05 [end_date_ymd] => 2024-12-31 18:48:05 [RateCDR] => 1 ) [2024-12-31 18:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:48:05' and `end` < '2024-12-31 18:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:48:18] Production.INFO: count ==2405 [2024-12-31 18:48:19] Production.ERROR: pbx CDR StartTime 2024-12-31 15:48:05 - End Time 2024-12-31 18:48:05 [2024-12-31 18:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145474', 'tblTempUsageDetail_20' ) start [2024-12-31 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145474', 'tblTempUsageDetail_20' ) end [2024-12-31 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145474', 'tblTempVendorCDR_20' ) start [2024-12-31 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145474', 'tblTempVendorCDR_20' ) end [2024-12-31 18:48:19] Production.INFO: ProcessCDR(1,14145474,1,1,2) [2024-12-31 18:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145474', 'tblTempUsageDetail_20' ) start [2024-12-31 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145474', 'tblTempUsageDetail_20' ) end [2024-12-31 18:48:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:48:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:48:23] Production.INFO: ==19262== Releasing lock... [2024-12-31 18:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:48:23] Production.INFO: 46 MB #Memory Used# [2024-12-31 18:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:49:04 [end_date_ymd] => 2024-12-31 18:49:04 [RateCDR] => 1 ) [2024-12-31 18:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:49:04' and `end` < '2024-12-31 18:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:49:18] Production.INFO: count ==2398 [2024-12-31 18:49:18] Production.ERROR: pbx CDR StartTime 2024-12-31 15:49:04 - End Time 2024-12-31 18:49:04 [2024-12-31 18:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145479', 'tblTempUsageDetail_20' ) start [2024-12-31 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145479', 'tblTempUsageDetail_20' ) end [2024-12-31 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145479', 'tblTempVendorCDR_20' ) start [2024-12-31 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145479', 'tblTempVendorCDR_20' ) end [2024-12-31 18:49:18] Production.INFO: ProcessCDR(1,14145479,1,1,2) [2024-12-31 18:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145479', 'tblTempUsageDetail_20' ) start [2024-12-31 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145479', 'tblTempUsageDetail_20' ) end [2024-12-31 18:49:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:49:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:49:23] Production.INFO: ==19341== Releasing lock... [2024-12-31 18:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:49:23] Production.INFO: 46 MB #Memory Used# [2024-12-31 18:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:50:05 [end_date_ymd] => 2024-12-31 18:50:05 [RateCDR] => 1 ) [2024-12-31 18:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:50:05' and `end` < '2024-12-31 18:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:50:19] Production.INFO: count ==2393 [2024-12-31 18:50:20] Production.ERROR: pbx CDR StartTime 2024-12-31 15:50:05 - End Time 2024-12-31 18:50:05 [2024-12-31 18:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145484', 'tblTempUsageDetail_20' ) start [2024-12-31 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145484', 'tblTempUsageDetail_20' ) end [2024-12-31 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145484', 'tblTempVendorCDR_20' ) start [2024-12-31 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145484', 'tblTempVendorCDR_20' ) end [2024-12-31 18:50:20] Production.INFO: ProcessCDR(1,14145484,1,1,2) [2024-12-31 18:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145484', 'tblTempUsageDetail_20' ) start [2024-12-31 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145484', 'tblTempUsageDetail_20' ) end [2024-12-31 18:50:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:50:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:50:25] Production.INFO: ==19425== Releasing lock... [2024-12-31 18:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:50:25] Production.INFO: 46 MB #Memory Used# [2024-12-31 18:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:51:04 [end_date_ymd] => 2024-12-31 18:51:04 [RateCDR] => 1 ) [2024-12-31 18:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:51:04' and `end` < '2024-12-31 18:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:51:18] Production.INFO: count ==2375 [2024-12-31 18:51:19] Production.ERROR: pbx CDR StartTime 2024-12-31 15:51:04 - End Time 2024-12-31 18:51:04 [2024-12-31 18:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145489', 'tblTempUsageDetail_20' ) start [2024-12-31 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145489', 'tblTempUsageDetail_20' ) end [2024-12-31 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145489', 'tblTempVendorCDR_20' ) start [2024-12-31 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145489', 'tblTempVendorCDR_20' ) end [2024-12-31 18:51:19] Production.INFO: ProcessCDR(1,14145489,1,1,2) [2024-12-31 18:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145489', 'tblTempUsageDetail_20' ) start [2024-12-31 18:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145489', 'tblTempUsageDetail_20' ) end [2024-12-31 18:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:51:22] Production.INFO: ==19507== Releasing lock... [2024-12-31 18:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:51:22] Production.INFO: 45.75 MB #Memory Used# [2024-12-31 18:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:52:04 [end_date_ymd] => 2024-12-31 18:52:04 [RateCDR] => 1 ) [2024-12-31 18:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:52:04' and `end` < '2024-12-31 18:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:52:18] Production.INFO: count ==2373 [2024-12-31 18:52:19] Production.ERROR: pbx CDR StartTime 2024-12-31 15:52:04 - End Time 2024-12-31 18:52:04 [2024-12-31 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145495', 'tblTempUsageDetail_20' ) start [2024-12-31 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145495', 'tblTempUsageDetail_20' ) end [2024-12-31 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145495', 'tblTempVendorCDR_20' ) start [2024-12-31 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145495', 'tblTempVendorCDR_20' ) end [2024-12-31 18:52:19] Production.INFO: ProcessCDR(1,14145495,1,1,2) [2024-12-31 18:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145495', 'tblTempUsageDetail_20' ) start [2024-12-31 18:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145495', 'tblTempUsageDetail_20' ) end [2024-12-31 18:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:52:22] Production.INFO: ==19595== Releasing lock... [2024-12-31 18:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:52:22] Production.INFO: 45.75 MB #Memory Used# [2024-12-31 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:53:05 [end_date_ymd] => 2024-12-31 18:53:05 [RateCDR] => 1 ) [2024-12-31 18:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:53:05' and `end` < '2024-12-31 18:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:53:18] Production.INFO: count ==2371 [2024-12-31 18:53:18] Production.ERROR: pbx CDR StartTime 2024-12-31 15:53:05 - End Time 2024-12-31 18:53:05 [2024-12-31 18:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145500', 'tblTempUsageDetail_20' ) start [2024-12-31 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145500', 'tblTempUsageDetail_20' ) end [2024-12-31 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145500', 'tblTempVendorCDR_20' ) start [2024-12-31 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145500', 'tblTempVendorCDR_20' ) end [2024-12-31 18:53:18] Production.INFO: ProcessCDR(1,14145500,1,1,2) [2024-12-31 18:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145500', 'tblTempUsageDetail_20' ) start [2024-12-31 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145500', 'tblTempUsageDetail_20' ) end [2024-12-31 18:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:53:22] Production.INFO: ==19677== Releasing lock... [2024-12-31 18:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:53:22] Production.INFO: 45.75 MB #Memory Used# [2024-12-31 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:54:05 [end_date_ymd] => 2024-12-31 18:54:05 [RateCDR] => 1 ) [2024-12-31 18:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:54:05' and `end` < '2024-12-31 18:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:54:18] Production.INFO: count ==2367 [2024-12-31 18:54:19] Production.ERROR: pbx CDR StartTime 2024-12-31 15:54:05 - End Time 2024-12-31 18:54:05 [2024-12-31 18:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145505', 'tblTempUsageDetail_20' ) start [2024-12-31 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145505', 'tblTempUsageDetail_20' ) end [2024-12-31 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145505', 'tblTempVendorCDR_20' ) start [2024-12-31 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145505', 'tblTempVendorCDR_20' ) end [2024-12-31 18:54:19] Production.INFO: ProcessCDR(1,14145505,1,1,2) [2024-12-31 18:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145505', 'tblTempUsageDetail_20' ) start [2024-12-31 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145505', 'tblTempUsageDetail_20' ) end [2024-12-31 18:54:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:54:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:54:23] Production.INFO: ==19799== Releasing lock... [2024-12-31 18:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:54:23] Production.INFO: 45.75 MB #Memory Used# [2024-12-31 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:55:05 [end_date_ymd] => 2024-12-31 18:55:05 [RateCDR] => 1 ) [2024-12-31 18:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:55:05' and `end` < '2024-12-31 18:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:55:18] Production.INFO: count ==2349 [2024-12-31 18:55:19] Production.ERROR: pbx CDR StartTime 2024-12-31 15:55:05 - End Time 2024-12-31 18:55:05 [2024-12-31 18:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145510', 'tblTempUsageDetail_20' ) start [2024-12-31 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145510', 'tblTempUsageDetail_20' ) end [2024-12-31 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145510', 'tblTempVendorCDR_20' ) start [2024-12-31 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145510', 'tblTempVendorCDR_20' ) end [2024-12-31 18:55:19] Production.INFO: ProcessCDR(1,14145510,1,1,2) [2024-12-31 18:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145510', 'tblTempUsageDetail_20' ) start [2024-12-31 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145510', 'tblTempUsageDetail_20' ) end [2024-12-31 18:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:55:22] Production.INFO: ==19881== Releasing lock... [2024-12-31 18:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:55:22] Production.INFO: 45.75 MB #Memory Used# [2024-12-31 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:56:05 [end_date_ymd] => 2024-12-31 18:56:05 [RateCDR] => 1 ) [2024-12-31 18:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:56:05' and `end` < '2024-12-31 18:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:56:17] Production.INFO: count ==2343 [2024-12-31 18:56:18] Production.ERROR: pbx CDR StartTime 2024-12-31 15:56:05 - End Time 2024-12-31 18:56:05 [2024-12-31 18:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145515', 'tblTempUsageDetail_20' ) start [2024-12-31 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145515', 'tblTempUsageDetail_20' ) end [2024-12-31 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145515', 'tblTempVendorCDR_20' ) start [2024-12-31 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145515', 'tblTempVendorCDR_20' ) end [2024-12-31 18:56:18] Production.INFO: ProcessCDR(1,14145515,1,1,2) [2024-12-31 18:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145515', 'tblTempUsageDetail_20' ) start [2024-12-31 18:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145515', 'tblTempUsageDetail_20' ) end [2024-12-31 18:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:56:22] Production.INFO: ==19959== Releasing lock... [2024-12-31 18:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:56:22] Production.INFO: 45.5 MB #Memory Used# [2024-12-31 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:57:05 [end_date_ymd] => 2024-12-31 18:57:05 [RateCDR] => 1 ) [2024-12-31 18:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:57:05' and `end` < '2024-12-31 18:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:57:18] Production.INFO: count ==2341 [2024-12-31 18:57:18] Production.ERROR: pbx CDR StartTime 2024-12-31 15:57:05 - End Time 2024-12-31 18:57:05 [2024-12-31 18:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145520', 'tblTempUsageDetail_20' ) start [2024-12-31 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145520', 'tblTempUsageDetail_20' ) end [2024-12-31 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145520', 'tblTempVendorCDR_20' ) start [2024-12-31 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145520', 'tblTempVendorCDR_20' ) end [2024-12-31 18:57:18] Production.INFO: ProcessCDR(1,14145520,1,1,2) [2024-12-31 18:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145520', 'tblTempUsageDetail_20' ) start [2024-12-31 18:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145520', 'tblTempUsageDetail_20' ) end [2024-12-31 18:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:57:21] Production.INFO: ==20041== Releasing lock... [2024-12-31 18:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:57:21] Production.INFO: 45.25 MB #Memory Used# [2024-12-31 18:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:58:04 [end_date_ymd] => 2024-12-31 18:58:04 [RateCDR] => 1 ) [2024-12-31 18:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:58:04' and `end` < '2024-12-31 18:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:58:18] Production.INFO: count ==2326 [2024-12-31 18:58:19] Production.ERROR: pbx CDR StartTime 2024-12-31 15:58:04 - End Time 2024-12-31 18:58:04 [2024-12-31 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145525', 'tblTempUsageDetail_20' ) start [2024-12-31 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145525', 'tblTempUsageDetail_20' ) end [2024-12-31 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145525', 'tblTempVendorCDR_20' ) start [2024-12-31 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145525', 'tblTempVendorCDR_20' ) end [2024-12-31 18:58:19] Production.INFO: ProcessCDR(1,14145525,1,1,2) [2024-12-31 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145525', 'tblTempUsageDetail_20' ) start [2024-12-31 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145525', 'tblTempUsageDetail_20' ) end [2024-12-31 18:58:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:58:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:58:23] Production.INFO: ==20122== Releasing lock... [2024-12-31 18:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:58:23] Production.INFO: 45.25 MB #Memory Used# [2024-12-31 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 15:59:05 [end_date_ymd] => 2024-12-31 18:59:05 [RateCDR] => 1 ) [2024-12-31 18:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 15:59:05' and `end` < '2024-12-31 18:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 18:59:18] Production.INFO: count ==2321 [2024-12-31 18:59:19] Production.ERROR: pbx CDR StartTime 2024-12-31 15:59:05 - End Time 2024-12-31 18:59:05 [2024-12-31 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145530', 'tblTempUsageDetail_20' ) start [2024-12-31 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145530', 'tblTempUsageDetail_20' ) end [2024-12-31 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145530', 'tblTempVendorCDR_20' ) start [2024-12-31 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145530', 'tblTempVendorCDR_20' ) end [2024-12-31 18:59:19] Production.INFO: ProcessCDR(1,14145530,1,1,2) [2024-12-31 18:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 18:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145530', 'tblTempUsageDetail_20' ) start [2024-12-31 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145530', 'tblTempUsageDetail_20' ) end [2024-12-31 18:59:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 18:59:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 18:59:23] Production.INFO: ==20203== Releasing lock... [2024-12-31 18:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 18:59:23] Production.INFO: 45.5 MB #Memory Used# [2024-12-31 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:00:06 [end_date_ymd] => 2024-12-31 19:00:06 [RateCDR] => 1 ) [2024-12-31 19:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:00:06' and `end` < '2024-12-31 19:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:00:21] Production.INFO: count ==2309 [2024-12-31 19:00:21] Production.ERROR: pbx CDR StartTime 2024-12-31 16:00:06 - End Time 2024-12-31 19:00:06 [2024-12-31 19:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145535', 'tblTempUsageDetail_20' ) start [2024-12-31 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145535', 'tblTempUsageDetail_20' ) end [2024-12-31 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145535', 'tblTempVendorCDR_20' ) start [2024-12-31 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145535', 'tblTempVendorCDR_20' ) end [2024-12-31 19:00:22] Production.INFO: ProcessCDR(1,14145535,1,1,2) [2024-12-31 19:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145535', 'tblTempUsageDetail_20' ) start [2024-12-31 19:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145535', 'tblTempUsageDetail_20' ) end [2024-12-31 19:00:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:00:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:00:26] Production.INFO: ==20291== Releasing lock... [2024-12-31 19:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:00:26] Production.INFO: 45.25 MB #Memory Used# [2024-12-31 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:01:05 [end_date_ymd] => 2024-12-31 19:01:05 [RateCDR] => 1 ) [2024-12-31 19:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:01:05' and `end` < '2024-12-31 19:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:01:19] Production.INFO: count ==2312 [2024-12-31 19:01:20] Production.ERROR: pbx CDR StartTime 2024-12-31 16:01:05 - End Time 2024-12-31 19:01:05 [2024-12-31 19:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145541', 'tblTempUsageDetail_20' ) start [2024-12-31 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145541', 'tblTempUsageDetail_20' ) end [2024-12-31 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145541', 'tblTempVendorCDR_20' ) start [2024-12-31 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145541', 'tblTempVendorCDR_20' ) end [2024-12-31 19:01:20] Production.INFO: ProcessCDR(1,14145541,1,1,2) [2024-12-31 19:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145541', 'tblTempUsageDetail_20' ) start [2024-12-31 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145541', 'tblTempUsageDetail_20' ) end [2024-12-31 19:01:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:01:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:01:23] Production.INFO: ==20380== Releasing lock... [2024-12-31 19:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:01:23] Production.INFO: 45.25 MB #Memory Used# [2024-12-31 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:02:05 [end_date_ymd] => 2024-12-31 19:02:05 [RateCDR] => 1 ) [2024-12-31 19:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:02:05' and `end` < '2024-12-31 19:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:02:20] Production.INFO: count ==2316 [2024-12-31 19:02:21] Production.ERROR: pbx CDR StartTime 2024-12-31 16:02:05 - End Time 2024-12-31 19:02:05 [2024-12-31 19:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145546', 'tblTempUsageDetail_20' ) start [2024-12-31 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145546', 'tblTempUsageDetail_20' ) end [2024-12-31 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145546', 'tblTempVendorCDR_20' ) start [2024-12-31 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145546', 'tblTempVendorCDR_20' ) end [2024-12-31 19:02:21] Production.INFO: ProcessCDR(1,14145546,1,1,2) [2024-12-31 19:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145546', 'tblTempUsageDetail_20' ) start [2024-12-31 19:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145546', 'tblTempUsageDetail_20' ) end [2024-12-31 19:02:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:02:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:02:25] Production.INFO: ==20537== Releasing lock... [2024-12-31 19:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:02:25] Production.INFO: 45.5 MB #Memory Used# [2024-12-31 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:03:05 [end_date_ymd] => 2024-12-31 19:03:05 [RateCDR] => 1 ) [2024-12-31 19:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:03:05' and `end` < '2024-12-31 19:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:03:18] Production.INFO: count ==2321 [2024-12-31 19:03:18] Production.ERROR: pbx CDR StartTime 2024-12-31 16:03:05 - End Time 2024-12-31 19:03:05 [2024-12-31 19:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145551', 'tblTempUsageDetail_20' ) start [2024-12-31 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145551', 'tblTempUsageDetail_20' ) end [2024-12-31 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145551', 'tblTempVendorCDR_20' ) start [2024-12-31 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145551', 'tblTempVendorCDR_20' ) end [2024-12-31 19:03:19] Production.INFO: ProcessCDR(1,14145551,1,1,2) [2024-12-31 19:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145551', 'tblTempUsageDetail_20' ) start [2024-12-31 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145551', 'tblTempUsageDetail_20' ) end [2024-12-31 19:03:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:03:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:03:23] Production.INFO: ==20623== Releasing lock... [2024-12-31 19:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:03:23] Production.INFO: 45.25 MB #Memory Used# [2024-12-31 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:04:05 [end_date_ymd] => 2024-12-31 19:04:05 [RateCDR] => 1 ) [2024-12-31 19:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:04:05' and `end` < '2024-12-31 19:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:04:25] Production.INFO: count ==2314 [2024-12-31 19:04:25] Production.ERROR: pbx CDR StartTime 2024-12-31 16:04:05 - End Time 2024-12-31 19:04:05 [2024-12-31 19:04:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145556', 'tblTempUsageDetail_20' ) start [2024-12-31 19:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145556', 'tblTempUsageDetail_20' ) end [2024-12-31 19:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145556', 'tblTempVendorCDR_20' ) start [2024-12-31 19:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145556', 'tblTempVendorCDR_20' ) end [2024-12-31 19:04:25] Production.INFO: ProcessCDR(1,14145556,1,1,2) [2024-12-31 19:04:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145556', 'tblTempUsageDetail_20' ) start [2024-12-31 19:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145556', 'tblTempUsageDetail_20' ) end [2024-12-31 19:04:30] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:04:30] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:04:30] Production.INFO: ==20700== Releasing lock... [2024-12-31 19:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:04:30] Production.INFO: 45.25 MB #Memory Used# [2024-12-31 19:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:05:04 [end_date_ymd] => 2024-12-31 19:05:04 [RateCDR] => 1 ) [2024-12-31 19:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:05:04' and `end` < '2024-12-31 19:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:05:20] Production.INFO: count ==2312 [2024-12-31 19:05:20] Production.ERROR: pbx CDR StartTime 2024-12-31 16:05:04 - End Time 2024-12-31 19:05:04 [2024-12-31 19:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145561', 'tblTempUsageDetail_20' ) start [2024-12-31 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145561', 'tblTempUsageDetail_20' ) end [2024-12-31 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145561', 'tblTempVendorCDR_20' ) start [2024-12-31 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145561', 'tblTempVendorCDR_20' ) end [2024-12-31 19:05:20] Production.INFO: ProcessCDR(1,14145561,1,1,2) [2024-12-31 19:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145561', 'tblTempUsageDetail_20' ) start [2024-12-31 19:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145561', 'tblTempUsageDetail_20' ) end [2024-12-31 19:05:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:05:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:05:25] Production.INFO: ==20855== Releasing lock... [2024-12-31 19:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:05:25] Production.INFO: 45.25 MB #Memory Used# [2024-12-31 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:06:05 [end_date_ymd] => 2024-12-31 19:06:05 [RateCDR] => 1 ) [2024-12-31 19:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:06:05' and `end` < '2024-12-31 19:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:06:20] Production.INFO: count ==2321 [2024-12-31 19:06:20] Production.ERROR: pbx CDR StartTime 2024-12-31 16:06:05 - End Time 2024-12-31 19:06:05 [2024-12-31 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145566', 'tblTempUsageDetail_20' ) start [2024-12-31 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145566', 'tblTempUsageDetail_20' ) end [2024-12-31 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145566', 'tblTempVendorCDR_20' ) start [2024-12-31 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145566', 'tblTempVendorCDR_20' ) end [2024-12-31 19:06:21] Production.INFO: ProcessCDR(1,14145566,1,1,2) [2024-12-31 19:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145566', 'tblTempUsageDetail_20' ) start [2024-12-31 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145566', 'tblTempUsageDetail_20' ) end [2024-12-31 19:06:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:06:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:06:24] Production.INFO: ==20954== Releasing lock... [2024-12-31 19:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:06:24] Production.INFO: 45.25 MB #Memory Used# [2024-12-31 19:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:07:04 [end_date_ymd] => 2024-12-31 19:07:04 [RateCDR] => 1 ) [2024-12-31 19:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:07:04' and `end` < '2024-12-31 19:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:07:17] Production.INFO: count ==2326 [2024-12-31 19:07:18] Production.ERROR: pbx CDR StartTime 2024-12-31 16:07:04 - End Time 2024-12-31 19:07:04 [2024-12-31 19:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145571', 'tblTempUsageDetail_20' ) start [2024-12-31 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145571', 'tblTempUsageDetail_20' ) end [2024-12-31 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145571', 'tblTempVendorCDR_20' ) start [2024-12-31 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145571', 'tblTempVendorCDR_20' ) end [2024-12-31 19:07:18] Production.INFO: ProcessCDR(1,14145571,1,1,2) [2024-12-31 19:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145571', 'tblTempUsageDetail_20' ) start [2024-12-31 19:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145571', 'tblTempUsageDetail_20' ) end [2024-12-31 19:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:07:22] Production.INFO: ==21034== Releasing lock... [2024-12-31 19:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:07:22] Production.INFO: 45.25 MB #Memory Used# [2024-12-31 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:08:05 [end_date_ymd] => 2024-12-31 19:08:05 [RateCDR] => 1 ) [2024-12-31 19:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:08:05' and `end` < '2024-12-31 19:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:08:18] Production.INFO: count ==2324 [2024-12-31 19:08:19] Production.ERROR: pbx CDR StartTime 2024-12-31 16:08:05 - End Time 2024-12-31 19:08:05 [2024-12-31 19:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145576', 'tblTempUsageDetail_20' ) start [2024-12-31 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145576', 'tblTempUsageDetail_20' ) end [2024-12-31 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145576', 'tblTempVendorCDR_20' ) start [2024-12-31 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145576', 'tblTempVendorCDR_20' ) end [2024-12-31 19:08:19] Production.INFO: ProcessCDR(1,14145576,1,1,2) [2024-12-31 19:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145576', 'tblTempUsageDetail_20' ) start [2024-12-31 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145576', 'tblTempUsageDetail_20' ) end [2024-12-31 19:08:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:08:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:08:23] Production.INFO: ==21104== Releasing lock... [2024-12-31 19:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:08:23] Production.INFO: 45.25 MB #Memory Used# [2024-12-31 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:09:05 [end_date_ymd] => 2024-12-31 19:09:05 [RateCDR] => 1 ) [2024-12-31 19:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:09:05' and `end` < '2024-12-31 19:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:09:18] Production.INFO: count ==2331 [2024-12-31 19:09:19] Production.ERROR: pbx CDR StartTime 2024-12-31 16:09:05 - End Time 2024-12-31 19:09:05 [2024-12-31 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145581', 'tblTempUsageDetail_20' ) start [2024-12-31 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145581', 'tblTempUsageDetail_20' ) end [2024-12-31 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145581', 'tblTempVendorCDR_20' ) start [2024-12-31 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145581', 'tblTempVendorCDR_20' ) end [2024-12-31 19:09:19] Production.INFO: ProcessCDR(1,14145581,1,1,2) [2024-12-31 19:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145581', 'tblTempUsageDetail_20' ) start [2024-12-31 19:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145581', 'tblTempUsageDetail_20' ) end [2024-12-31 19:09:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:09:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:09:24] Production.INFO: ==21254== Releasing lock... [2024-12-31 19:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:09:24] Production.INFO: 45.25 MB #Memory Used# [2024-12-31 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:10:05 [end_date_ymd] => 2024-12-31 19:10:05 [RateCDR] => 1 ) [2024-12-31 19:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:10:05' and `end` < '2024-12-31 19:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:10:20] Production.INFO: count ==2314 [2024-12-31 19:10:20] Production.ERROR: pbx CDR StartTime 2024-12-31 16:10:05 - End Time 2024-12-31 19:10:05 [2024-12-31 19:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145586', 'tblTempUsageDetail_20' ) start [2024-12-31 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145586', 'tblTempUsageDetail_20' ) end [2024-12-31 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145586', 'tblTempVendorCDR_20' ) start [2024-12-31 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145586', 'tblTempVendorCDR_20' ) end [2024-12-31 19:10:20] Production.INFO: ProcessCDR(1,14145586,1,1,2) [2024-12-31 19:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145586', 'tblTempUsageDetail_20' ) start [2024-12-31 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145586', 'tblTempUsageDetail_20' ) end [2024-12-31 19:10:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:10:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:10:24] Production.INFO: ==21369== Releasing lock... [2024-12-31 19:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:10:24] Production.INFO: 45.25 MB #Memory Used# [2024-12-31 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:11:05 [end_date_ymd] => 2024-12-31 19:11:05 [RateCDR] => 1 ) [2024-12-31 19:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:11:05' and `end` < '2024-12-31 19:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:11:19] Production.INFO: count ==2335 [2024-12-31 19:11:19] Production.ERROR: pbx CDR StartTime 2024-12-31 16:11:05 - End Time 2024-12-31 19:11:05 [2024-12-31 19:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145592', 'tblTempUsageDetail_20' ) start [2024-12-31 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145592', 'tblTempUsageDetail_20' ) end [2024-12-31 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145592', 'tblTempVendorCDR_20' ) start [2024-12-31 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145592', 'tblTempVendorCDR_20' ) end [2024-12-31 19:11:19] Production.INFO: ProcessCDR(1,14145592,1,1,2) [2024-12-31 19:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145592', 'tblTempUsageDetail_20' ) start [2024-12-31 19:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145592', 'tblTempUsageDetail_20' ) end [2024-12-31 19:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:11:22] Production.INFO: ==21442== Releasing lock... [2024-12-31 19:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:11:22] Production.INFO: 45.25 MB #Memory Used# [2024-12-31 19:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:12:04 [end_date_ymd] => 2024-12-31 19:12:04 [RateCDR] => 1 ) [2024-12-31 19:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:12:04' and `end` < '2024-12-31 19:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:12:20] Production.INFO: count ==2335 [2024-12-31 19:12:20] Production.ERROR: pbx CDR StartTime 2024-12-31 16:12:04 - End Time 2024-12-31 19:12:04 [2024-12-31 19:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145597', 'tblTempUsageDetail_20' ) start [2024-12-31 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145597', 'tblTempUsageDetail_20' ) end [2024-12-31 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145597', 'tblTempVendorCDR_20' ) start [2024-12-31 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145597', 'tblTempVendorCDR_20' ) end [2024-12-31 19:12:20] Production.INFO: ProcessCDR(1,14145597,1,1,2) [2024-12-31 19:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145597', 'tblTempUsageDetail_20' ) start [2024-12-31 19:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145597', 'tblTempUsageDetail_20' ) end [2024-12-31 19:12:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:12:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:12:25] Production.INFO: ==21591== Releasing lock... [2024-12-31 19:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:12:25] Production.INFO: 45.25 MB #Memory Used# [2024-12-31 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:13:05 [end_date_ymd] => 2024-12-31 19:13:05 [RateCDR] => 1 ) [2024-12-31 19:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:13:05' and `end` < '2024-12-31 19:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:13:19] Production.INFO: count ==2331 [2024-12-31 19:13:20] Production.ERROR: pbx CDR StartTime 2024-12-31 16:13:05 - End Time 2024-12-31 19:13:05 [2024-12-31 19:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145602', 'tblTempUsageDetail_20' ) start [2024-12-31 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145602', 'tblTempUsageDetail_20' ) end [2024-12-31 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145602', 'tblTempVendorCDR_20' ) start [2024-12-31 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145602', 'tblTempVendorCDR_20' ) end [2024-12-31 19:13:20] Production.INFO: ProcessCDR(1,14145602,1,1,2) [2024-12-31 19:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145602', 'tblTempUsageDetail_20' ) start [2024-12-31 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145602', 'tblTempUsageDetail_20' ) end [2024-12-31 19:13:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:13:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:13:24] Production.INFO: ==21664== Releasing lock... [2024-12-31 19:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:13:24] Production.INFO: 45.5 MB #Memory Used# [2024-12-31 19:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:14:04 [end_date_ymd] => 2024-12-31 19:14:04 [RateCDR] => 1 ) [2024-12-31 19:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:14:04' and `end` < '2024-12-31 19:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:14:18] Production.INFO: count ==2332 [2024-12-31 19:14:18] Production.ERROR: pbx CDR StartTime 2024-12-31 16:14:04 - End Time 2024-12-31 19:14:04 [2024-12-31 19:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145607', 'tblTempUsageDetail_20' ) start [2024-12-31 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145607', 'tblTempUsageDetail_20' ) end [2024-12-31 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145607', 'tblTempVendorCDR_20' ) start [2024-12-31 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145607', 'tblTempVendorCDR_20' ) end [2024-12-31 19:14:18] Production.INFO: ProcessCDR(1,14145607,1,1,2) [2024-12-31 19:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145607', 'tblTempUsageDetail_20' ) start [2024-12-31 19:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145607', 'tblTempUsageDetail_20' ) end [2024-12-31 19:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:14:21] Production.INFO: ==21734== Releasing lock... [2024-12-31 19:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:14:21] Production.INFO: 45.25 MB #Memory Used# [2024-12-31 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:15:05 [end_date_ymd] => 2024-12-31 19:15:05 [RateCDR] => 1 ) [2024-12-31 19:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:15:05' and `end` < '2024-12-31 19:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:15:18] Production.INFO: count ==2331 [2024-12-31 19:15:19] Production.ERROR: pbx CDR StartTime 2024-12-31 16:15:05 - End Time 2024-12-31 19:15:05 [2024-12-31 19:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145612', 'tblTempUsageDetail_20' ) start [2024-12-31 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145612', 'tblTempUsageDetail_20' ) end [2024-12-31 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145612', 'tblTempVendorCDR_20' ) start [2024-12-31 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145612', 'tblTempVendorCDR_20' ) end [2024-12-31 19:15:19] Production.INFO: ProcessCDR(1,14145612,1,1,2) [2024-12-31 19:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145612', 'tblTempUsageDetail_20' ) start [2024-12-31 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145612', 'tblTempUsageDetail_20' ) end [2024-12-31 19:15:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:15:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:15:23] Production.INFO: ==21843== Releasing lock... [2024-12-31 19:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:15:23] Production.INFO: 45.25 MB #Memory Used# [2024-12-31 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:16:05 [end_date_ymd] => 2024-12-31 19:16:05 [RateCDR] => 1 ) [2024-12-31 19:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:16:05' and `end` < '2024-12-31 19:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:16:18] Production.INFO: count ==2324 [2024-12-31 19:16:19] Production.ERROR: pbx CDR StartTime 2024-12-31 16:16:05 - End Time 2024-12-31 19:16:05 [2024-12-31 19:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145617', 'tblTempUsageDetail_20' ) start [2024-12-31 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145617', 'tblTempUsageDetail_20' ) end [2024-12-31 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145617', 'tblTempVendorCDR_20' ) start [2024-12-31 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145617', 'tblTempVendorCDR_20' ) end [2024-12-31 19:16:19] Production.INFO: ProcessCDR(1,14145617,1,1,2) [2024-12-31 19:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145617', 'tblTempUsageDetail_20' ) start [2024-12-31 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145617', 'tblTempUsageDetail_20' ) end [2024-12-31 19:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:16:22] Production.INFO: ==21952== Releasing lock... [2024-12-31 19:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:16:22] Production.INFO: 45.25 MB #Memory Used# [2024-12-31 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:17:05 [end_date_ymd] => 2024-12-31 19:17:05 [RateCDR] => 1 ) [2024-12-31 19:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:17:05' and `end` < '2024-12-31 19:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:17:18] Production.INFO: count ==2312 [2024-12-31 19:17:18] Production.ERROR: pbx CDR StartTime 2024-12-31 16:17:05 - End Time 2024-12-31 19:17:05 [2024-12-31 19:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145622', 'tblTempUsageDetail_20' ) start [2024-12-31 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145622', 'tblTempUsageDetail_20' ) end [2024-12-31 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145622', 'tblTempVendorCDR_20' ) start [2024-12-31 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145622', 'tblTempVendorCDR_20' ) end [2024-12-31 19:17:18] Production.INFO: ProcessCDR(1,14145622,1,1,2) [2024-12-31 19:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145622', 'tblTempUsageDetail_20' ) start [2024-12-31 19:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145622', 'tblTempUsageDetail_20' ) end [2024-12-31 19:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:17:21] Production.INFO: ==22023== Releasing lock... [2024-12-31 19:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:17:21] Production.INFO: 45.25 MB #Memory Used# [2024-12-31 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:18:05 [end_date_ymd] => 2024-12-31 19:18:05 [RateCDR] => 1 ) [2024-12-31 19:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:18:05' and `end` < '2024-12-31 19:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:18:18] Production.INFO: count ==2309 [2024-12-31 19:18:18] Production.ERROR: pbx CDR StartTime 2024-12-31 16:18:05 - End Time 2024-12-31 19:18:05 [2024-12-31 19:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145627', 'tblTempUsageDetail_20' ) start [2024-12-31 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145627', 'tblTempUsageDetail_20' ) end [2024-12-31 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145627', 'tblTempVendorCDR_20' ) start [2024-12-31 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145627', 'tblTempVendorCDR_20' ) end [2024-12-31 19:18:19] Production.INFO: ProcessCDR(1,14145627,1,1,2) [2024-12-31 19:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145627', 'tblTempUsageDetail_20' ) start [2024-12-31 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145627', 'tblTempUsageDetail_20' ) end [2024-12-31 19:18:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:18:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:18:23] Production.INFO: ==22097== Releasing lock... [2024-12-31 19:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:18:23] Production.INFO: 45.25 MB #Memory Used# [2024-12-31 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:19:05 [end_date_ymd] => 2024-12-31 19:19:05 [RateCDR] => 1 ) [2024-12-31 19:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:19:05' and `end` < '2024-12-31 19:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:19:18] Production.INFO: count ==2308 [2024-12-31 19:19:18] Production.ERROR: pbx CDR StartTime 2024-12-31 16:19:05 - End Time 2024-12-31 19:19:05 [2024-12-31 19:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145632', 'tblTempUsageDetail_20' ) start [2024-12-31 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145632', 'tblTempUsageDetail_20' ) end [2024-12-31 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145632', 'tblTempVendorCDR_20' ) start [2024-12-31 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145632', 'tblTempVendorCDR_20' ) end [2024-12-31 19:19:18] Production.INFO: ProcessCDR(1,14145632,1,1,2) [2024-12-31 19:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145632', 'tblTempUsageDetail_20' ) start [2024-12-31 19:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145632', 'tblTempUsageDetail_20' ) end [2024-12-31 19:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:19:21] Production.INFO: ==22169== Releasing lock... [2024-12-31 19:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:19:21] Production.INFO: 45 MB #Memory Used# [2024-12-31 19:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:20:05 [end_date_ymd] => 2024-12-31 19:20:05 [RateCDR] => 1 ) [2024-12-31 19:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:20:05' and `end` < '2024-12-31 19:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:20:18] Production.INFO: count ==2305 [2024-12-31 19:20:19] Production.ERROR: pbx CDR StartTime 2024-12-31 16:20:05 - End Time 2024-12-31 19:20:05 [2024-12-31 19:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145637', 'tblTempUsageDetail_20' ) start [2024-12-31 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145637', 'tblTempUsageDetail_20' ) end [2024-12-31 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145637', 'tblTempVendorCDR_20' ) start [2024-12-31 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145637', 'tblTempVendorCDR_20' ) end [2024-12-31 19:20:19] Production.INFO: ProcessCDR(1,14145637,1,1,2) [2024-12-31 19:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145637', 'tblTempUsageDetail_20' ) start [2024-12-31 19:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145637', 'tblTempUsageDetail_20' ) end [2024-12-31 19:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:20:22] Production.INFO: ==22242== Releasing lock... [2024-12-31 19:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:20:22] Production.INFO: 45.25 MB #Memory Used# [2024-12-31 19:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:21:04 [end_date_ymd] => 2024-12-31 19:21:04 [RateCDR] => 1 ) [2024-12-31 19:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:21:04' and `end` < '2024-12-31 19:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:21:17] Production.INFO: count ==2322 [2024-12-31 19:21:18] Production.ERROR: pbx CDR StartTime 2024-12-31 16:21:04 - End Time 2024-12-31 19:21:04 [2024-12-31 19:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145643', 'tblTempUsageDetail_20' ) start [2024-12-31 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145643', 'tblTempUsageDetail_20' ) end [2024-12-31 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145643', 'tblTempVendorCDR_20' ) start [2024-12-31 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145643', 'tblTempVendorCDR_20' ) end [2024-12-31 19:21:18] Production.INFO: ProcessCDR(1,14145643,1,1,2) [2024-12-31 19:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145643', 'tblTempUsageDetail_20' ) start [2024-12-31 19:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145643', 'tblTempUsageDetail_20' ) end [2024-12-31 19:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:21:21] Production.INFO: ==22320== Releasing lock... [2024-12-31 19:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:21:21] Production.INFO: 45.25 MB #Memory Used# [2024-12-31 19:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:22:04 [end_date_ymd] => 2024-12-31 19:22:04 [RateCDR] => 1 ) [2024-12-31 19:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:22:04' and `end` < '2024-12-31 19:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:22:17] Production.INFO: count ==2324 [2024-12-31 19:22:18] Production.ERROR: pbx CDR StartTime 2024-12-31 16:22:04 - End Time 2024-12-31 19:22:04 [2024-12-31 19:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145648', 'tblTempUsageDetail_20' ) start [2024-12-31 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145648', 'tblTempUsageDetail_20' ) end [2024-12-31 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145648', 'tblTempVendorCDR_20' ) start [2024-12-31 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145648', 'tblTempVendorCDR_20' ) end [2024-12-31 19:22:18] Production.INFO: ProcessCDR(1,14145648,1,1,2) [2024-12-31 19:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145648', 'tblTempUsageDetail_20' ) start [2024-12-31 19:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145648', 'tblTempUsageDetail_20' ) end [2024-12-31 19:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:22:21] Production.INFO: ==22390== Releasing lock... [2024-12-31 19:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:22:21] Production.INFO: 45.25 MB #Memory Used# [2024-12-31 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:23:05 [end_date_ymd] => 2024-12-31 19:23:05 [RateCDR] => 1 ) [2024-12-31 19:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:23:05' and `end` < '2024-12-31 19:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:23:18] Production.INFO: count ==2322 [2024-12-31 19:23:19] Production.ERROR: pbx CDR StartTime 2024-12-31 16:23:05 - End Time 2024-12-31 19:23:05 [2024-12-31 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145653', 'tblTempUsageDetail_20' ) start [2024-12-31 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145653', 'tblTempUsageDetail_20' ) end [2024-12-31 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145653', 'tblTempVendorCDR_20' ) start [2024-12-31 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145653', 'tblTempVendorCDR_20' ) end [2024-12-31 19:23:19] Production.INFO: ProcessCDR(1,14145653,1,1,2) [2024-12-31 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145653', 'tblTempUsageDetail_20' ) start [2024-12-31 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145653', 'tblTempUsageDetail_20' ) end [2024-12-31 19:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:23:22] Production.INFO: ==22460== Releasing lock... [2024-12-31 19:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:23:22] Production.INFO: 45.25 MB #Memory Used# [2024-12-31 19:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:24:04 [end_date_ymd] => 2024-12-31 19:24:04 [RateCDR] => 1 ) [2024-12-31 19:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:24:04' and `end` < '2024-12-31 19:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:24:17] Production.INFO: count ==2324 [2024-12-31 19:24:18] Production.ERROR: pbx CDR StartTime 2024-12-31 16:24:04 - End Time 2024-12-31 19:24:04 [2024-12-31 19:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145658', 'tblTempUsageDetail_20' ) start [2024-12-31 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145658', 'tblTempUsageDetail_20' ) end [2024-12-31 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145658', 'tblTempVendorCDR_20' ) start [2024-12-31 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145658', 'tblTempVendorCDR_20' ) end [2024-12-31 19:24:18] Production.INFO: ProcessCDR(1,14145658,1,1,2) [2024-12-31 19:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145658', 'tblTempUsageDetail_20' ) start [2024-12-31 19:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145658', 'tblTempUsageDetail_20' ) end [2024-12-31 19:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:24:21] Production.INFO: ==22532== Releasing lock... [2024-12-31 19:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:24:21] Production.INFO: 45.5 MB #Memory Used# [2024-12-31 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:25:05 [end_date_ymd] => 2024-12-31 19:25:05 [RateCDR] => 1 ) [2024-12-31 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:25:05' and `end` < '2024-12-31 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:25:19] Production.INFO: count ==2314 [2024-12-31 19:25:19] Production.ERROR: pbx CDR StartTime 2024-12-31 16:25:05 - End Time 2024-12-31 19:25:05 [2024-12-31 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145663', 'tblTempUsageDetail_20' ) start [2024-12-31 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145663', 'tblTempUsageDetail_20' ) end [2024-12-31 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145663', 'tblTempVendorCDR_20' ) start [2024-12-31 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145663', 'tblTempVendorCDR_20' ) end [2024-12-31 19:25:19] Production.INFO: ProcessCDR(1,14145663,1,1,2) [2024-12-31 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145663', 'tblTempUsageDetail_20' ) start [2024-12-31 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145663', 'tblTempUsageDetail_20' ) end [2024-12-31 19:25:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:25:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:25:23] Production.INFO: ==22642== Releasing lock... [2024-12-31 19:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:25:23] Production.INFO: 45.25 MB #Memory Used# [2024-12-31 19:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:26:04 [end_date_ymd] => 2024-12-31 19:26:04 [RateCDR] => 1 ) [2024-12-31 19:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:26:04' and `end` < '2024-12-31 19:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:26:17] Production.INFO: count ==2313 [2024-12-31 19:26:17] Production.ERROR: pbx CDR StartTime 2024-12-31 16:26:04 - End Time 2024-12-31 19:26:04 [2024-12-31 19:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145668', 'tblTempUsageDetail_20' ) start [2024-12-31 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145668', 'tblTempUsageDetail_20' ) end [2024-12-31 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145668', 'tblTempVendorCDR_20' ) start [2024-12-31 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145668', 'tblTempVendorCDR_20' ) end [2024-12-31 19:26:18] Production.INFO: ProcessCDR(1,14145668,1,1,2) [2024-12-31 19:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145668', 'tblTempUsageDetail_20' ) start [2024-12-31 19:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145668', 'tblTempUsageDetail_20' ) end [2024-12-31 19:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:26:20] Production.INFO: ==22715== Releasing lock... [2024-12-31 19:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:26:20] Production.INFO: 45.5 MB #Memory Used# [2024-12-31 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:27:05 [end_date_ymd] => 2024-12-31 19:27:05 [RateCDR] => 1 ) [2024-12-31 19:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:27:05' and `end` < '2024-12-31 19:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:27:18] Production.INFO: count ==2312 [2024-12-31 19:27:18] Production.ERROR: pbx CDR StartTime 2024-12-31 16:27:05 - End Time 2024-12-31 19:27:05 [2024-12-31 19:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145673', 'tblTempUsageDetail_20' ) start [2024-12-31 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145673', 'tblTempUsageDetail_20' ) end [2024-12-31 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145673', 'tblTempVendorCDR_20' ) start [2024-12-31 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145673', 'tblTempVendorCDR_20' ) end [2024-12-31 19:27:18] Production.INFO: ProcessCDR(1,14145673,1,1,2) [2024-12-31 19:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145673', 'tblTempUsageDetail_20' ) start [2024-12-31 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145673', 'tblTempUsageDetail_20' ) end [2024-12-31 19:27:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:27:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:27:22] Production.INFO: ==22785== Releasing lock... [2024-12-31 19:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:27:22] Production.INFO: 45.25 MB #Memory Used# [2024-12-31 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:28:05 [end_date_ymd] => 2024-12-31 19:28:05 [RateCDR] => 1 ) [2024-12-31 19:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:28:05' and `end` < '2024-12-31 19:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:28:18] Production.INFO: count ==2301 [2024-12-31 19:28:18] Production.ERROR: pbx CDR StartTime 2024-12-31 16:28:05 - End Time 2024-12-31 19:28:05 [2024-12-31 19:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145678', 'tblTempUsageDetail_20' ) start [2024-12-31 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145678', 'tblTempUsageDetail_20' ) end [2024-12-31 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145678', 'tblTempVendorCDR_20' ) start [2024-12-31 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145678', 'tblTempVendorCDR_20' ) end [2024-12-31 19:28:18] Production.INFO: ProcessCDR(1,14145678,1,1,2) [2024-12-31 19:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145678', 'tblTempUsageDetail_20' ) start [2024-12-31 19:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145678', 'tblTempUsageDetail_20' ) end [2024-12-31 19:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:28:21] Production.INFO: ==22857== Releasing lock... [2024-12-31 19:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:28:21] Production.INFO: 44.75 MB #Memory Used# [2024-12-31 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:29:05 [end_date_ymd] => 2024-12-31 19:29:05 [RateCDR] => 1 ) [2024-12-31 19:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:29:05' and `end` < '2024-12-31 19:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:29:18] Production.INFO: count ==2288 [2024-12-31 19:29:19] Production.ERROR: pbx CDR StartTime 2024-12-31 16:29:05 - End Time 2024-12-31 19:29:05 [2024-12-31 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145683', 'tblTempUsageDetail_20' ) start [2024-12-31 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145683', 'tblTempUsageDetail_20' ) end [2024-12-31 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145683', 'tblTempVendorCDR_20' ) start [2024-12-31 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145683', 'tblTempVendorCDR_20' ) end [2024-12-31 19:29:19] Production.INFO: ProcessCDR(1,14145683,1,1,2) [2024-12-31 19:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145683', 'tblTempUsageDetail_20' ) start [2024-12-31 19:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145683', 'tblTempUsageDetail_20' ) end [2024-12-31 19:29:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:29:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:29:22] Production.INFO: ==22926== Releasing lock... [2024-12-31 19:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:29:22] Production.INFO: 45.25 MB #Memory Used# [2024-12-31 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:30:06 [end_date_ymd] => 2024-12-31 19:30:06 [RateCDR] => 1 ) [2024-12-31 19:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:30:06' and `end` < '2024-12-31 19:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:30:18] Production.INFO: count ==2289 [2024-12-31 19:30:19] Production.ERROR: pbx CDR StartTime 2024-12-31 16:30:06 - End Time 2024-12-31 19:30:06 [2024-12-31 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145689', 'tblTempUsageDetail_20' ) start [2024-12-31 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145689', 'tblTempUsageDetail_20' ) end [2024-12-31 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145689', 'tblTempVendorCDR_20' ) start [2024-12-31 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145689', 'tblTempVendorCDR_20' ) end [2024-12-31 19:30:19] Production.INFO: ProcessCDR(1,14145689,1,1,2) [2024-12-31 19:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145689', 'tblTempUsageDetail_20' ) start [2024-12-31 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145689', 'tblTempUsageDetail_20' ) end [2024-12-31 19:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:30:22] Production.INFO: ==23001== Releasing lock... [2024-12-31 19:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:30:22] Production.INFO: 45 MB #Memory Used# [2024-12-31 19:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:31:04 [end_date_ymd] => 2024-12-31 19:31:04 [RateCDR] => 1 ) [2024-12-31 19:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:31:04' and `end` < '2024-12-31 19:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:31:17] Production.INFO: count ==2305 [2024-12-31 19:31:18] Production.ERROR: pbx CDR StartTime 2024-12-31 16:31:04 - End Time 2024-12-31 19:31:04 [2024-12-31 19:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145694', 'tblTempUsageDetail_20' ) start [2024-12-31 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145694', 'tblTempUsageDetail_20' ) end [2024-12-31 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145694', 'tblTempVendorCDR_20' ) start [2024-12-31 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145694', 'tblTempVendorCDR_20' ) end [2024-12-31 19:31:18] Production.INFO: ProcessCDR(1,14145694,1,1,2) [2024-12-31 19:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145694', 'tblTempUsageDetail_20' ) start [2024-12-31 19:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145694', 'tblTempUsageDetail_20' ) end [2024-12-31 19:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:31:21] Production.INFO: ==23073== Releasing lock... [2024-12-31 19:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:31:21] Production.INFO: 45 MB #Memory Used# [2024-12-31 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:32:05 [end_date_ymd] => 2024-12-31 19:32:05 [RateCDR] => 1 ) [2024-12-31 19:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:32:05' and `end` < '2024-12-31 19:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:32:18] Production.INFO: count ==2304 [2024-12-31 19:32:18] Production.ERROR: pbx CDR StartTime 2024-12-31 16:32:05 - End Time 2024-12-31 19:32:05 [2024-12-31 19:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145699', 'tblTempUsageDetail_20' ) start [2024-12-31 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145699', 'tblTempUsageDetail_20' ) end [2024-12-31 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145699', 'tblTempVendorCDR_20' ) start [2024-12-31 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145699', 'tblTempVendorCDR_20' ) end [2024-12-31 19:32:18] Production.INFO: ProcessCDR(1,14145699,1,1,2) [2024-12-31 19:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145699', 'tblTempUsageDetail_20' ) start [2024-12-31 19:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145699', 'tblTempUsageDetail_20' ) end [2024-12-31 19:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:32:21] Production.INFO: ==23147== Releasing lock... [2024-12-31 19:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:32:21] Production.INFO: 45.25 MB #Memory Used# [2024-12-31 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:33:05 [end_date_ymd] => 2024-12-31 19:33:05 [RateCDR] => 1 ) [2024-12-31 19:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:33:05' and `end` < '2024-12-31 19:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:33:21] Production.INFO: count ==2301 [2024-12-31 19:33:21] Production.ERROR: pbx CDR StartTime 2024-12-31 16:33:05 - End Time 2024-12-31 19:33:05 [2024-12-31 19:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145704', 'tblTempUsageDetail_20' ) start [2024-12-31 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145704', 'tblTempUsageDetail_20' ) end [2024-12-31 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145704', 'tblTempVendorCDR_20' ) start [2024-12-31 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145704', 'tblTempVendorCDR_20' ) end [2024-12-31 19:33:21] Production.INFO: ProcessCDR(1,14145704,1,1,2) [2024-12-31 19:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145704', 'tblTempUsageDetail_20' ) start [2024-12-31 19:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145704', 'tblTempUsageDetail_20' ) end [2024-12-31 19:33:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:33:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:33:24] Production.INFO: ==23219== Releasing lock... [2024-12-31 19:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:33:24] Production.INFO: 45 MB #Memory Used# [2024-12-31 19:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:34:04 [end_date_ymd] => 2024-12-31 19:34:04 [RateCDR] => 1 ) [2024-12-31 19:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:34:04' and `end` < '2024-12-31 19:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:34:17] Production.INFO: count ==2300 [2024-12-31 19:34:17] Production.ERROR: pbx CDR StartTime 2024-12-31 16:34:04 - End Time 2024-12-31 19:34:04 [2024-12-31 19:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145709', 'tblTempUsageDetail_20' ) start [2024-12-31 19:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145709', 'tblTempUsageDetail_20' ) end [2024-12-31 19:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145709', 'tblTempVendorCDR_20' ) start [2024-12-31 19:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145709', 'tblTempVendorCDR_20' ) end [2024-12-31 19:34:17] Production.INFO: ProcessCDR(1,14145709,1,1,2) [2024-12-31 19:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145709', 'tblTempUsageDetail_20' ) start [2024-12-31 19:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145709', 'tblTempUsageDetail_20' ) end [2024-12-31 19:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:34:20] Production.INFO: ==23287== Releasing lock... [2024-12-31 19:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:34:20] Production.INFO: 45 MB #Memory Used# [2024-12-31 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:35:05 [end_date_ymd] => 2024-12-31 19:35:05 [RateCDR] => 1 ) [2024-12-31 19:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:35:05' and `end` < '2024-12-31 19:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:35:18] Production.INFO: count ==2285 [2024-12-31 19:35:19] Production.ERROR: pbx CDR StartTime 2024-12-31 16:35:05 - End Time 2024-12-31 19:35:05 [2024-12-31 19:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145714', 'tblTempUsageDetail_20' ) start [2024-12-31 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145714', 'tblTempUsageDetail_20' ) end [2024-12-31 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145714', 'tblTempVendorCDR_20' ) start [2024-12-31 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145714', 'tblTempVendorCDR_20' ) end [2024-12-31 19:35:19] Production.INFO: ProcessCDR(1,14145714,1,1,2) [2024-12-31 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145714', 'tblTempUsageDetail_20' ) start [2024-12-31 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145714', 'tblTempUsageDetail_20' ) end [2024-12-31 19:35:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:35:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:35:22] Production.INFO: ==23364== Releasing lock... [2024-12-31 19:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:35:22] Production.INFO: 45 MB #Memory Used# [2024-12-31 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:36:05 [end_date_ymd] => 2024-12-31 19:36:05 [RateCDR] => 1 ) [2024-12-31 19:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:36:05' and `end` < '2024-12-31 19:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:36:17] Production.INFO: count ==2267 [2024-12-31 19:36:18] Production.ERROR: pbx CDR StartTime 2024-12-31 16:36:05 - End Time 2024-12-31 19:36:05 [2024-12-31 19:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145719', 'tblTempUsageDetail_20' ) start [2024-12-31 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145719', 'tblTempUsageDetail_20' ) end [2024-12-31 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145719', 'tblTempVendorCDR_20' ) start [2024-12-31 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145719', 'tblTempVendorCDR_20' ) end [2024-12-31 19:36:18] Production.INFO: ProcessCDR(1,14145719,1,1,2) [2024-12-31 19:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145719', 'tblTempUsageDetail_20' ) start [2024-12-31 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145719', 'tblTempUsageDetail_20' ) end [2024-12-31 19:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:36:22] Production.INFO: ==23434== Releasing lock... [2024-12-31 19:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:36:22] Production.INFO: 44.75 MB #Memory Used# [2024-12-31 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:37:05 [end_date_ymd] => 2024-12-31 19:37:05 [RateCDR] => 1 ) [2024-12-31 19:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:37:05' and `end` < '2024-12-31 19:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:37:19] Production.INFO: count ==2256 [2024-12-31 19:37:20] Production.ERROR: pbx CDR StartTime 2024-12-31 16:37:05 - End Time 2024-12-31 19:37:05 [2024-12-31 19:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145724', 'tblTempUsageDetail_20' ) start [2024-12-31 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145724', 'tblTempUsageDetail_20' ) end [2024-12-31 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145724', 'tblTempVendorCDR_20' ) start [2024-12-31 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145724', 'tblTempVendorCDR_20' ) end [2024-12-31 19:37:20] Production.INFO: ProcessCDR(1,14145724,1,1,2) [2024-12-31 19:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145724', 'tblTempUsageDetail_20' ) start [2024-12-31 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145724', 'tblTempUsageDetail_20' ) end [2024-12-31 19:37:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:37:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:37:23] Production.INFO: ==23505== Releasing lock... [2024-12-31 19:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:37:23] Production.INFO: 44.75 MB #Memory Used# [2024-12-31 19:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:38:04 [end_date_ymd] => 2024-12-31 19:38:04 [RateCDR] => 1 ) [2024-12-31 19:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:38:04' and `end` < '2024-12-31 19:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:38:17] Production.INFO: count ==2240 [2024-12-31 19:38:18] Production.ERROR: pbx CDR StartTime 2024-12-31 16:38:04 - End Time 2024-12-31 19:38:04 [2024-12-31 19:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145729', 'tblTempUsageDetail_20' ) start [2024-12-31 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145729', 'tblTempUsageDetail_20' ) end [2024-12-31 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145729', 'tblTempVendorCDR_20' ) start [2024-12-31 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145729', 'tblTempVendorCDR_20' ) end [2024-12-31 19:38:18] Production.INFO: ProcessCDR(1,14145729,1,1,2) [2024-12-31 19:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145729', 'tblTempUsageDetail_20' ) start [2024-12-31 19:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145729', 'tblTempUsageDetail_20' ) end [2024-12-31 19:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:38:21] Production.INFO: ==23579== Releasing lock... [2024-12-31 19:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:38:21] Production.INFO: 44.5 MB #Memory Used# [2024-12-31 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:39:05 [end_date_ymd] => 2024-12-31 19:39:05 [RateCDR] => 1 ) [2024-12-31 19:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:39:05' and `end` < '2024-12-31 19:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:39:19] Production.INFO: count ==2235 [2024-12-31 19:39:19] Production.ERROR: pbx CDR StartTime 2024-12-31 16:39:05 - End Time 2024-12-31 19:39:05 [2024-12-31 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145734', 'tblTempUsageDetail_20' ) start [2024-12-31 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145734', 'tblTempUsageDetail_20' ) end [2024-12-31 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145734', 'tblTempVendorCDR_20' ) start [2024-12-31 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145734', 'tblTempVendorCDR_20' ) end [2024-12-31 19:39:19] Production.INFO: ProcessCDR(1,14145734,1,1,2) [2024-12-31 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145734', 'tblTempUsageDetail_20' ) start [2024-12-31 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145734', 'tblTempUsageDetail_20' ) end [2024-12-31 19:39:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:39:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:39:23] Production.INFO: ==23651== Releasing lock... [2024-12-31 19:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:39:23] Production.INFO: 44.75 MB #Memory Used# [2024-12-31 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:40:06 [end_date_ymd] => 2024-12-31 19:40:06 [RateCDR] => 1 ) [2024-12-31 19:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:40:06' and `end` < '2024-12-31 19:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:40:18] Production.INFO: count ==2227 [2024-12-31 19:40:19] Production.ERROR: pbx CDR StartTime 2024-12-31 16:40:06 - End Time 2024-12-31 19:40:06 [2024-12-31 19:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145740', 'tblTempUsageDetail_20' ) start [2024-12-31 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145740', 'tblTempUsageDetail_20' ) end [2024-12-31 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145740', 'tblTempVendorCDR_20' ) start [2024-12-31 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145740', 'tblTempVendorCDR_20' ) end [2024-12-31 19:40:19] Production.INFO: ProcessCDR(1,14145740,1,1,2) [2024-12-31 19:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145740', 'tblTempUsageDetail_20' ) start [2024-12-31 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145740', 'tblTempUsageDetail_20' ) end [2024-12-31 19:40:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:40:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:40:23] Production.INFO: ==23723== Releasing lock... [2024-12-31 19:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:40:23] Production.INFO: 44.5 MB #Memory Used# [2024-12-31 19:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:41:04 [end_date_ymd] => 2024-12-31 19:41:04 [RateCDR] => 1 ) [2024-12-31 19:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:41:04' and `end` < '2024-12-31 19:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:41:18] Production.INFO: count ==2194 [2024-12-31 19:41:18] Production.ERROR: pbx CDR StartTime 2024-12-31 16:41:04 - End Time 2024-12-31 19:41:04 [2024-12-31 19:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145745', 'tblTempUsageDetail_20' ) start [2024-12-31 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145745', 'tblTempUsageDetail_20' ) end [2024-12-31 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145745', 'tblTempVendorCDR_20' ) start [2024-12-31 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145745', 'tblTempVendorCDR_20' ) end [2024-12-31 19:41:18] Production.INFO: ProcessCDR(1,14145745,1,1,2) [2024-12-31 19:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145745', 'tblTempUsageDetail_20' ) start [2024-12-31 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145745', 'tblTempUsageDetail_20' ) end [2024-12-31 19:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:41:22] Production.INFO: ==23852== Releasing lock... [2024-12-31 19:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:41:22] Production.INFO: 44 MB #Memory Used# [2024-12-31 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:42:05 [end_date_ymd] => 2024-12-31 19:42:05 [RateCDR] => 1 ) [2024-12-31 19:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:42:05' and `end` < '2024-12-31 19:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:42:18] Production.INFO: count ==2171 [2024-12-31 19:42:18] Production.ERROR: pbx CDR StartTime 2024-12-31 16:42:05 - End Time 2024-12-31 19:42:05 [2024-12-31 19:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145750', 'tblTempUsageDetail_20' ) start [2024-12-31 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145750', 'tblTempUsageDetail_20' ) end [2024-12-31 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145750', 'tblTempVendorCDR_20' ) start [2024-12-31 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145750', 'tblTempVendorCDR_20' ) end [2024-12-31 19:42:18] Production.INFO: ProcessCDR(1,14145750,1,1,2) [2024-12-31 19:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145750', 'tblTempUsageDetail_20' ) start [2024-12-31 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145750', 'tblTempUsageDetail_20' ) end [2024-12-31 19:42:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:42:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:42:23] Production.INFO: ==23952== Releasing lock... [2024-12-31 19:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:42:23] Production.INFO: 44 MB #Memory Used# [2024-12-31 19:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:43:04 [end_date_ymd] => 2024-12-31 19:43:04 [RateCDR] => 1 ) [2024-12-31 19:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:43:04' and `end` < '2024-12-31 19:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:43:17] Production.INFO: count ==2168 [2024-12-31 19:43:18] Production.ERROR: pbx CDR StartTime 2024-12-31 16:43:04 - End Time 2024-12-31 19:43:04 [2024-12-31 19:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145755', 'tblTempUsageDetail_20' ) start [2024-12-31 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145755', 'tblTempUsageDetail_20' ) end [2024-12-31 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145755', 'tblTempVendorCDR_20' ) start [2024-12-31 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145755', 'tblTempVendorCDR_20' ) end [2024-12-31 19:43:18] Production.INFO: ProcessCDR(1,14145755,1,1,2) [2024-12-31 19:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145755', 'tblTempUsageDetail_20' ) start [2024-12-31 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145755', 'tblTempUsageDetail_20' ) end [2024-12-31 19:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:43:22] Production.INFO: ==24052== Releasing lock... [2024-12-31 19:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:43:22] Production.INFO: 43.75 MB #Memory Used# [2024-12-31 19:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:44:04 [end_date_ymd] => 2024-12-31 19:44:04 [RateCDR] => 1 ) [2024-12-31 19:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:44:04' and `end` < '2024-12-31 19:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:44:17] Production.INFO: count ==2167 [2024-12-31 19:44:18] Production.ERROR: pbx CDR StartTime 2024-12-31 16:44:04 - End Time 2024-12-31 19:44:04 [2024-12-31 19:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145760', 'tblTempUsageDetail_20' ) start [2024-12-31 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145760', 'tblTempUsageDetail_20' ) end [2024-12-31 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145760', 'tblTempVendorCDR_20' ) start [2024-12-31 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145760', 'tblTempVendorCDR_20' ) end [2024-12-31 19:44:18] Production.INFO: ProcessCDR(1,14145760,1,1,2) [2024-12-31 19:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145760', 'tblTempUsageDetail_20' ) start [2024-12-31 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145760', 'tblTempUsageDetail_20' ) end [2024-12-31 19:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:44:22] Production.INFO: ==24133== Releasing lock... [2024-12-31 19:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:44:22] Production.INFO: 43.75 MB #Memory Used# [2024-12-31 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:45:05 [end_date_ymd] => 2024-12-31 19:45:05 [RateCDR] => 1 ) [2024-12-31 19:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:45:05' and `end` < '2024-12-31 19:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:45:18] Production.INFO: count ==2163 [2024-12-31 19:45:18] Production.ERROR: pbx CDR StartTime 2024-12-31 16:45:05 - End Time 2024-12-31 19:45:05 [2024-12-31 19:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145765', 'tblTempUsageDetail_20' ) start [2024-12-31 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145765', 'tblTempUsageDetail_20' ) end [2024-12-31 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145765', 'tblTempVendorCDR_20' ) start [2024-12-31 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145765', 'tblTempVendorCDR_20' ) end [2024-12-31 19:45:18] Production.INFO: ProcessCDR(1,14145765,1,1,2) [2024-12-31 19:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145765', 'tblTempUsageDetail_20' ) start [2024-12-31 19:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145765', 'tblTempUsageDetail_20' ) end [2024-12-31 19:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:45:21] Production.INFO: ==24205== Releasing lock... [2024-12-31 19:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:45:21] Production.INFO: 43.75 MB #Memory Used# [2024-12-31 19:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:46:04 [end_date_ymd] => 2024-12-31 19:46:04 [RateCDR] => 1 ) [2024-12-31 19:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:46:04' and `end` < '2024-12-31 19:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:46:18] Production.INFO: count ==2158 [2024-12-31 19:46:18] Production.ERROR: pbx CDR StartTime 2024-12-31 16:46:04 - End Time 2024-12-31 19:46:04 [2024-12-31 19:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145770', 'tblTempUsageDetail_20' ) start [2024-12-31 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145770', 'tblTempUsageDetail_20' ) end [2024-12-31 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145770', 'tblTempVendorCDR_20' ) start [2024-12-31 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145770', 'tblTempVendorCDR_20' ) end [2024-12-31 19:46:18] Production.INFO: ProcessCDR(1,14145770,1,1,2) [2024-12-31 19:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145770', 'tblTempUsageDetail_20' ) start [2024-12-31 19:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145770', 'tblTempUsageDetail_20' ) end [2024-12-31 19:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:46:21] Production.INFO: ==24286== Releasing lock... [2024-12-31 19:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:46:21] Production.INFO: 43.75 MB #Memory Used# [2024-12-31 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:47:05 [end_date_ymd] => 2024-12-31 19:47:05 [RateCDR] => 1 ) [2024-12-31 19:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:47:05' and `end` < '2024-12-31 19:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:47:19] Production.INFO: count ==2155 [2024-12-31 19:47:20] Production.ERROR: pbx CDR StartTime 2024-12-31 16:47:05 - End Time 2024-12-31 19:47:05 [2024-12-31 19:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145775', 'tblTempUsageDetail_20' ) start [2024-12-31 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145775', 'tblTempUsageDetail_20' ) end [2024-12-31 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145775', 'tblTempVendorCDR_20' ) start [2024-12-31 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145775', 'tblTempVendorCDR_20' ) end [2024-12-31 19:47:20] Production.INFO: ProcessCDR(1,14145775,1,1,2) [2024-12-31 19:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145775', 'tblTempUsageDetail_20' ) start [2024-12-31 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145775', 'tblTempUsageDetail_20' ) end [2024-12-31 19:47:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:47:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:47:24] Production.INFO: ==24361== Releasing lock... [2024-12-31 19:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:47:24] Production.INFO: 43.75 MB #Memory Used# [2024-12-31 19:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:48:04 [end_date_ymd] => 2024-12-31 19:48:04 [RateCDR] => 1 ) [2024-12-31 19:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:48:04' and `end` < '2024-12-31 19:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:48:17] Production.INFO: count ==2146 [2024-12-31 19:48:17] Production.ERROR: pbx CDR StartTime 2024-12-31 16:48:04 - End Time 2024-12-31 19:48:04 [2024-12-31 19:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145780', 'tblTempUsageDetail_20' ) start [2024-12-31 19:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145780', 'tblTempUsageDetail_20' ) end [2024-12-31 19:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145780', 'tblTempVendorCDR_20' ) start [2024-12-31 19:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145780', 'tblTempVendorCDR_20' ) end [2024-12-31 19:48:17] Production.INFO: ProcessCDR(1,14145780,1,1,2) [2024-12-31 19:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145780', 'tblTempUsageDetail_20' ) start [2024-12-31 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145780', 'tblTempUsageDetail_20' ) end [2024-12-31 19:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:48:22] Production.INFO: ==24433== Releasing lock... [2024-12-31 19:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:48:22] Production.INFO: 43.75 MB #Memory Used# [2024-12-31 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:49:05 [end_date_ymd] => 2024-12-31 19:49:05 [RateCDR] => 1 ) [2024-12-31 19:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:49:05' and `end` < '2024-12-31 19:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:49:19] Production.INFO: count ==2145 [2024-12-31 19:49:19] Production.ERROR: pbx CDR StartTime 2024-12-31 16:49:05 - End Time 2024-12-31 19:49:05 [2024-12-31 19:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145785', 'tblTempUsageDetail_20' ) start [2024-12-31 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145785', 'tblTempUsageDetail_20' ) end [2024-12-31 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145785', 'tblTempVendorCDR_20' ) start [2024-12-31 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145785', 'tblTempVendorCDR_20' ) end [2024-12-31 19:49:19] Production.INFO: ProcessCDR(1,14145785,1,1,2) [2024-12-31 19:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145785', 'tblTempUsageDetail_20' ) start [2024-12-31 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145785', 'tblTempUsageDetail_20' ) end [2024-12-31 19:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:49:22] Production.INFO: ==24526== Releasing lock... [2024-12-31 19:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:49:22] Production.INFO: 43.75 MB #Memory Used# [2024-12-31 19:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:50:05 [end_date_ymd] => 2024-12-31 19:50:05 [RateCDR] => 1 ) [2024-12-31 19:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:50:05' and `end` < '2024-12-31 19:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:50:19] Production.INFO: count ==2139 [2024-12-31 19:50:19] Production.ERROR: pbx CDR StartTime 2024-12-31 16:50:05 - End Time 2024-12-31 19:50:05 [2024-12-31 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145791', 'tblTempUsageDetail_20' ) start [2024-12-31 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145791', 'tblTempUsageDetail_20' ) end [2024-12-31 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145791', 'tblTempVendorCDR_20' ) start [2024-12-31 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145791', 'tblTempVendorCDR_20' ) end [2024-12-31 19:50:19] Production.INFO: ProcessCDR(1,14145791,1,1,2) [2024-12-31 19:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145791', 'tblTempUsageDetail_20' ) start [2024-12-31 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145791', 'tblTempUsageDetail_20' ) end [2024-12-31 19:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:50:23] Production.INFO: ==24619== Releasing lock... [2024-12-31 19:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:50:23] Production.INFO: 43.75 MB #Memory Used# [2024-12-31 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:51:05 [end_date_ymd] => 2024-12-31 19:51:05 [RateCDR] => 1 ) [2024-12-31 19:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:51:05' and `end` < '2024-12-31 19:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:51:18] Production.INFO: count ==2118 [2024-12-31 19:51:18] Production.ERROR: pbx CDR StartTime 2024-12-31 16:51:05 - End Time 2024-12-31 19:51:05 [2024-12-31 19:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145795', 'tblTempUsageDetail_20' ) start [2024-12-31 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145795', 'tblTempUsageDetail_20' ) end [2024-12-31 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145795', 'tblTempVendorCDR_20' ) start [2024-12-31 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145795', 'tblTempVendorCDR_20' ) end [2024-12-31 19:51:18] Production.INFO: ProcessCDR(1,14145795,1,1,2) [2024-12-31 19:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145795', 'tblTempUsageDetail_20' ) start [2024-12-31 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145795', 'tblTempUsageDetail_20' ) end [2024-12-31 19:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:51:22] Production.INFO: ==24715== Releasing lock... [2024-12-31 19:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:51:22] Production.INFO: 43.5 MB #Memory Used# [2024-12-31 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:52:05 [end_date_ymd] => 2024-12-31 19:52:05 [RateCDR] => 1 ) [2024-12-31 19:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:52:05' and `end` < '2024-12-31 19:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:52:18] Production.INFO: count ==2107 [2024-12-31 19:52:18] Production.ERROR: pbx CDR StartTime 2024-12-31 16:52:05 - End Time 2024-12-31 19:52:05 [2024-12-31 19:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145801', 'tblTempUsageDetail_20' ) start [2024-12-31 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145801', 'tblTempUsageDetail_20' ) end [2024-12-31 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145801', 'tblTempVendorCDR_20' ) start [2024-12-31 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145801', 'tblTempVendorCDR_20' ) end [2024-12-31 19:52:18] Production.INFO: ProcessCDR(1,14145801,1,1,2) [2024-12-31 19:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145801', 'tblTempUsageDetail_20' ) start [2024-12-31 19:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145801', 'tblTempUsageDetail_20' ) end [2024-12-31 19:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:52:21] Production.INFO: ==24811== Releasing lock... [2024-12-31 19:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:52:21] Production.INFO: 43.5 MB #Memory Used# [2024-12-31 19:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:53:04 [end_date_ymd] => 2024-12-31 19:53:04 [RateCDR] => 1 ) [2024-12-31 19:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:53:04' and `end` < '2024-12-31 19:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:53:17] Production.INFO: count ==2100 [2024-12-31 19:53:18] Production.ERROR: pbx CDR StartTime 2024-12-31 16:53:04 - End Time 2024-12-31 19:53:04 [2024-12-31 19:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145806', 'tblTempUsageDetail_20' ) start [2024-12-31 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145806', 'tblTempUsageDetail_20' ) end [2024-12-31 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145806', 'tblTempVendorCDR_20' ) start [2024-12-31 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145806', 'tblTempVendorCDR_20' ) end [2024-12-31 19:53:18] Production.INFO: ProcessCDR(1,14145806,1,1,2) [2024-12-31 19:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145806', 'tblTempUsageDetail_20' ) start [2024-12-31 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145806', 'tblTempUsageDetail_20' ) end [2024-12-31 19:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:53:21] Production.INFO: ==24903== Releasing lock... [2024-12-31 19:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:53:21] Production.INFO: 43.25 MB #Memory Used# [2024-12-31 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:54:05 [end_date_ymd] => 2024-12-31 19:54:05 [RateCDR] => 1 ) [2024-12-31 19:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:54:05' and `end` < '2024-12-31 19:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:54:18] Production.INFO: count ==2088 [2024-12-31 19:54:18] Production.ERROR: pbx CDR StartTime 2024-12-31 16:54:05 - End Time 2024-12-31 19:54:05 [2024-12-31 19:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145811', 'tblTempUsageDetail_20' ) start [2024-12-31 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145811', 'tblTempUsageDetail_20' ) end [2024-12-31 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145811', 'tblTempVendorCDR_20' ) start [2024-12-31 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145811', 'tblTempVendorCDR_20' ) end [2024-12-31 19:54:18] Production.INFO: ProcessCDR(1,14145811,1,1,2) [2024-12-31 19:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145811', 'tblTempUsageDetail_20' ) start [2024-12-31 19:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145811', 'tblTempUsageDetail_20' ) end [2024-12-31 19:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:54:21] Production.INFO: ==24997== Releasing lock... [2024-12-31 19:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:54:21] Production.INFO: 43.25 MB #Memory Used# [2024-12-31 19:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:55:04 [end_date_ymd] => 2024-12-31 19:55:04 [RateCDR] => 1 ) [2024-12-31 19:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:55:04' and `end` < '2024-12-31 19:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:55:17] Production.INFO: count ==2086 [2024-12-31 19:55:18] Production.ERROR: pbx CDR StartTime 2024-12-31 16:55:04 - End Time 2024-12-31 19:55:04 [2024-12-31 19:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145816', 'tblTempUsageDetail_20' ) start [2024-12-31 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145816', 'tblTempUsageDetail_20' ) end [2024-12-31 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145816', 'tblTempVendorCDR_20' ) start [2024-12-31 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145816', 'tblTempVendorCDR_20' ) end [2024-12-31 19:55:18] Production.INFO: ProcessCDR(1,14145816,1,1,2) [2024-12-31 19:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145816', 'tblTempUsageDetail_20' ) start [2024-12-31 19:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145816', 'tblTempUsageDetail_20' ) end [2024-12-31 19:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:55:21] Production.INFO: ==25095== Releasing lock... [2024-12-31 19:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:55:21] Production.INFO: 43.25 MB #Memory Used# [2024-12-31 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:56:05 [end_date_ymd] => 2024-12-31 19:56:05 [RateCDR] => 1 ) [2024-12-31 19:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:56:05' and `end` < '2024-12-31 19:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:56:20] Production.INFO: count ==2089 [2024-12-31 19:56:20] Production.ERROR: pbx CDR StartTime 2024-12-31 16:56:05 - End Time 2024-12-31 19:56:05 [2024-12-31 19:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145821', 'tblTempUsageDetail_20' ) start [2024-12-31 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145821', 'tblTempUsageDetail_20' ) end [2024-12-31 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145821', 'tblTempVendorCDR_20' ) start [2024-12-31 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145821', 'tblTempVendorCDR_20' ) end [2024-12-31 19:56:20] Production.INFO: ProcessCDR(1,14145821,1,1,2) [2024-12-31 19:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145821', 'tblTempUsageDetail_20' ) start [2024-12-31 19:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145821', 'tblTempUsageDetail_20' ) end [2024-12-31 19:56:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:56:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:56:24] Production.INFO: ==25192== Releasing lock... [2024-12-31 19:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:56:24] Production.INFO: 43.25 MB #Memory Used# [2024-12-31 19:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:57:04 [end_date_ymd] => 2024-12-31 19:57:04 [RateCDR] => 1 ) [2024-12-31 19:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:57:04' and `end` < '2024-12-31 19:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:57:18] Production.INFO: count ==2089 [2024-12-31 19:57:18] Production.ERROR: pbx CDR StartTime 2024-12-31 16:57:04 - End Time 2024-12-31 19:57:04 [2024-12-31 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145826', 'tblTempUsageDetail_20' ) start [2024-12-31 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145826', 'tblTempUsageDetail_20' ) end [2024-12-31 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145826', 'tblTempVendorCDR_20' ) start [2024-12-31 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145826', 'tblTempVendorCDR_20' ) end [2024-12-31 19:57:18] Production.INFO: ProcessCDR(1,14145826,1,1,2) [2024-12-31 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145826', 'tblTempUsageDetail_20' ) start [2024-12-31 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145826', 'tblTempUsageDetail_20' ) end [2024-12-31 19:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:57:21] Production.INFO: ==25328== Releasing lock... [2024-12-31 19:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:57:21] Production.INFO: 43.25 MB #Memory Used# [2024-12-31 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:58:05 [end_date_ymd] => 2024-12-31 19:58:05 [RateCDR] => 1 ) [2024-12-31 19:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:58:05' and `end` < '2024-12-31 19:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:58:17] Production.INFO: count ==2073 [2024-12-31 19:58:18] Production.ERROR: pbx CDR StartTime 2024-12-31 16:58:05 - End Time 2024-12-31 19:58:05 [2024-12-31 19:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145831', 'tblTempUsageDetail_20' ) start [2024-12-31 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145831', 'tblTempUsageDetail_20' ) end [2024-12-31 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145831', 'tblTempVendorCDR_20' ) start [2024-12-31 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145831', 'tblTempVendorCDR_20' ) end [2024-12-31 19:58:18] Production.INFO: ProcessCDR(1,14145831,1,1,2) [2024-12-31 19:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145831', 'tblTempUsageDetail_20' ) start [2024-12-31 19:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145831', 'tblTempUsageDetail_20' ) end [2024-12-31 19:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:58:21] Production.INFO: ==25428== Releasing lock... [2024-12-31 19:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:58:21] Production.INFO: 43.25 MB #Memory Used# [2024-12-31 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 16:59:05 [end_date_ymd] => 2024-12-31 19:59:05 [RateCDR] => 1 ) [2024-12-31 19:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 16:59:05' and `end` < '2024-12-31 19:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 19:59:18] Production.INFO: count ==2065 [2024-12-31 19:59:18] Production.ERROR: pbx CDR StartTime 2024-12-31 16:59:05 - End Time 2024-12-31 19:59:05 [2024-12-31 19:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145836', 'tblTempUsageDetail_20' ) start [2024-12-31 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145836', 'tblTempUsageDetail_20' ) end [2024-12-31 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145836', 'tblTempVendorCDR_20' ) start [2024-12-31 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145836', 'tblTempVendorCDR_20' ) end [2024-12-31 19:59:18] Production.INFO: ProcessCDR(1,14145836,1,1,2) [2024-12-31 19:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 19:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 19:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145836', 'tblTempUsageDetail_20' ) start [2024-12-31 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145836', 'tblTempUsageDetail_20' ) end [2024-12-31 19:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 19:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 19:59:22] Production.INFO: ==25526== Releasing lock... [2024-12-31 19:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 19:59:22] Production.INFO: 43 MB #Memory Used# [2024-12-31 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:00:06 [end_date_ymd] => 2024-12-31 20:00:06 [RateCDR] => 1 ) [2024-12-31 20:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:00:06' and `end` < '2024-12-31 20:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:00:19] Production.INFO: count ==2057 [2024-12-31 20:00:19] Production.ERROR: pbx CDR StartTime 2024-12-31 17:00:06 - End Time 2024-12-31 20:00:06 [2024-12-31 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145842', 'tblTempUsageDetail_20' ) start [2024-12-31 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145842', 'tblTempUsageDetail_20' ) end [2024-12-31 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145842', 'tblTempVendorCDR_20' ) start [2024-12-31 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145842', 'tblTempVendorCDR_20' ) end [2024-12-31 20:00:19] Production.INFO: ProcessCDR(1,14145842,1,1,2) [2024-12-31 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145842', 'tblTempUsageDetail_20' ) start [2024-12-31 20:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145842', 'tblTempUsageDetail_20' ) end [2024-12-31 20:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:00:22] Production.INFO: ==25625== Releasing lock... [2024-12-31 20:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:00:22] Production.INFO: 43 MB #Memory Used# [2024-12-31 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:01:05 [end_date_ymd] => 2024-12-31 20:01:05 [RateCDR] => 1 ) [2024-12-31 20:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:01:05' and `end` < '2024-12-31 20:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:01:18] Production.INFO: count ==2012 [2024-12-31 20:01:18] Production.ERROR: pbx CDR StartTime 2024-12-31 17:01:05 - End Time 2024-12-31 20:01:05 [2024-12-31 20:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145847', 'tblTempUsageDetail_20' ) start [2024-12-31 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145847', 'tblTempUsageDetail_20' ) end [2024-12-31 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145847', 'tblTempVendorCDR_20' ) start [2024-12-31 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145847', 'tblTempVendorCDR_20' ) end [2024-12-31 20:01:18] Production.INFO: ProcessCDR(1,14145847,1,1,2) [2024-12-31 20:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145847', 'tblTempUsageDetail_20' ) start [2024-12-31 20:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145847', 'tblTempUsageDetail_20' ) end [2024-12-31 20:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:01:21] Production.INFO: ==25774== Releasing lock... [2024-12-31 20:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:01:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-31 20:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:02:04 [end_date_ymd] => 2024-12-31 20:02:04 [RateCDR] => 1 ) [2024-12-31 20:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:02:04' and `end` < '2024-12-31 20:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:02:19] Production.INFO: count ==2010 [2024-12-31 20:02:19] Production.ERROR: pbx CDR StartTime 2024-12-31 17:02:04 - End Time 2024-12-31 20:02:04 [2024-12-31 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145852', 'tblTempUsageDetail_20' ) start [2024-12-31 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145852', 'tblTempUsageDetail_20' ) end [2024-12-31 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145852', 'tblTempVendorCDR_20' ) start [2024-12-31 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145852', 'tblTempVendorCDR_20' ) end [2024-12-31 20:02:19] Production.INFO: ProcessCDR(1,14145852,1,1,2) [2024-12-31 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145852', 'tblTempUsageDetail_20' ) start [2024-12-31 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145852', 'tblTempUsageDetail_20' ) end [2024-12-31 20:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:02:22] Production.INFO: ==25869== Releasing lock... [2024-12-31 20:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:02:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-31 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:03:05 [end_date_ymd] => 2024-12-31 20:03:05 [RateCDR] => 1 ) [2024-12-31 20:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:03:05' and `end` < '2024-12-31 20:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:03:18] Production.INFO: count ==2009 [2024-12-31 20:03:19] Production.ERROR: pbx CDR StartTime 2024-12-31 17:03:05 - End Time 2024-12-31 20:03:05 [2024-12-31 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145857', 'tblTempUsageDetail_20' ) start [2024-12-31 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145857', 'tblTempUsageDetail_20' ) end [2024-12-31 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145857', 'tblTempVendorCDR_20' ) start [2024-12-31 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145857', 'tblTempVendorCDR_20' ) end [2024-12-31 20:03:19] Production.INFO: ProcessCDR(1,14145857,1,1,2) [2024-12-31 20:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145857', 'tblTempUsageDetail_20' ) start [2024-12-31 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145857', 'tblTempUsageDetail_20' ) end [2024-12-31 20:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:03:22] Production.INFO: ==25968== Releasing lock... [2024-12-31 20:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:03:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-31 20:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:04:04 [end_date_ymd] => 2024-12-31 20:04:04 [RateCDR] => 1 ) [2024-12-31 20:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:04:04' and `end` < '2024-12-31 20:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:04:17] Production.INFO: count ==2010 [2024-12-31 20:04:18] Production.ERROR: pbx CDR StartTime 2024-12-31 17:04:04 - End Time 2024-12-31 20:04:04 [2024-12-31 20:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145862', 'tblTempUsageDetail_20' ) start [2024-12-31 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145862', 'tblTempUsageDetail_20' ) end [2024-12-31 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145862', 'tblTempVendorCDR_20' ) start [2024-12-31 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145862', 'tblTempVendorCDR_20' ) end [2024-12-31 20:04:18] Production.INFO: ProcessCDR(1,14145862,1,1,2) [2024-12-31 20:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145862', 'tblTempUsageDetail_20' ) start [2024-12-31 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145862', 'tblTempUsageDetail_20' ) end [2024-12-31 20:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:04:22] Production.INFO: ==26068== Releasing lock... [2024-12-31 20:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:04:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-31 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:05:05 [end_date_ymd] => 2024-12-31 20:05:05 [RateCDR] => 1 ) [2024-12-31 20:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:05:05' and `end` < '2024-12-31 20:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:05:18] Production.INFO: count ==2009 [2024-12-31 20:05:18] Production.ERROR: pbx CDR StartTime 2024-12-31 17:05:05 - End Time 2024-12-31 20:05:05 [2024-12-31 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145867', 'tblTempUsageDetail_20' ) start [2024-12-31 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145867', 'tblTempUsageDetail_20' ) end [2024-12-31 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145867', 'tblTempVendorCDR_20' ) start [2024-12-31 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145867', 'tblTempVendorCDR_20' ) end [2024-12-31 20:05:18] Production.INFO: ProcessCDR(1,14145867,1,1,2) [2024-12-31 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145867', 'tblTempUsageDetail_20' ) start [2024-12-31 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145867', 'tblTempUsageDetail_20' ) end [2024-12-31 20:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:05:21] Production.INFO: ==26162== Releasing lock... [2024-12-31 20:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:05:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-31 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:06:05 [end_date_ymd] => 2024-12-31 20:06:05 [RateCDR] => 1 ) [2024-12-31 20:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:06:05' and `end` < '2024-12-31 20:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:06:17] Production.INFO: count ==2012 [2024-12-31 20:06:18] Production.ERROR: pbx CDR StartTime 2024-12-31 17:06:05 - End Time 2024-12-31 20:06:05 [2024-12-31 20:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145872', 'tblTempUsageDetail_20' ) start [2024-12-31 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145872', 'tblTempUsageDetail_20' ) end [2024-12-31 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145872', 'tblTempVendorCDR_20' ) start [2024-12-31 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145872', 'tblTempVendorCDR_20' ) end [2024-12-31 20:06:18] Production.INFO: ProcessCDR(1,14145872,1,1,2) [2024-12-31 20:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145872', 'tblTempUsageDetail_20' ) start [2024-12-31 20:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145872', 'tblTempUsageDetail_20' ) end [2024-12-31 20:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:06:21] Production.INFO: ==26251== Releasing lock... [2024-12-31 20:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:06:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-31 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:07:05 [end_date_ymd] => 2024-12-31 20:07:05 [RateCDR] => 1 ) [2024-12-31 20:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:07:05' and `end` < '2024-12-31 20:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:07:18] Production.INFO: count ==2010 [2024-12-31 20:07:19] Production.ERROR: pbx CDR StartTime 2024-12-31 17:07:05 - End Time 2024-12-31 20:07:05 [2024-12-31 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145877', 'tblTempUsageDetail_20' ) start [2024-12-31 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145877', 'tblTempUsageDetail_20' ) end [2024-12-31 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145877', 'tblTempVendorCDR_20' ) start [2024-12-31 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145877', 'tblTempVendorCDR_20' ) end [2024-12-31 20:07:19] Production.INFO: ProcessCDR(1,14145877,1,1,2) [2024-12-31 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145877', 'tblTempUsageDetail_20' ) start [2024-12-31 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145877', 'tblTempUsageDetail_20' ) end [2024-12-31 20:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:07:22] Production.INFO: ==26339== Releasing lock... [2024-12-31 20:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:07:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-31 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:08:05 [end_date_ymd] => 2024-12-31 20:08:05 [RateCDR] => 1 ) [2024-12-31 20:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:08:05' and `end` < '2024-12-31 20:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:08:18] Production.INFO: count ==2009 [2024-12-31 20:08:18] Production.ERROR: pbx CDR StartTime 2024-12-31 17:08:05 - End Time 2024-12-31 20:08:05 [2024-12-31 20:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145882', 'tblTempUsageDetail_20' ) start [2024-12-31 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145882', 'tblTempUsageDetail_20' ) end [2024-12-31 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145882', 'tblTempVendorCDR_20' ) start [2024-12-31 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145882', 'tblTempVendorCDR_20' ) end [2024-12-31 20:08:18] Production.INFO: ProcessCDR(1,14145882,1,1,2) [2024-12-31 20:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145882', 'tblTempUsageDetail_20' ) start [2024-12-31 20:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145882', 'tblTempUsageDetail_20' ) end [2024-12-31 20:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:08:21] Production.INFO: ==26428== Releasing lock... [2024-12-31 20:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:08:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-31 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:09:05 [end_date_ymd] => 2024-12-31 20:09:05 [RateCDR] => 1 ) [2024-12-31 20:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:09:05' and `end` < '2024-12-31 20:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:09:18] Production.INFO: count ==2008 [2024-12-31 20:09:19] Production.ERROR: pbx CDR StartTime 2024-12-31 17:09:05 - End Time 2024-12-31 20:09:05 [2024-12-31 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145887', 'tblTempUsageDetail_20' ) start [2024-12-31 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145887', 'tblTempUsageDetail_20' ) end [2024-12-31 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145887', 'tblTempVendorCDR_20' ) start [2024-12-31 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145887', 'tblTempVendorCDR_20' ) end [2024-12-31 20:09:19] Production.INFO: ProcessCDR(1,14145887,1,1,2) [2024-12-31 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145887', 'tblTempUsageDetail_20' ) start [2024-12-31 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145887', 'tblTempUsageDetail_20' ) end [2024-12-31 20:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:09:22] Production.INFO: ==26513== Releasing lock... [2024-12-31 20:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:09:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-31 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:10:05 [end_date_ymd] => 2024-12-31 20:10:05 [RateCDR] => 1 ) [2024-12-31 20:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:10:05' and `end` < '2024-12-31 20:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:10:18] Production.INFO: count ==2005 [2024-12-31 20:10:19] Production.ERROR: pbx CDR StartTime 2024-12-31 17:10:05 - End Time 2024-12-31 20:10:05 [2024-12-31 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145893', 'tblTempUsageDetail_20' ) start [2024-12-31 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145893', 'tblTempUsageDetail_20' ) end [2024-12-31 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145893', 'tblTempVendorCDR_20' ) start [2024-12-31 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145893', 'tblTempVendorCDR_20' ) end [2024-12-31 20:10:19] Production.INFO: ProcessCDR(1,14145893,1,1,2) [2024-12-31 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145893', 'tblTempUsageDetail_20' ) start [2024-12-31 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145893', 'tblTempUsageDetail_20' ) end [2024-12-31 20:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:10:22] Production.INFO: ==26599== Releasing lock... [2024-12-31 20:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:10:22] Production.INFO: 42.5 MB #Memory Used# [2024-12-31 20:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:11:04 [end_date_ymd] => 2024-12-31 20:11:04 [RateCDR] => 1 ) [2024-12-31 20:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:11:04' and `end` < '2024-12-31 20:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:11:18] Production.INFO: count ==1973 [2024-12-31 20:11:18] Production.ERROR: pbx CDR StartTime 2024-12-31 17:11:04 - End Time 2024-12-31 20:11:04 [2024-12-31 20:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145898', 'tblTempUsageDetail_20' ) start [2024-12-31 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145898', 'tblTempUsageDetail_20' ) end [2024-12-31 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145898', 'tblTempVendorCDR_20' ) start [2024-12-31 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145898', 'tblTempVendorCDR_20' ) end [2024-12-31 20:11:18] Production.INFO: ProcessCDR(1,14145898,1,1,2) [2024-12-31 20:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145898', 'tblTempUsageDetail_20' ) start [2024-12-31 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145898', 'tblTempUsageDetail_20' ) end [2024-12-31 20:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:11:22] Production.INFO: ==26672== Releasing lock... [2024-12-31 20:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:11:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-31 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:12:05 [end_date_ymd] => 2024-12-31 20:12:05 [RateCDR] => 1 ) [2024-12-31 20:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:12:05' and `end` < '2024-12-31 20:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:12:18] Production.INFO: count ==1974 [2024-12-31 20:12:18] Production.ERROR: pbx CDR StartTime 2024-12-31 17:12:05 - End Time 2024-12-31 20:12:05 [2024-12-31 20:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145903', 'tblTempUsageDetail_20' ) start [2024-12-31 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145903', 'tblTempUsageDetail_20' ) end [2024-12-31 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145903', 'tblTempVendorCDR_20' ) start [2024-12-31 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145903', 'tblTempVendorCDR_20' ) end [2024-12-31 20:12:18] Production.INFO: ProcessCDR(1,14145903,1,1,2) [2024-12-31 20:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145903', 'tblTempUsageDetail_20' ) start [2024-12-31 20:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145903', 'tblTempUsageDetail_20' ) end [2024-12-31 20:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:12:21] Production.INFO: ==26788== Releasing lock... [2024-12-31 20:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:12:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-31 20:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:13:04 [end_date_ymd] => 2024-12-31 20:13:04 [RateCDR] => 1 ) [2024-12-31 20:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:13:04' and `end` < '2024-12-31 20:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:13:17] Production.INFO: count ==1975 [2024-12-31 20:13:18] Production.ERROR: pbx CDR StartTime 2024-12-31 17:13:04 - End Time 2024-12-31 20:13:04 [2024-12-31 20:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145908', 'tblTempUsageDetail_20' ) start [2024-12-31 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145908', 'tblTempUsageDetail_20' ) end [2024-12-31 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145908', 'tblTempVendorCDR_20' ) start [2024-12-31 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145908', 'tblTempVendorCDR_20' ) end [2024-12-31 20:13:18] Production.INFO: ProcessCDR(1,14145908,1,1,2) [2024-12-31 20:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145908', 'tblTempUsageDetail_20' ) start [2024-12-31 20:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145908', 'tblTempUsageDetail_20' ) end [2024-12-31 20:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:13:21] Production.INFO: ==26865== Releasing lock... [2024-12-31 20:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:13:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-31 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:14:05 [end_date_ymd] => 2024-12-31 20:14:05 [RateCDR] => 1 ) [2024-12-31 20:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:14:05' and `end` < '2024-12-31 20:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:14:20] Production.INFO: count ==1973 [2024-12-31 20:14:20] Production.ERROR: pbx CDR StartTime 2024-12-31 17:14:05 - End Time 2024-12-31 20:14:05 [2024-12-31 20:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145913', 'tblTempUsageDetail_20' ) start [2024-12-31 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145913', 'tblTempUsageDetail_20' ) end [2024-12-31 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145913', 'tblTempVendorCDR_20' ) start [2024-12-31 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145913', 'tblTempVendorCDR_20' ) end [2024-12-31 20:14:20] Production.INFO: ProcessCDR(1,14145913,1,1,2) [2024-12-31 20:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145913', 'tblTempUsageDetail_20' ) start [2024-12-31 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145913', 'tblTempUsageDetail_20' ) end [2024-12-31 20:14:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:14:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:14:23] Production.INFO: ==26940== Releasing lock... [2024-12-31 20:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:14:23] Production.INFO: 42.25 MB #Memory Used# [2024-12-31 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:15:05 [end_date_ymd] => 2024-12-31 20:15:05 [RateCDR] => 1 ) [2024-12-31 20:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:15:05' and `end` < '2024-12-31 20:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:15:18] Production.INFO: count ==1969 [2024-12-31 20:15:18] Production.ERROR: pbx CDR StartTime 2024-12-31 17:15:05 - End Time 2024-12-31 20:15:05 [2024-12-31 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145918', 'tblTempUsageDetail_20' ) start [2024-12-31 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145918', 'tblTempUsageDetail_20' ) end [2024-12-31 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145918', 'tblTempVendorCDR_20' ) start [2024-12-31 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145918', 'tblTempVendorCDR_20' ) end [2024-12-31 20:15:18] Production.INFO: ProcessCDR(1,14145918,1,1,2) [2024-12-31 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145918', 'tblTempUsageDetail_20' ) start [2024-12-31 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145918', 'tblTempUsageDetail_20' ) end [2024-12-31 20:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:15:21] Production.INFO: ==27015== Releasing lock... [2024-12-31 20:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:15:21] Production.INFO: 42.25 MB #Memory Used# [2024-12-31 20:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:16:04 [end_date_ymd] => 2024-12-31 20:16:04 [RateCDR] => 1 ) [2024-12-31 20:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:16:04' and `end` < '2024-12-31 20:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:16:17] Production.INFO: count ==1965 [2024-12-31 20:16:17] Production.ERROR: pbx CDR StartTime 2024-12-31 17:16:04 - End Time 2024-12-31 20:16:04 [2024-12-31 20:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145923', 'tblTempUsageDetail_20' ) start [2024-12-31 20:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145923', 'tblTempUsageDetail_20' ) end [2024-12-31 20:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145923', 'tblTempVendorCDR_20' ) start [2024-12-31 20:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145923', 'tblTempVendorCDR_20' ) end [2024-12-31 20:16:17] Production.INFO: ProcessCDR(1,14145923,1,1,2) [2024-12-31 20:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145923', 'tblTempUsageDetail_20' ) start [2024-12-31 20:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145923', 'tblTempUsageDetail_20' ) end [2024-12-31 20:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:16:22] Production.INFO: ==27087== Releasing lock... [2024-12-31 20:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:16:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-31 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:17:05 [end_date_ymd] => 2024-12-31 20:17:05 [RateCDR] => 1 ) [2024-12-31 20:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:17:05' and `end` < '2024-12-31 20:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:17:19] Production.INFO: count ==1968 [2024-12-31 20:17:19] Production.ERROR: pbx CDR StartTime 2024-12-31 17:17:05 - End Time 2024-12-31 20:17:05 [2024-12-31 20:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145928', 'tblTempUsageDetail_20' ) start [2024-12-31 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145928', 'tblTempUsageDetail_20' ) end [2024-12-31 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145928', 'tblTempVendorCDR_20' ) start [2024-12-31 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145928', 'tblTempVendorCDR_20' ) end [2024-12-31 20:17:19] Production.INFO: ProcessCDR(1,14145928,1,1,2) [2024-12-31 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145928', 'tblTempUsageDetail_20' ) start [2024-12-31 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145928', 'tblTempUsageDetail_20' ) end [2024-12-31 20:17:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:17:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:17:23] Production.INFO: ==27172== Releasing lock... [2024-12-31 20:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:17:23] Production.INFO: 42.25 MB #Memory Used# [2024-12-31 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:18:05 [end_date_ymd] => 2024-12-31 20:18:05 [RateCDR] => 1 ) [2024-12-31 20:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:18:05' and `end` < '2024-12-31 20:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:18:18] Production.INFO: count ==1965 [2024-12-31 20:18:18] Production.ERROR: pbx CDR StartTime 2024-12-31 17:18:05 - End Time 2024-12-31 20:18:05 [2024-12-31 20:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145933', 'tblTempUsageDetail_20' ) start [2024-12-31 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145933', 'tblTempUsageDetail_20' ) end [2024-12-31 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145933', 'tblTempVendorCDR_20' ) start [2024-12-31 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145933', 'tblTempVendorCDR_20' ) end [2024-12-31 20:18:19] Production.INFO: ProcessCDR(1,14145933,1,1,2) [2024-12-31 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145933', 'tblTempUsageDetail_20' ) start [2024-12-31 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145933', 'tblTempUsageDetail_20' ) end [2024-12-31 20:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:18:22] Production.INFO: ==27244== Releasing lock... [2024-12-31 20:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:18:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-31 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:19:05 [end_date_ymd] => 2024-12-31 20:19:05 [RateCDR] => 1 ) [2024-12-31 20:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:19:05' and `end` < '2024-12-31 20:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:19:18] Production.INFO: count ==1961 [2024-12-31 20:19:18] Production.ERROR: pbx CDR StartTime 2024-12-31 17:19:05 - End Time 2024-12-31 20:19:05 [2024-12-31 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145938', 'tblTempUsageDetail_20' ) start [2024-12-31 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145938', 'tblTempUsageDetail_20' ) end [2024-12-31 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145938', 'tblTempVendorCDR_20' ) start [2024-12-31 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145938', 'tblTempVendorCDR_20' ) end [2024-12-31 20:19:18] Production.INFO: ProcessCDR(1,14145938,1,1,2) [2024-12-31 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145938', 'tblTempUsageDetail_20' ) start [2024-12-31 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145938', 'tblTempUsageDetail_20' ) end [2024-12-31 20:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:19:21] Production.INFO: ==27322== Releasing lock... [2024-12-31 20:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:19:21] Production.INFO: 42.25 MB #Memory Used# [2024-12-31 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:20:06 [end_date_ymd] => 2024-12-31 20:20:06 [RateCDR] => 1 ) [2024-12-31 20:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:20:06' and `end` < '2024-12-31 20:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:20:20] Production.INFO: count ==1954 [2024-12-31 20:20:20] Production.ERROR: pbx CDR StartTime 2024-12-31 17:20:06 - End Time 2024-12-31 20:20:06 [2024-12-31 20:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145944', 'tblTempUsageDetail_20' ) start [2024-12-31 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145944', 'tblTempUsageDetail_20' ) end [2024-12-31 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145944', 'tblTempVendorCDR_20' ) start [2024-12-31 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145944', 'tblTempVendorCDR_20' ) end [2024-12-31 20:20:20] Production.INFO: ProcessCDR(1,14145944,1,1,2) [2024-12-31 20:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145944', 'tblTempUsageDetail_20' ) start [2024-12-31 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145944', 'tblTempUsageDetail_20' ) end [2024-12-31 20:20:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:20:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:20:23] Production.INFO: ==27401== Releasing lock... [2024-12-31 20:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:20:23] Production.INFO: 42.25 MB #Memory Used# [2024-12-31 20:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:21:04 [end_date_ymd] => 2024-12-31 20:21:04 [RateCDR] => 1 ) [2024-12-31 20:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:21:04' and `end` < '2024-12-31 20:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:21:17] Production.INFO: count ==1951 [2024-12-31 20:21:18] Production.ERROR: pbx CDR StartTime 2024-12-31 17:21:04 - End Time 2024-12-31 20:21:04 [2024-12-31 20:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145949', 'tblTempUsageDetail_20' ) start [2024-12-31 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145949', 'tblTempUsageDetail_20' ) end [2024-12-31 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145949', 'tblTempVendorCDR_20' ) start [2024-12-31 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145949', 'tblTempVendorCDR_20' ) end [2024-12-31 20:21:18] Production.INFO: ProcessCDR(1,14145949,1,1,2) [2024-12-31 20:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145949', 'tblTempUsageDetail_20' ) start [2024-12-31 20:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145949', 'tblTempUsageDetail_20' ) end [2024-12-31 20:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:21:21] Production.INFO: ==27482== Releasing lock... [2024-12-31 20:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:21:21] Production.INFO: 42.25 MB #Memory Used# [2024-12-31 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:22:05 [end_date_ymd] => 2024-12-31 20:22:05 [RateCDR] => 1 ) [2024-12-31 20:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:22:05' and `end` < '2024-12-31 20:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:22:19] Production.INFO: count ==1948 [2024-12-31 20:22:19] Production.ERROR: pbx CDR StartTime 2024-12-31 17:22:05 - End Time 2024-12-31 20:22:05 [2024-12-31 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145954', 'tblTempUsageDetail_20' ) start [2024-12-31 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145954', 'tblTempUsageDetail_20' ) end [2024-12-31 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145954', 'tblTempVendorCDR_20' ) start [2024-12-31 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145954', 'tblTempVendorCDR_20' ) end [2024-12-31 20:22:19] Production.INFO: ProcessCDR(1,14145954,1,1,2) [2024-12-31 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145954', 'tblTempUsageDetail_20' ) start [2024-12-31 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145954', 'tblTempUsageDetail_20' ) end [2024-12-31 20:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:22:22] Production.INFO: ==27554== Releasing lock... [2024-12-31 20:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:22:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-31 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:23:05 [end_date_ymd] => 2024-12-31 20:23:05 [RateCDR] => 1 ) [2024-12-31 20:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:23:05' and `end` < '2024-12-31 20:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:23:19] Production.INFO: count ==1945 [2024-12-31 20:23:19] Production.ERROR: pbx CDR StartTime 2024-12-31 17:23:05 - End Time 2024-12-31 20:23:05 [2024-12-31 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145959', 'tblTempUsageDetail_20' ) start [2024-12-31 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145959', 'tblTempUsageDetail_20' ) end [2024-12-31 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145959', 'tblTempVendorCDR_20' ) start [2024-12-31 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145959', 'tblTempVendorCDR_20' ) end [2024-12-31 20:23:19] Production.INFO: ProcessCDR(1,14145959,1,1,2) [2024-12-31 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145959', 'tblTempUsageDetail_20' ) start [2024-12-31 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145959', 'tblTempUsageDetail_20' ) end [2024-12-31 20:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:23:22] Production.INFO: ==27647== Releasing lock... [2024-12-31 20:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:23:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-31 20:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:24:04 [end_date_ymd] => 2024-12-31 20:24:04 [RateCDR] => 1 ) [2024-12-31 20:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:24:04' and `end` < '2024-12-31 20:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:24:17] Production.INFO: count ==1938 [2024-12-31 20:24:18] Production.ERROR: pbx CDR StartTime 2024-12-31 17:24:04 - End Time 2024-12-31 20:24:04 [2024-12-31 20:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145964', 'tblTempUsageDetail_20' ) start [2024-12-31 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145964', 'tblTempUsageDetail_20' ) end [2024-12-31 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145964', 'tblTempVendorCDR_20' ) start [2024-12-31 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145964', 'tblTempVendorCDR_20' ) end [2024-12-31 20:24:18] Production.INFO: ProcessCDR(1,14145964,1,1,2) [2024-12-31 20:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145964', 'tblTempUsageDetail_20' ) start [2024-12-31 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145964', 'tblTempUsageDetail_20' ) end [2024-12-31 20:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:24:22] Production.INFO: ==27717== Releasing lock... [2024-12-31 20:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:24:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-31 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:25:05 [end_date_ymd] => 2024-12-31 20:25:05 [RateCDR] => 1 ) [2024-12-31 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:25:05' and `end` < '2024-12-31 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:25:20] Production.INFO: count ==1937 [2024-12-31 20:25:20] Production.ERROR: pbx CDR StartTime 2024-12-31 17:25:05 - End Time 2024-12-31 20:25:05 [2024-12-31 20:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145969', 'tblTempUsageDetail_20' ) start [2024-12-31 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145969', 'tblTempUsageDetail_20' ) end [2024-12-31 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145969', 'tblTempVendorCDR_20' ) start [2024-12-31 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145969', 'tblTempVendorCDR_20' ) end [2024-12-31 20:25:20] Production.INFO: ProcessCDR(1,14145969,1,1,2) [2024-12-31 20:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145969', 'tblTempUsageDetail_20' ) start [2024-12-31 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145969', 'tblTempUsageDetail_20' ) end [2024-12-31 20:25:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:25:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:25:23] Production.INFO: ==27788== Releasing lock... [2024-12-31 20:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:25:23] Production.INFO: 42 MB #Memory Used# [2024-12-31 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:26:05 [end_date_ymd] => 2024-12-31 20:26:05 [RateCDR] => 1 ) [2024-12-31 20:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:26:05' and `end` < '2024-12-31 20:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:26:18] Production.INFO: count ==1937 [2024-12-31 20:26:18] Production.ERROR: pbx CDR StartTime 2024-12-31 17:26:05 - End Time 2024-12-31 20:26:05 [2024-12-31 20:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145973', 'tblTempUsageDetail_20' ) start [2024-12-31 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145973', 'tblTempUsageDetail_20' ) end [2024-12-31 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145973', 'tblTempVendorCDR_20' ) start [2024-12-31 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145973', 'tblTempVendorCDR_20' ) end [2024-12-31 20:26:18] Production.INFO: ProcessCDR(1,14145973,1,1,2) [2024-12-31 20:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145973', 'tblTempUsageDetail_20' ) start [2024-12-31 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145973', 'tblTempUsageDetail_20' ) end [2024-12-31 20:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:26:21] Production.INFO: ==27860== Releasing lock... [2024-12-31 20:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:26:21] Production.INFO: 42.25 MB #Memory Used# [2024-12-31 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:27:05 [end_date_ymd] => 2024-12-31 20:27:05 [RateCDR] => 1 ) [2024-12-31 20:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:27:05' and `end` < '2024-12-31 20:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:27:17] Production.INFO: count ==1936 [2024-12-31 20:27:18] Production.ERROR: pbx CDR StartTime 2024-12-31 17:27:05 - End Time 2024-12-31 20:27:05 [2024-12-31 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145979', 'tblTempUsageDetail_20' ) start [2024-12-31 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145979', 'tblTempUsageDetail_20' ) end [2024-12-31 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145979', 'tblTempVendorCDR_20' ) start [2024-12-31 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145979', 'tblTempVendorCDR_20' ) end [2024-12-31 20:27:18] Production.INFO: ProcessCDR(1,14145979,1,1,2) [2024-12-31 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145979', 'tblTempUsageDetail_20' ) start [2024-12-31 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145979', 'tblTempUsageDetail_20' ) end [2024-12-31 20:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:27:21] Production.INFO: ==27931== Releasing lock... [2024-12-31 20:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:27:21] Production.INFO: 42 MB #Memory Used# [2024-12-31 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:28:05 [end_date_ymd] => 2024-12-31 20:28:05 [RateCDR] => 1 ) [2024-12-31 20:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:28:05' and `end` < '2024-12-31 20:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:28:18] Production.INFO: count ==1933 [2024-12-31 20:28:18] Production.ERROR: pbx CDR StartTime 2024-12-31 17:28:05 - End Time 2024-12-31 20:28:05 [2024-12-31 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145984', 'tblTempUsageDetail_20' ) start [2024-12-31 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145984', 'tblTempUsageDetail_20' ) end [2024-12-31 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145984', 'tblTempVendorCDR_20' ) start [2024-12-31 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145984', 'tblTempVendorCDR_20' ) end [2024-12-31 20:28:18] Production.INFO: ProcessCDR(1,14145984,1,1,2) [2024-12-31 20:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145984', 'tblTempUsageDetail_20' ) start [2024-12-31 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145984', 'tblTempUsageDetail_20' ) end [2024-12-31 20:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:28:21] Production.INFO: ==28042== Releasing lock... [2024-12-31 20:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:28:21] Production.INFO: 42 MB #Memory Used# [2024-12-31 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:29:05 [end_date_ymd] => 2024-12-31 20:29:05 [RateCDR] => 1 ) [2024-12-31 20:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:29:05' and `end` < '2024-12-31 20:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:29:17] Production.INFO: count ==1932 [2024-12-31 20:29:17] Production.ERROR: pbx CDR StartTime 2024-12-31 17:29:05 - End Time 2024-12-31 20:29:05 [2024-12-31 20:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145989', 'tblTempUsageDetail_20' ) start [2024-12-31 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145989', 'tblTempUsageDetail_20' ) end [2024-12-31 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145989', 'tblTempVendorCDR_20' ) start [2024-12-31 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145989', 'tblTempVendorCDR_20' ) end [2024-12-31 20:29:18] Production.INFO: ProcessCDR(1,14145989,1,1,2) [2024-12-31 20:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145989', 'tblTempUsageDetail_20' ) start [2024-12-31 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145989', 'tblTempUsageDetail_20' ) end [2024-12-31 20:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:29:21] Production.INFO: ==28114== Releasing lock... [2024-12-31 20:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:29:21] Production.INFO: 42 MB #Memory Used# [2024-12-31 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:30:06 [end_date_ymd] => 2024-12-31 20:30:06 [RateCDR] => 1 ) [2024-12-31 20:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:30:06' and `end` < '2024-12-31 20:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:30:19] Production.INFO: count ==1926 [2024-12-31 20:30:19] Production.ERROR: pbx CDR StartTime 2024-12-31 17:30:06 - End Time 2024-12-31 20:30:06 [2024-12-31 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145994', 'tblTempUsageDetail_20' ) start [2024-12-31 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14145994', 'tblTempUsageDetail_20' ) end [2024-12-31 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145994', 'tblTempVendorCDR_20' ) start [2024-12-31 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14145994', 'tblTempVendorCDR_20' ) end [2024-12-31 20:30:19] Production.INFO: ProcessCDR(1,14145994,1,1,2) [2024-12-31 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14145994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14145994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14145994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14145994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145994', 'tblTempUsageDetail_20' ) start [2024-12-31 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14145994', 'tblTempUsageDetail_20' ) end [2024-12-31 20:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:30:22] Production.INFO: ==28189== Releasing lock... [2024-12-31 20:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:30:22] Production.INFO: 42 MB #Memory Used# [2024-12-31 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:31:04 [end_date_ymd] => 2024-12-31 20:31:04 [RateCDR] => 1 ) [2024-12-31 20:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:31:04' and `end` < '2024-12-31 20:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:31:17] Production.INFO: count ==1890 [2024-12-31 20:31:18] Production.ERROR: pbx CDR StartTime 2024-12-31 17:31:04 - End Time 2024-12-31 20:31:04 [2024-12-31 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146000', 'tblTempUsageDetail_20' ) start [2024-12-31 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146000', 'tblTempUsageDetail_20' ) end [2024-12-31 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146000', 'tblTempVendorCDR_20' ) start [2024-12-31 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146000', 'tblTempVendorCDR_20' ) end [2024-12-31 20:31:18] Production.INFO: ProcessCDR(1,14146000,1,1,2) [2024-12-31 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146000', 'tblTempUsageDetail_20' ) start [2024-12-31 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146000', 'tblTempUsageDetail_20' ) end [2024-12-31 20:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:31:21] Production.INFO: ==28260== Releasing lock... [2024-12-31 20:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:31:21] Production.INFO: 41.75 MB #Memory Used# [2024-12-31 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:32:05 [end_date_ymd] => 2024-12-31 20:32:05 [RateCDR] => 1 ) [2024-12-31 20:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:32:05' and `end` < '2024-12-31 20:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:32:19] Production.INFO: count ==1885 [2024-12-31 20:32:20] Production.ERROR: pbx CDR StartTime 2024-12-31 17:32:05 - End Time 2024-12-31 20:32:05 [2024-12-31 20:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146005', 'tblTempUsageDetail_20' ) start [2024-12-31 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146005', 'tblTempUsageDetail_20' ) end [2024-12-31 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146005', 'tblTempVendorCDR_20' ) start [2024-12-31 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146005', 'tblTempVendorCDR_20' ) end [2024-12-31 20:32:20] Production.INFO: ProcessCDR(1,14146005,1,1,2) [2024-12-31 20:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146005', 'tblTempUsageDetail_20' ) start [2024-12-31 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146005', 'tblTempUsageDetail_20' ) end [2024-12-31 20:32:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:32:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:32:23] Production.INFO: ==28331== Releasing lock... [2024-12-31 20:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:32:23] Production.INFO: 41.75 MB #Memory Used# [2024-12-31 20:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:33:04 [end_date_ymd] => 2024-12-31 20:33:04 [RateCDR] => 1 ) [2024-12-31 20:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:33:04' and `end` < '2024-12-31 20:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:33:17] Production.INFO: count ==1883 [2024-12-31 20:33:18] Production.ERROR: pbx CDR StartTime 2024-12-31 17:33:04 - End Time 2024-12-31 20:33:04 [2024-12-31 20:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146010', 'tblTempUsageDetail_20' ) start [2024-12-31 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146010', 'tblTempUsageDetail_20' ) end [2024-12-31 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146010', 'tblTempVendorCDR_20' ) start [2024-12-31 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146010', 'tblTempVendorCDR_20' ) end [2024-12-31 20:33:18] Production.INFO: ProcessCDR(1,14146010,1,1,2) [2024-12-31 20:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146010', 'tblTempUsageDetail_20' ) start [2024-12-31 20:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146010', 'tblTempUsageDetail_20' ) end [2024-12-31 20:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:33:21] Production.INFO: ==28401== Releasing lock... [2024-12-31 20:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:33:21] Production.INFO: 41.75 MB #Memory Used# [2024-12-31 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:34:05 [end_date_ymd] => 2024-12-31 20:34:05 [RateCDR] => 1 ) [2024-12-31 20:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:34:05' and `end` < '2024-12-31 20:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:34:18] Production.INFO: count ==1877 [2024-12-31 20:34:19] Production.ERROR: pbx CDR StartTime 2024-12-31 17:34:05 - End Time 2024-12-31 20:34:05 [2024-12-31 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146015', 'tblTempUsageDetail_20' ) start [2024-12-31 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146015', 'tblTempUsageDetail_20' ) end [2024-12-31 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146015', 'tblTempVendorCDR_20' ) start [2024-12-31 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146015', 'tblTempVendorCDR_20' ) end [2024-12-31 20:34:19] Production.INFO: ProcessCDR(1,14146015,1,1,2) [2024-12-31 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146015', 'tblTempUsageDetail_20' ) start [2024-12-31 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146015', 'tblTempUsageDetail_20' ) end [2024-12-31 20:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:34:22] Production.INFO: ==28473== Releasing lock... [2024-12-31 20:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:34:22] Production.INFO: 41.75 MB #Memory Used# [2024-12-31 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:35:05 [end_date_ymd] => 2024-12-31 20:35:05 [RateCDR] => 1 ) [2024-12-31 20:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:35:05' and `end` < '2024-12-31 20:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:35:17] Production.INFO: count ==1882 [2024-12-31 20:35:18] Production.ERROR: pbx CDR StartTime 2024-12-31 17:35:05 - End Time 2024-12-31 20:35:05 [2024-12-31 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146020', 'tblTempUsageDetail_20' ) start [2024-12-31 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146020', 'tblTempUsageDetail_20' ) end [2024-12-31 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146020', 'tblTempVendorCDR_20' ) start [2024-12-31 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146020', 'tblTempVendorCDR_20' ) end [2024-12-31 20:35:18] Production.INFO: ProcessCDR(1,14146020,1,1,2) [2024-12-31 20:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146020', 'tblTempUsageDetail_20' ) start [2024-12-31 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146020', 'tblTempUsageDetail_20' ) end [2024-12-31 20:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:35:21] Production.INFO: ==28546== Releasing lock... [2024-12-31 20:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:35:21] Production.INFO: 42 MB #Memory Used# [2024-12-31 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:36:05 [end_date_ymd] => 2024-12-31 20:36:05 [RateCDR] => 1 ) [2024-12-31 20:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:36:05' and `end` < '2024-12-31 20:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:36:18] Production.INFO: count ==1882 [2024-12-31 20:36:18] Production.ERROR: pbx CDR StartTime 2024-12-31 17:36:05 - End Time 2024-12-31 20:36:05 [2024-12-31 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146025', 'tblTempUsageDetail_20' ) start [2024-12-31 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146025', 'tblTempUsageDetail_20' ) end [2024-12-31 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146025', 'tblTempVendorCDR_20' ) start [2024-12-31 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146025', 'tblTempVendorCDR_20' ) end [2024-12-31 20:36:18] Production.INFO: ProcessCDR(1,14146025,1,1,2) [2024-12-31 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146025', 'tblTempUsageDetail_20' ) start [2024-12-31 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146025', 'tblTempUsageDetail_20' ) end [2024-12-31 20:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:36:21] Production.INFO: ==28618== Releasing lock... [2024-12-31 20:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:36:21] Production.INFO: 42 MB #Memory Used# [2024-12-31 20:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:37:04 [end_date_ymd] => 2024-12-31 20:37:04 [RateCDR] => 1 ) [2024-12-31 20:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:37:04' and `end` < '2024-12-31 20:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:37:17] Production.INFO: count ==1882 [2024-12-31 20:37:17] Production.ERROR: pbx CDR StartTime 2024-12-31 17:37:04 - End Time 2024-12-31 20:37:04 [2024-12-31 20:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146030', 'tblTempUsageDetail_20' ) start [2024-12-31 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146030', 'tblTempUsageDetail_20' ) end [2024-12-31 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146030', 'tblTempVendorCDR_20' ) start [2024-12-31 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146030', 'tblTempVendorCDR_20' ) end [2024-12-31 20:37:18] Production.INFO: ProcessCDR(1,14146030,1,1,2) [2024-12-31 20:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146030', 'tblTempUsageDetail_20' ) start [2024-12-31 20:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146030', 'tblTempUsageDetail_20' ) end [2024-12-31 20:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:37:21] Production.INFO: ==28686== Releasing lock... [2024-12-31 20:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:37:21] Production.INFO: 42 MB #Memory Used# [2024-12-31 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:38:05 [end_date_ymd] => 2024-12-31 20:38:05 [RateCDR] => 1 ) [2024-12-31 20:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:38:05' and `end` < '2024-12-31 20:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:38:17] Production.INFO: count ==1880 [2024-12-31 20:38:18] Production.ERROR: pbx CDR StartTime 2024-12-31 17:38:05 - End Time 2024-12-31 20:38:05 [2024-12-31 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146035', 'tblTempUsageDetail_20' ) start [2024-12-31 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146035', 'tblTempUsageDetail_20' ) end [2024-12-31 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146035', 'tblTempVendorCDR_20' ) start [2024-12-31 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146035', 'tblTempVendorCDR_20' ) end [2024-12-31 20:38:18] Production.INFO: ProcessCDR(1,14146035,1,1,2) [2024-12-31 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146035', 'tblTempUsageDetail_20' ) start [2024-12-31 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146035', 'tblTempUsageDetail_20' ) end [2024-12-31 20:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:38:21] Production.INFO: ==28760== Releasing lock... [2024-12-31 20:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:38:21] Production.INFO: 41.75 MB #Memory Used# [2024-12-31 20:39:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:39:06 [end_date_ymd] => 2024-12-31 20:39:06 [RateCDR] => 1 ) [2024-12-31 20:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:39:06' and `end` < '2024-12-31 20:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:39:18] Production.INFO: count ==1884 [2024-12-31 20:39:19] Production.ERROR: pbx CDR StartTime 2024-12-31 17:39:06 - End Time 2024-12-31 20:39:06 [2024-12-31 20:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146040', 'tblTempUsageDetail_20' ) start [2024-12-31 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146040', 'tblTempUsageDetail_20' ) end [2024-12-31 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146040', 'tblTempVendorCDR_20' ) start [2024-12-31 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146040', 'tblTempVendorCDR_20' ) end [2024-12-31 20:39:19] Production.INFO: ProcessCDR(1,14146040,1,1,2) [2024-12-31 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146040', 'tblTempUsageDetail_20' ) start [2024-12-31 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146040', 'tblTempUsageDetail_20' ) end [2024-12-31 20:39:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:39:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:39:23] Production.INFO: ==28830== Releasing lock... [2024-12-31 20:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:39:23] Production.INFO: 41.75 MB #Memory Used# [2024-12-31 20:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:40:05 [end_date_ymd] => 2024-12-31 20:40:05 [RateCDR] => 1 ) [2024-12-31 20:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:40:05' and `end` < '2024-12-31 20:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:40:18] Production.INFO: count ==1882 [2024-12-31 20:40:19] Production.ERROR: pbx CDR StartTime 2024-12-31 17:40:05 - End Time 2024-12-31 20:40:05 [2024-12-31 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146046', 'tblTempUsageDetail_20' ) start [2024-12-31 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146046', 'tblTempUsageDetail_20' ) end [2024-12-31 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146046', 'tblTempVendorCDR_20' ) start [2024-12-31 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146046', 'tblTempVendorCDR_20' ) end [2024-12-31 20:40:19] Production.INFO: ProcessCDR(1,14146046,1,1,2) [2024-12-31 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146046', 'tblTempUsageDetail_20' ) start [2024-12-31 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146046', 'tblTempUsageDetail_20' ) end [2024-12-31 20:40:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:40:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:40:23] Production.INFO: ==28903== Releasing lock... [2024-12-31 20:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:40:23] Production.INFO: 42 MB #Memory Used# [2024-12-31 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:41:05 [end_date_ymd] => 2024-12-31 20:41:05 [RateCDR] => 1 ) [2024-12-31 20:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:41:05' and `end` < '2024-12-31 20:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:41:18] Production.INFO: count ==1873 [2024-12-31 20:41:18] Production.ERROR: pbx CDR StartTime 2024-12-31 17:41:05 - End Time 2024-12-31 20:41:05 [2024-12-31 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146051', 'tblTempUsageDetail_20' ) start [2024-12-31 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146051', 'tblTempUsageDetail_20' ) end [2024-12-31 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146051', 'tblTempVendorCDR_20' ) start [2024-12-31 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146051', 'tblTempVendorCDR_20' ) end [2024-12-31 20:41:18] Production.INFO: ProcessCDR(1,14146051,1,1,2) [2024-12-31 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146051', 'tblTempUsageDetail_20' ) start [2024-12-31 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146051', 'tblTempUsageDetail_20' ) end [2024-12-31 20:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:41:23] Production.INFO: ==28976== Releasing lock... [2024-12-31 20:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:41:23] Production.INFO: 41.75 MB #Memory Used# [2024-12-31 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:42:05 [end_date_ymd] => 2024-12-31 20:42:05 [RateCDR] => 1 ) [2024-12-31 20:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:42:05' and `end` < '2024-12-31 20:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:42:18] Production.INFO: count ==1868 [2024-12-31 20:42:18] Production.ERROR: pbx CDR StartTime 2024-12-31 17:42:05 - End Time 2024-12-31 20:42:05 [2024-12-31 20:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146056', 'tblTempUsageDetail_20' ) start [2024-12-31 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146056', 'tblTempUsageDetail_20' ) end [2024-12-31 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146056', 'tblTempVendorCDR_20' ) start [2024-12-31 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146056', 'tblTempVendorCDR_20' ) end [2024-12-31 20:42:18] Production.INFO: ProcessCDR(1,14146056,1,1,2) [2024-12-31 20:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146056', 'tblTempUsageDetail_20' ) start [2024-12-31 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146056', 'tblTempUsageDetail_20' ) end [2024-12-31 20:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:42:21] Production.INFO: ==29048== Releasing lock... [2024-12-31 20:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:42:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-31 20:43:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:43:06 [end_date_ymd] => 2024-12-31 20:43:06 [RateCDR] => 1 ) [2024-12-31 20:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:43:06' and `end` < '2024-12-31 20:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:43:18] Production.INFO: count ==1869 [2024-12-31 20:43:19] Production.ERROR: pbx CDR StartTime 2024-12-31 17:43:06 - End Time 2024-12-31 20:43:06 [2024-12-31 20:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146061', 'tblTempUsageDetail_20' ) start [2024-12-31 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146061', 'tblTempUsageDetail_20' ) end [2024-12-31 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146061', 'tblTempVendorCDR_20' ) start [2024-12-31 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146061', 'tblTempVendorCDR_20' ) end [2024-12-31 20:43:19] Production.INFO: ProcessCDR(1,14146061,1,1,2) [2024-12-31 20:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146061', 'tblTempUsageDetail_20' ) start [2024-12-31 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146061', 'tblTempUsageDetail_20' ) end [2024-12-31 20:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:43:22] Production.INFO: ==29121== Releasing lock... [2024-12-31 20:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:43:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-31 20:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:44:04 [end_date_ymd] => 2024-12-31 20:44:04 [RateCDR] => 1 ) [2024-12-31 20:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:44:04' and `end` < '2024-12-31 20:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:44:18] Production.INFO: count ==1869 [2024-12-31 20:44:18] Production.ERROR: pbx CDR StartTime 2024-12-31 17:44:04 - End Time 2024-12-31 20:44:04 [2024-12-31 20:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146066', 'tblTempUsageDetail_20' ) start [2024-12-31 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146066', 'tblTempUsageDetail_20' ) end [2024-12-31 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146066', 'tblTempVendorCDR_20' ) start [2024-12-31 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146066', 'tblTempVendorCDR_20' ) end [2024-12-31 20:44:18] Production.INFO: ProcessCDR(1,14146066,1,1,2) [2024-12-31 20:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146066', 'tblTempUsageDetail_20' ) start [2024-12-31 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146066', 'tblTempUsageDetail_20' ) end [2024-12-31 20:44:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:44:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:44:23] Production.INFO: ==29229== Releasing lock... [2024-12-31 20:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:44:23] Production.INFO: 41.5 MB #Memory Used# [2024-12-31 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:45:05 [end_date_ymd] => 2024-12-31 20:45:05 [RateCDR] => 1 ) [2024-12-31 20:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:45:05' and `end` < '2024-12-31 20:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:45:18] Production.INFO: count ==1872 [2024-12-31 20:45:18] Production.ERROR: pbx CDR StartTime 2024-12-31 17:45:05 - End Time 2024-12-31 20:45:05 [2024-12-31 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146071', 'tblTempUsageDetail_20' ) start [2024-12-31 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146071', 'tblTempUsageDetail_20' ) end [2024-12-31 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146071', 'tblTempVendorCDR_20' ) start [2024-12-31 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146071', 'tblTempVendorCDR_20' ) end [2024-12-31 20:45:18] Production.INFO: ProcessCDR(1,14146071,1,1,2) [2024-12-31 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146071', 'tblTempUsageDetail_20' ) start [2024-12-31 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146071', 'tblTempUsageDetail_20' ) end [2024-12-31 20:45:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:45:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:45:23] Production.INFO: ==29300== Releasing lock... [2024-12-31 20:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:45:23] Production.INFO: 41.5 MB #Memory Used# [2024-12-31 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:46:05 [end_date_ymd] => 2024-12-31 20:46:05 [RateCDR] => 1 ) [2024-12-31 20:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:46:05' and `end` < '2024-12-31 20:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:46:19] Production.INFO: count ==1874 [2024-12-31 20:46:19] Production.ERROR: pbx CDR StartTime 2024-12-31 17:46:05 - End Time 2024-12-31 20:46:05 [2024-12-31 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146076', 'tblTempUsageDetail_20' ) start [2024-12-31 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146076', 'tblTempUsageDetail_20' ) end [2024-12-31 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146076', 'tblTempVendorCDR_20' ) start [2024-12-31 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146076', 'tblTempVendorCDR_20' ) end [2024-12-31 20:46:19] Production.INFO: ProcessCDR(1,14146076,1,1,2) [2024-12-31 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146076', 'tblTempUsageDetail_20' ) start [2024-12-31 20:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146076', 'tblTempUsageDetail_20' ) end [2024-12-31 20:46:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:46:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:46:24] Production.INFO: ==29371== Releasing lock... [2024-12-31 20:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:46:24] Production.INFO: 41.5 MB #Memory Used# [2024-12-31 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:47:05 [end_date_ymd] => 2024-12-31 20:47:05 [RateCDR] => 1 ) [2024-12-31 20:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:47:05' and `end` < '2024-12-31 20:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:47:18] Production.INFO: count ==1874 [2024-12-31 20:47:19] Production.ERROR: pbx CDR StartTime 2024-12-31 17:47:05 - End Time 2024-12-31 20:47:05 [2024-12-31 20:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146081', 'tblTempUsageDetail_20' ) start [2024-12-31 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146081', 'tblTempUsageDetail_20' ) end [2024-12-31 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146081', 'tblTempVendorCDR_20' ) start [2024-12-31 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146081', 'tblTempVendorCDR_20' ) end [2024-12-31 20:47:19] Production.INFO: ProcessCDR(1,14146081,1,1,2) [2024-12-31 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146081', 'tblTempUsageDetail_20' ) start [2024-12-31 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146081', 'tblTempUsageDetail_20' ) end [2024-12-31 20:47:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:47:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:47:23] Production.INFO: ==29443== Releasing lock... [2024-12-31 20:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:47:23] Production.INFO: 41.5 MB #Memory Used# [2024-12-31 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:48:05 [end_date_ymd] => 2024-12-31 20:48:05 [RateCDR] => 1 ) [2024-12-31 20:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:48:05' and `end` < '2024-12-31 20:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:48:18] Production.INFO: count ==1871 [2024-12-31 20:48:18] Production.ERROR: pbx CDR StartTime 2024-12-31 17:48:05 - End Time 2024-12-31 20:48:05 [2024-12-31 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146086', 'tblTempUsageDetail_20' ) start [2024-12-31 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146086', 'tblTempUsageDetail_20' ) end [2024-12-31 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146086', 'tblTempVendorCDR_20' ) start [2024-12-31 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146086', 'tblTempVendorCDR_20' ) end [2024-12-31 20:48:18] Production.INFO: ProcessCDR(1,14146086,1,1,2) [2024-12-31 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146086', 'tblTempUsageDetail_20' ) start [2024-12-31 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146086', 'tblTempUsageDetail_20' ) end [2024-12-31 20:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:48:21] Production.INFO: ==29518== Releasing lock... [2024-12-31 20:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:48:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-31 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:49:05 [end_date_ymd] => 2024-12-31 20:49:05 [RateCDR] => 1 ) [2024-12-31 20:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:49:05' and `end` < '2024-12-31 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:49:17] Production.INFO: count ==1868 [2024-12-31 20:49:18] Production.ERROR: pbx CDR StartTime 2024-12-31 17:49:05 - End Time 2024-12-31 20:49:05 [2024-12-31 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146091', 'tblTempUsageDetail_20' ) start [2024-12-31 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146091', 'tblTempUsageDetail_20' ) end [2024-12-31 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146091', 'tblTempVendorCDR_20' ) start [2024-12-31 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146091', 'tblTempVendorCDR_20' ) end [2024-12-31 20:49:18] Production.INFO: ProcessCDR(1,14146091,1,1,2) [2024-12-31 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146091', 'tblTempUsageDetail_20' ) start [2024-12-31 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146091', 'tblTempUsageDetail_20' ) end [2024-12-31 20:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:49:21] Production.INFO: ==29595== Releasing lock... [2024-12-31 20:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:49:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-31 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:50:06 [end_date_ymd] => 2024-12-31 20:50:06 [RateCDR] => 1 ) [2024-12-31 20:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:50:06' and `end` < '2024-12-31 20:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:50:19] Production.INFO: count ==1872 [2024-12-31 20:50:19] Production.ERROR: pbx CDR StartTime 2024-12-31 17:50:06 - End Time 2024-12-31 20:50:06 [2024-12-31 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146096', 'tblTempUsageDetail_20' ) start [2024-12-31 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146096', 'tblTempUsageDetail_20' ) end [2024-12-31 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146096', 'tblTempVendorCDR_20' ) start [2024-12-31 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146096', 'tblTempVendorCDR_20' ) end [2024-12-31 20:50:19] Production.INFO: ProcessCDR(1,14146096,1,1,2) [2024-12-31 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146096', 'tblTempUsageDetail_20' ) start [2024-12-31 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146096', 'tblTempUsageDetail_20' ) end [2024-12-31 20:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:50:23] Production.INFO: ==29669== Releasing lock... [2024-12-31 20:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:50:23] Production.INFO: 41.5 MB #Memory Used# [2024-12-31 20:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:51:04 [end_date_ymd] => 2024-12-31 20:51:04 [RateCDR] => 1 ) [2024-12-31 20:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:51:04' and `end` < '2024-12-31 20:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:51:17] Production.INFO: count ==1880 [2024-12-31 20:51:17] Production.ERROR: pbx CDR StartTime 2024-12-31 17:51:04 - End Time 2024-12-31 20:51:04 [2024-12-31 20:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146102', 'tblTempUsageDetail_20' ) start [2024-12-31 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146102', 'tblTempUsageDetail_20' ) end [2024-12-31 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146102', 'tblTempVendorCDR_20' ) start [2024-12-31 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146102', 'tblTempVendorCDR_20' ) end [2024-12-31 20:51:18] Production.INFO: ProcessCDR(1,14146102,1,1,2) [2024-12-31 20:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146102', 'tblTempUsageDetail_20' ) start [2024-12-31 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146102', 'tblTempUsageDetail_20' ) end [2024-12-31 20:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:51:21] Production.INFO: ==29742== Releasing lock... [2024-12-31 20:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:51:21] Production.INFO: 41.75 MB #Memory Used# [2024-12-31 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:52:05 [end_date_ymd] => 2024-12-31 20:52:05 [RateCDR] => 1 ) [2024-12-31 20:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:52:05' and `end` < '2024-12-31 20:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:52:21] Production.INFO: count ==1878 [2024-12-31 20:52:21] Production.ERROR: pbx CDR StartTime 2024-12-31 17:52:05 - End Time 2024-12-31 20:52:05 [2024-12-31 20:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146107', 'tblTempUsageDetail_20' ) start [2024-12-31 20:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146107', 'tblTempUsageDetail_20' ) end [2024-12-31 20:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146107', 'tblTempVendorCDR_20' ) start [2024-12-31 20:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146107', 'tblTempVendorCDR_20' ) end [2024-12-31 20:52:21] Production.INFO: ProcessCDR(1,14146107,1,1,2) [2024-12-31 20:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146107', 'tblTempUsageDetail_20' ) start [2024-12-31 20:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146107', 'tblTempUsageDetail_20' ) end [2024-12-31 20:52:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:52:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:52:25] Production.INFO: ==29811== Releasing lock... [2024-12-31 20:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:52:25] Production.INFO: 41.75 MB #Memory Used# [2024-12-31 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:53:05 [end_date_ymd] => 2024-12-31 20:53:05 [RateCDR] => 1 ) [2024-12-31 20:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:53:05' and `end` < '2024-12-31 20:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:53:18] Production.INFO: count ==1876 [2024-12-31 20:53:18] Production.ERROR: pbx CDR StartTime 2024-12-31 17:53:05 - End Time 2024-12-31 20:53:05 [2024-12-31 20:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146112', 'tblTempUsageDetail_20' ) start [2024-12-31 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146112', 'tblTempUsageDetail_20' ) end [2024-12-31 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146112', 'tblTempVendorCDR_20' ) start [2024-12-31 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146112', 'tblTempVendorCDR_20' ) end [2024-12-31 20:53:18] Production.INFO: ProcessCDR(1,14146112,1,1,2) [2024-12-31 20:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146112', 'tblTempUsageDetail_20' ) start [2024-12-31 20:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146112', 'tblTempUsageDetail_20' ) end [2024-12-31 20:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:53:21] Production.INFO: ==29881== Releasing lock... [2024-12-31 20:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:53:21] Production.INFO: 41.75 MB #Memory Used# [2024-12-31 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:54:05 [end_date_ymd] => 2024-12-31 20:54:05 [RateCDR] => 1 ) [2024-12-31 20:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:54:05' and `end` < '2024-12-31 20:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:54:19] Production.INFO: count ==1869 [2024-12-31 20:54:19] Production.ERROR: pbx CDR StartTime 2024-12-31 17:54:05 - End Time 2024-12-31 20:54:05 [2024-12-31 20:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146117', 'tblTempUsageDetail_20' ) start [2024-12-31 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146117', 'tblTempUsageDetail_20' ) end [2024-12-31 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146117', 'tblTempVendorCDR_20' ) start [2024-12-31 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146117', 'tblTempVendorCDR_20' ) end [2024-12-31 20:54:19] Production.INFO: ProcessCDR(1,14146117,1,1,2) [2024-12-31 20:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146117', 'tblTempUsageDetail_20' ) start [2024-12-31 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146117', 'tblTempUsageDetail_20' ) end [2024-12-31 20:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:54:22] Production.INFO: ==29954== Releasing lock... [2024-12-31 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:54:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-31 20:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:55:04 [end_date_ymd] => 2024-12-31 20:55:04 [RateCDR] => 1 ) [2024-12-31 20:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:55:04' and `end` < '2024-12-31 20:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:55:17] Production.INFO: count ==1864 [2024-12-31 20:55:18] Production.ERROR: pbx CDR StartTime 2024-12-31 17:55:04 - End Time 2024-12-31 20:55:04 [2024-12-31 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146122', 'tblTempUsageDetail_20' ) start [2024-12-31 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146122', 'tblTempUsageDetail_20' ) end [2024-12-31 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146122', 'tblTempVendorCDR_20' ) start [2024-12-31 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146122', 'tblTempVendorCDR_20' ) end [2024-12-31 20:55:18] Production.INFO: ProcessCDR(1,14146122,1,1,2) [2024-12-31 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146122', 'tblTempUsageDetail_20' ) start [2024-12-31 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146122', 'tblTempUsageDetail_20' ) end [2024-12-31 20:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:55:22] Production.INFO: ==30024== Releasing lock... [2024-12-31 20:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:55:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-31 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:56:05 [end_date_ymd] => 2024-12-31 20:56:05 [RateCDR] => 1 ) [2024-12-31 20:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:56:05' and `end` < '2024-12-31 20:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:56:19] Production.INFO: count ==1870 [2024-12-31 20:56:19] Production.ERROR: pbx CDR StartTime 2024-12-31 17:56:05 - End Time 2024-12-31 20:56:05 [2024-12-31 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146127', 'tblTempUsageDetail_20' ) start [2024-12-31 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146127', 'tblTempUsageDetail_20' ) end [2024-12-31 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146127', 'tblTempVendorCDR_20' ) start [2024-12-31 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146127', 'tblTempVendorCDR_20' ) end [2024-12-31 20:56:19] Production.INFO: ProcessCDR(1,14146127,1,1,2) [2024-12-31 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146127', 'tblTempUsageDetail_20' ) start [2024-12-31 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146127', 'tblTempUsageDetail_20' ) end [2024-12-31 20:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:56:22] Production.INFO: ==30097== Releasing lock... [2024-12-31 20:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:56:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-31 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:57:05 [end_date_ymd] => 2024-12-31 20:57:05 [RateCDR] => 1 ) [2024-12-31 20:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:57:05' and `end` < '2024-12-31 20:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:57:18] Production.INFO: count ==1869 [2024-12-31 20:57:18] Production.ERROR: pbx CDR StartTime 2024-12-31 17:57:05 - End Time 2024-12-31 20:57:05 [2024-12-31 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146132', 'tblTempUsageDetail_20' ) start [2024-12-31 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146132', 'tblTempUsageDetail_20' ) end [2024-12-31 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146132', 'tblTempVendorCDR_20' ) start [2024-12-31 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146132', 'tblTempVendorCDR_20' ) end [2024-12-31 20:57:18] Production.INFO: ProcessCDR(1,14146132,1,1,2) [2024-12-31 20:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146132', 'tblTempUsageDetail_20' ) start [2024-12-31 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146132', 'tblTempUsageDetail_20' ) end [2024-12-31 20:57:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:57:23] Production.INFO: ==30185== Releasing lock... [2024-12-31 20:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:57:23] Production.INFO: 41.5 MB #Memory Used# [2024-12-31 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:58:05 [end_date_ymd] => 2024-12-31 20:58:05 [RateCDR] => 1 ) [2024-12-31 20:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:58:05' and `end` < '2024-12-31 20:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:58:18] Production.INFO: count ==1872 [2024-12-31 20:58:18] Production.ERROR: pbx CDR StartTime 2024-12-31 17:58:05 - End Time 2024-12-31 20:58:05 [2024-12-31 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146137', 'tblTempUsageDetail_20' ) start [2024-12-31 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146137', 'tblTempUsageDetail_20' ) end [2024-12-31 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146137', 'tblTempVendorCDR_20' ) start [2024-12-31 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146137', 'tblTempVendorCDR_20' ) end [2024-12-31 20:58:18] Production.INFO: ProcessCDR(1,14146137,1,1,2) [2024-12-31 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146137', 'tblTempUsageDetail_20' ) start [2024-12-31 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146137', 'tblTempUsageDetail_20' ) end [2024-12-31 20:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:58:22] Production.INFO: ==30270== Releasing lock... [2024-12-31 20:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:58:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-31 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 17:59:05 [end_date_ymd] => 2024-12-31 20:59:05 [RateCDR] => 1 ) [2024-12-31 20:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 17:59:05' and `end` < '2024-12-31 20:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 20:59:18] Production.INFO: count ==1880 [2024-12-31 20:59:18] Production.ERROR: pbx CDR StartTime 2024-12-31 17:59:05 - End Time 2024-12-31 20:59:05 [2024-12-31 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146142', 'tblTempUsageDetail_20' ) start [2024-12-31 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146142', 'tblTempUsageDetail_20' ) end [2024-12-31 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146142', 'tblTempVendorCDR_20' ) start [2024-12-31 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146142', 'tblTempVendorCDR_20' ) end [2024-12-31 20:59:18] Production.INFO: ProcessCDR(1,14146142,1,1,2) [2024-12-31 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 20:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146142', 'tblTempUsageDetail_20' ) start [2024-12-31 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146142', 'tblTempUsageDetail_20' ) end [2024-12-31 20:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 20:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 20:59:21] Production.INFO: ==30360== Releasing lock... [2024-12-31 20:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 20:59:21] Production.INFO: 41.75 MB #Memory Used# [2024-12-31 21:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:00:05 [end_date_ymd] => 2024-12-31 21:00:05 [RateCDR] => 1 ) [2024-12-31 21:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:00:05' and `end` < '2024-12-31 21:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:00:18] Production.INFO: count ==1876 [2024-12-31 21:00:18] Production.ERROR: pbx CDR StartTime 2024-12-31 18:00:05 - End Time 2024-12-31 21:00:05 [2024-12-31 21:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146147', 'tblTempUsageDetail_20' ) start [2024-12-31 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146147', 'tblTempUsageDetail_20' ) end [2024-12-31 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146147', 'tblTempVendorCDR_20' ) start [2024-12-31 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146147', 'tblTempVendorCDR_20' ) end [2024-12-31 21:00:18] Production.INFO: ProcessCDR(1,14146147,1,1,2) [2024-12-31 21:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146147', 'tblTempUsageDetail_20' ) start [2024-12-31 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146147', 'tblTempUsageDetail_20' ) end [2024-12-31 21:00:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:00:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:00:23] Production.INFO: ==30490== Releasing lock... [2024-12-31 21:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:00:23] Production.INFO: 41.75 MB #Memory Used# [2024-12-31 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:01:05 [end_date_ymd] => 2024-12-31 21:01:05 [RateCDR] => 1 ) [2024-12-31 21:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:01:05' and `end` < '2024-12-31 21:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:01:18] Production.INFO: count ==1852 [2024-12-31 21:01:18] Production.ERROR: pbx CDR StartTime 2024-12-31 18:01:05 - End Time 2024-12-31 21:01:05 [2024-12-31 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146153', 'tblTempUsageDetail_20' ) start [2024-12-31 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146153', 'tblTempUsageDetail_20' ) end [2024-12-31 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146153', 'tblTempVendorCDR_20' ) start [2024-12-31 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146153', 'tblTempVendorCDR_20' ) end [2024-12-31 21:01:18] Production.INFO: ProcessCDR(1,14146153,1,1,2) [2024-12-31 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146153', 'tblTempUsageDetail_20' ) start [2024-12-31 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146153', 'tblTempUsageDetail_20' ) end [2024-12-31 21:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:01:22] Production.INFO: ==30593== Releasing lock... [2024-12-31 21:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:01:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-31 21:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:02:04 [end_date_ymd] => 2024-12-31 21:02:04 [RateCDR] => 1 ) [2024-12-31 21:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:02:04' and `end` < '2024-12-31 21:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:02:18] Production.INFO: count ==1846 [2024-12-31 21:02:18] Production.ERROR: pbx CDR StartTime 2024-12-31 18:02:04 - End Time 2024-12-31 21:02:04 [2024-12-31 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146158', 'tblTempUsageDetail_20' ) start [2024-12-31 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146158', 'tblTempUsageDetail_20' ) end [2024-12-31 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146158', 'tblTempVendorCDR_20' ) start [2024-12-31 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146158', 'tblTempVendorCDR_20' ) end [2024-12-31 21:02:18] Production.INFO: ProcessCDR(1,14146158,1,1,2) [2024-12-31 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146158', 'tblTempUsageDetail_20' ) start [2024-12-31 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146158', 'tblTempUsageDetail_20' ) end [2024-12-31 21:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:02:21] Production.INFO: ==30677== Releasing lock... [2024-12-31 21:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:02:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-31 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:03:05 [end_date_ymd] => 2024-12-31 21:03:05 [RateCDR] => 1 ) [2024-12-31 21:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:03:05' and `end` < '2024-12-31 21:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:03:18] Production.INFO: count ==1842 [2024-12-31 21:03:18] Production.ERROR: pbx CDR StartTime 2024-12-31 18:03:05 - End Time 2024-12-31 21:03:05 [2024-12-31 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146163', 'tblTempUsageDetail_20' ) start [2024-12-31 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146163', 'tblTempUsageDetail_20' ) end [2024-12-31 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146163', 'tblTempVendorCDR_20' ) start [2024-12-31 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146163', 'tblTempVendorCDR_20' ) end [2024-12-31 21:03:18] Production.INFO: ProcessCDR(1,14146163,1,1,2) [2024-12-31 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146163', 'tblTempUsageDetail_20' ) start [2024-12-31 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146163', 'tblTempUsageDetail_20' ) end [2024-12-31 21:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:03:21] Production.INFO: ==30767== Releasing lock... [2024-12-31 21:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:03:21] Production.INFO: 41.25 MB #Memory Used# [2024-12-31 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:04:05 [end_date_ymd] => 2024-12-31 21:04:05 [RateCDR] => 1 ) [2024-12-31 21:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:04:05' and `end` < '2024-12-31 21:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:04:18] Production.INFO: count ==1841 [2024-12-31 21:04:18] Production.ERROR: pbx CDR StartTime 2024-12-31 18:04:05 - End Time 2024-12-31 21:04:05 [2024-12-31 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146168', 'tblTempUsageDetail_20' ) start [2024-12-31 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146168', 'tblTempUsageDetail_20' ) end [2024-12-31 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146168', 'tblTempVendorCDR_20' ) start [2024-12-31 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146168', 'tblTempVendorCDR_20' ) end [2024-12-31 21:04:18] Production.INFO: ProcessCDR(1,14146168,1,1,2) [2024-12-31 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146168', 'tblTempUsageDetail_20' ) start [2024-12-31 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146168', 'tblTempUsageDetail_20' ) end [2024-12-31 21:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:04:21] Production.INFO: ==30853== Releasing lock... [2024-12-31 21:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:04:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-31 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:05:05 [end_date_ymd] => 2024-12-31 21:05:05 [RateCDR] => 1 ) [2024-12-31 21:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:05:05' and `end` < '2024-12-31 21:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:05:18] Production.INFO: count ==1841 [2024-12-31 21:05:18] Production.ERROR: pbx CDR StartTime 2024-12-31 18:05:05 - End Time 2024-12-31 21:05:05 [2024-12-31 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146173', 'tblTempUsageDetail_20' ) start [2024-12-31 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146173', 'tblTempUsageDetail_20' ) end [2024-12-31 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146173', 'tblTempVendorCDR_20' ) start [2024-12-31 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146173', 'tblTempVendorCDR_20' ) end [2024-12-31 21:05:18] Production.INFO: ProcessCDR(1,14146173,1,1,2) [2024-12-31 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146173', 'tblTempUsageDetail_20' ) start [2024-12-31 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146173', 'tblTempUsageDetail_20' ) end [2024-12-31 21:05:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:05:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:05:23] Production.INFO: ==30940== Releasing lock... [2024-12-31 21:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:05:23] Production.INFO: 41.25 MB #Memory Used# [2024-12-31 21:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:06:04 [end_date_ymd] => 2024-12-31 21:06:04 [RateCDR] => 1 ) [2024-12-31 21:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:06:04' and `end` < '2024-12-31 21:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:06:17] Production.INFO: count ==1842 [2024-12-31 21:06:17] Production.ERROR: pbx CDR StartTime 2024-12-31 18:06:04 - End Time 2024-12-31 21:06:04 [2024-12-31 21:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146178', 'tblTempUsageDetail_20' ) start [2024-12-31 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146178', 'tblTempUsageDetail_20' ) end [2024-12-31 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146178', 'tblTempVendorCDR_20' ) start [2024-12-31 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146178', 'tblTempVendorCDR_20' ) end [2024-12-31 21:06:17] Production.INFO: ProcessCDR(1,14146178,1,1,2) [2024-12-31 21:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146178', 'tblTempUsageDetail_20' ) start [2024-12-31 21:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146178', 'tblTempUsageDetail_20' ) end [2024-12-31 21:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:06:20] Production.INFO: ==31010== Releasing lock... [2024-12-31 21:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:06:20] Production.INFO: 41.5 MB #Memory Used# [2024-12-31 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:07:05 [end_date_ymd] => 2024-12-31 21:07:05 [RateCDR] => 1 ) [2024-12-31 21:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:07:05' and `end` < '2024-12-31 21:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:07:18] Production.INFO: count ==1841 [2024-12-31 21:07:18] Production.ERROR: pbx CDR StartTime 2024-12-31 18:07:05 - End Time 2024-12-31 21:07:05 [2024-12-31 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146183', 'tblTempUsageDetail_20' ) start [2024-12-31 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146183', 'tblTempUsageDetail_20' ) end [2024-12-31 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146183', 'tblTempVendorCDR_20' ) start [2024-12-31 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146183', 'tblTempVendorCDR_20' ) end [2024-12-31 21:07:18] Production.INFO: ProcessCDR(1,14146183,1,1,2) [2024-12-31 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146183', 'tblTempUsageDetail_20' ) start [2024-12-31 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146183', 'tblTempUsageDetail_20' ) end [2024-12-31 21:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:07:21] Production.INFO: ==31081== Releasing lock... [2024-12-31 21:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:07:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-31 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:08:05 [end_date_ymd] => 2024-12-31 21:08:05 [RateCDR] => 1 ) [2024-12-31 21:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:08:05' and `end` < '2024-12-31 21:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:08:17] Production.INFO: count ==1839 [2024-12-31 21:08:18] Production.ERROR: pbx CDR StartTime 2024-12-31 18:08:05 - End Time 2024-12-31 21:08:05 [2024-12-31 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146188', 'tblTempUsageDetail_20' ) start [2024-12-31 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146188', 'tblTempUsageDetail_20' ) end [2024-12-31 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146188', 'tblTempVendorCDR_20' ) start [2024-12-31 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146188', 'tblTempVendorCDR_20' ) end [2024-12-31 21:08:18] Production.INFO: ProcessCDR(1,14146188,1,1,2) [2024-12-31 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146188', 'tblTempUsageDetail_20' ) start [2024-12-31 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146188', 'tblTempUsageDetail_20' ) end [2024-12-31 21:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:08:21] Production.INFO: ==31153== Releasing lock... [2024-12-31 21:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:08:21] Production.INFO: 41.25 MB #Memory Used# [2024-12-31 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:09:05 [end_date_ymd] => 2024-12-31 21:09:05 [RateCDR] => 1 ) [2024-12-31 21:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:09:05' and `end` < '2024-12-31 21:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:09:18] Production.INFO: count ==1840 [2024-12-31 21:09:18] Production.ERROR: pbx CDR StartTime 2024-12-31 18:09:05 - End Time 2024-12-31 21:09:05 [2024-12-31 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146193', 'tblTempUsageDetail_20' ) start [2024-12-31 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146193', 'tblTempUsageDetail_20' ) end [2024-12-31 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146193', 'tblTempVendorCDR_20' ) start [2024-12-31 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146193', 'tblTempVendorCDR_20' ) end [2024-12-31 21:09:18] Production.INFO: ProcessCDR(1,14146193,1,1,2) [2024-12-31 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146193', 'tblTempUsageDetail_20' ) start [2024-12-31 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146193', 'tblTempUsageDetail_20' ) end [2024-12-31 21:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:09:22] Production.INFO: ==31227== Releasing lock... [2024-12-31 21:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:09:22] Production.INFO: 41.25 MB #Memory Used# [2024-12-31 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:10:06 [end_date_ymd] => 2024-12-31 21:10:06 [RateCDR] => 1 ) [2024-12-31 21:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:10:06' and `end` < '2024-12-31 21:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:10:18] Production.INFO: count ==1840 [2024-12-31 21:10:19] Production.ERROR: pbx CDR StartTime 2024-12-31 18:10:06 - End Time 2024-12-31 21:10:06 [2024-12-31 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146198', 'tblTempUsageDetail_20' ) start [2024-12-31 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146198', 'tblTempUsageDetail_20' ) end [2024-12-31 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146198', 'tblTempVendorCDR_20' ) start [2024-12-31 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146198', 'tblTempVendorCDR_20' ) end [2024-12-31 21:10:19] Production.INFO: ProcessCDR(1,14146198,1,1,2) [2024-12-31 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146198', 'tblTempUsageDetail_20' ) start [2024-12-31 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146198', 'tblTempUsageDetail_20' ) end [2024-12-31 21:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:10:22] Production.INFO: ==31301== Releasing lock... [2024-12-31 21:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:10:22] Production.INFO: 41.25 MB #Memory Used# [2024-12-31 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:11:05 [end_date_ymd] => 2024-12-31 21:11:05 [RateCDR] => 1 ) [2024-12-31 21:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:11:05' and `end` < '2024-12-31 21:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:11:18] Production.INFO: count ==1841 [2024-12-31 21:11:18] Production.ERROR: pbx CDR StartTime 2024-12-31 18:11:05 - End Time 2024-12-31 21:11:05 [2024-12-31 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146204', 'tblTempUsageDetail_20' ) start [2024-12-31 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146204', 'tblTempUsageDetail_20' ) end [2024-12-31 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146204', 'tblTempVendorCDR_20' ) start [2024-12-31 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146204', 'tblTempVendorCDR_20' ) end [2024-12-31 21:11:18] Production.INFO: ProcessCDR(1,14146204,1,1,2) [2024-12-31 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146204', 'tblTempUsageDetail_20' ) start [2024-12-31 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146204', 'tblTempUsageDetail_20' ) end [2024-12-31 21:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:11:21] Production.INFO: ==31373== Releasing lock... [2024-12-31 21:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:11:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-31 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:12:05 [end_date_ymd] => 2024-12-31 21:12:05 [RateCDR] => 1 ) [2024-12-31 21:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:12:05' and `end` < '2024-12-31 21:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:12:18] Production.INFO: count ==1840 [2024-12-31 21:12:18] Production.ERROR: pbx CDR StartTime 2024-12-31 18:12:05 - End Time 2024-12-31 21:12:05 [2024-12-31 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146209', 'tblTempUsageDetail_20' ) start [2024-12-31 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146209', 'tblTempUsageDetail_20' ) end [2024-12-31 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146209', 'tblTempVendorCDR_20' ) start [2024-12-31 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146209', 'tblTempVendorCDR_20' ) end [2024-12-31 21:12:18] Production.INFO: ProcessCDR(1,14146209,1,1,2) [2024-12-31 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146209', 'tblTempUsageDetail_20' ) start [2024-12-31 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146209', 'tblTempUsageDetail_20' ) end [2024-12-31 21:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:12:21] Production.INFO: ==31446== Releasing lock... [2024-12-31 21:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:12:21] Production.INFO: 41.25 MB #Memory Used# [2024-12-31 21:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:13:04 [end_date_ymd] => 2024-12-31 21:13:04 [RateCDR] => 1 ) [2024-12-31 21:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:13:04' and `end` < '2024-12-31 21:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:13:17] Production.INFO: count ==1840 [2024-12-31 21:13:17] Production.ERROR: pbx CDR StartTime 2024-12-31 18:13:04 - End Time 2024-12-31 21:13:04 [2024-12-31 21:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146214', 'tblTempUsageDetail_20' ) start [2024-12-31 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146214', 'tblTempUsageDetail_20' ) end [2024-12-31 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146214', 'tblTempVendorCDR_20' ) start [2024-12-31 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146214', 'tblTempVendorCDR_20' ) end [2024-12-31 21:13:17] Production.INFO: ProcessCDR(1,14146214,1,1,2) [2024-12-31 21:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146214', 'tblTempUsageDetail_20' ) start [2024-12-31 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146214', 'tblTempUsageDetail_20' ) end [2024-12-31 21:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:13:22] Production.INFO: ==31517== Releasing lock... [2024-12-31 21:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:13:22] Production.INFO: 41.25 MB #Memory Used# [2024-12-31 21:14:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:14:06 [end_date_ymd] => 2024-12-31 21:14:06 [RateCDR] => 1 ) [2024-12-31 21:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:14:06' and `end` < '2024-12-31 21:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:14:19] Production.INFO: count ==1829 [2024-12-31 21:14:19] Production.ERROR: pbx CDR StartTime 2024-12-31 18:14:06 - End Time 2024-12-31 21:14:06 [2024-12-31 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146219', 'tblTempUsageDetail_20' ) start [2024-12-31 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146219', 'tblTempUsageDetail_20' ) end [2024-12-31 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146219', 'tblTempVendorCDR_20' ) start [2024-12-31 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146219', 'tblTempVendorCDR_20' ) end [2024-12-31 21:14:19] Production.INFO: ProcessCDR(1,14146219,1,1,2) [2024-12-31 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146219', 'tblTempUsageDetail_20' ) start [2024-12-31 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146219', 'tblTempUsageDetail_20' ) end [2024-12-31 21:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:14:22] Production.INFO: ==31590== Releasing lock... [2024-12-31 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:14:22] Production.INFO: 41.25 MB #Memory Used# [2024-12-31 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:15:05 [end_date_ymd] => 2024-12-31 21:15:05 [RateCDR] => 1 ) [2024-12-31 21:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:15:05' and `end` < '2024-12-31 21:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:15:18] Production.INFO: count ==1819 [2024-12-31 21:15:18] Production.ERROR: pbx CDR StartTime 2024-12-31 18:15:05 - End Time 2024-12-31 21:15:05 [2024-12-31 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146224', 'tblTempUsageDetail_20' ) start [2024-12-31 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146224', 'tblTempUsageDetail_20' ) end [2024-12-31 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146224', 'tblTempVendorCDR_20' ) start [2024-12-31 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146224', 'tblTempVendorCDR_20' ) end [2024-12-31 21:15:18] Production.INFO: ProcessCDR(1,14146224,1,1,2) [2024-12-31 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146224', 'tblTempUsageDetail_20' ) start [2024-12-31 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146224', 'tblTempUsageDetail_20' ) end [2024-12-31 21:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:15:21] Production.INFO: ==31700== Releasing lock... [2024-12-31 21:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:15:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-31 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:16:05 [end_date_ymd] => 2024-12-31 21:16:05 [RateCDR] => 1 ) [2024-12-31 21:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:16:05' and `end` < '2024-12-31 21:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:16:19] Production.INFO: count ==1812 [2024-12-31 21:16:20] Production.ERROR: pbx CDR StartTime 2024-12-31 18:16:05 - End Time 2024-12-31 21:16:05 [2024-12-31 21:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146229', 'tblTempUsageDetail_20' ) start [2024-12-31 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146229', 'tblTempUsageDetail_20' ) end [2024-12-31 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146229', 'tblTempVendorCDR_20' ) start [2024-12-31 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146229', 'tblTempVendorCDR_20' ) end [2024-12-31 21:16:20] Production.INFO: ProcessCDR(1,14146229,1,1,2) [2024-12-31 21:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146229', 'tblTempUsageDetail_20' ) start [2024-12-31 21:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146229', 'tblTempUsageDetail_20' ) end [2024-12-31 21:16:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:16:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:16:24] Production.INFO: ==31771== Releasing lock... [2024-12-31 21:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:16:24] Production.INFO: 41.25 MB #Memory Used# [2024-12-31 21:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:17:04 [end_date_ymd] => 2024-12-31 21:17:04 [RateCDR] => 1 ) [2024-12-31 21:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:17:04' and `end` < '2024-12-31 21:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:17:18] Production.INFO: count ==1809 [2024-12-31 21:17:18] Production.ERROR: pbx CDR StartTime 2024-12-31 18:17:04 - End Time 2024-12-31 21:17:04 [2024-12-31 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146234', 'tblTempUsageDetail_20' ) start [2024-12-31 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146234', 'tblTempUsageDetail_20' ) end [2024-12-31 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146234', 'tblTempVendorCDR_20' ) start [2024-12-31 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146234', 'tblTempVendorCDR_20' ) end [2024-12-31 21:17:18] Production.INFO: ProcessCDR(1,14146234,1,1,2) [2024-12-31 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146234', 'tblTempUsageDetail_20' ) start [2024-12-31 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146234', 'tblTempUsageDetail_20' ) end [2024-12-31 21:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:17:21] Production.INFO: ==31841== Releasing lock... [2024-12-31 21:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:17:21] Production.INFO: 41.25 MB #Memory Used# [2024-12-31 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:18:05 [end_date_ymd] => 2024-12-31 21:18:05 [RateCDR] => 1 ) [2024-12-31 21:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:18:05' and `end` < '2024-12-31 21:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:18:18] Production.INFO: count ==1843 [2024-12-31 21:18:18] Production.ERROR: pbx CDR StartTime 2024-12-31 18:18:05 - End Time 2024-12-31 21:18:05 [2024-12-31 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146239', 'tblTempUsageDetail_20' ) start [2024-12-31 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146239', 'tblTempUsageDetail_20' ) end [2024-12-31 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146239', 'tblTempVendorCDR_20' ) start [2024-12-31 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146239', 'tblTempVendorCDR_20' ) end [2024-12-31 21:18:18] Production.INFO: ProcessCDR(1,14146239,1,1,2) [2024-12-31 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146239', 'tblTempUsageDetail_20' ) start [2024-12-31 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146239', 'tblTempUsageDetail_20' ) end [2024-12-31 21:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:18:21] Production.INFO: ==31916== Releasing lock... [2024-12-31 21:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:18:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-31 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:19:05 [end_date_ymd] => 2024-12-31 21:19:05 [RateCDR] => 1 ) [2024-12-31 21:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:19:05' and `end` < '2024-12-31 21:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:19:18] Production.INFO: count ==1834 [2024-12-31 21:19:18] Production.ERROR: pbx CDR StartTime 2024-12-31 18:19:05 - End Time 2024-12-31 21:19:05 [2024-12-31 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146244', 'tblTempUsageDetail_20' ) start [2024-12-31 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146244', 'tblTempUsageDetail_20' ) end [2024-12-31 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146244', 'tblTempVendorCDR_20' ) start [2024-12-31 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146244', 'tblTempVendorCDR_20' ) end [2024-12-31 21:19:18] Production.INFO: ProcessCDR(1,14146244,1,1,2) [2024-12-31 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146244', 'tblTempUsageDetail_20' ) start [2024-12-31 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146244', 'tblTempUsageDetail_20' ) end [2024-12-31 21:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:19:21] Production.INFO: ==31990== Releasing lock... [2024-12-31 21:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:19:21] Production.INFO: 41.25 MB #Memory Used# [2024-12-31 21:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:20:05 [end_date_ymd] => 2024-12-31 21:20:05 [RateCDR] => 1 ) [2024-12-31 21:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:20:05' and `end` < '2024-12-31 21:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:20:18] Production.INFO: count ==1816 [2024-12-31 21:20:19] Production.ERROR: pbx CDR StartTime 2024-12-31 18:20:05 - End Time 2024-12-31 21:20:05 [2024-12-31 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146249', 'tblTempUsageDetail_20' ) start [2024-12-31 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146249', 'tblTempUsageDetail_20' ) end [2024-12-31 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146249', 'tblTempVendorCDR_20' ) start [2024-12-31 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146249', 'tblTempVendorCDR_20' ) end [2024-12-31 21:20:19] Production.INFO: ProcessCDR(1,14146249,1,1,2) [2024-12-31 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146249', 'tblTempUsageDetail_20' ) start [2024-12-31 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146249', 'tblTempUsageDetail_20' ) end [2024-12-31 21:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:20:22] Production.INFO: ==32062== Releasing lock... [2024-12-31 21:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:20:22] Production.INFO: 41.25 MB #Memory Used# [2024-12-31 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:21:05 [end_date_ymd] => 2024-12-31 21:21:05 [RateCDR] => 1 ) [2024-12-31 21:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:21:05' and `end` < '2024-12-31 21:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:21:17] Production.INFO: count ==1787 [2024-12-31 21:21:18] Production.ERROR: pbx CDR StartTime 2024-12-31 18:21:05 - End Time 2024-12-31 21:21:05 [2024-12-31 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146255', 'tblTempUsageDetail_20' ) start [2024-12-31 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146255', 'tblTempUsageDetail_20' ) end [2024-12-31 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146255', 'tblTempVendorCDR_20' ) start [2024-12-31 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146255', 'tblTempVendorCDR_20' ) end [2024-12-31 21:21:18] Production.INFO: ProcessCDR(1,14146255,1,1,2) [2024-12-31 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146255', 'tblTempUsageDetail_20' ) start [2024-12-31 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146255', 'tblTempUsageDetail_20' ) end [2024-12-31 21:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:21:21] Production.INFO: ==32134== Releasing lock... [2024-12-31 21:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:21:21] Production.INFO: 41 MB #Memory Used# [2024-12-31 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:22:05 [end_date_ymd] => 2024-12-31 21:22:05 [RateCDR] => 1 ) [2024-12-31 21:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:22:05' and `end` < '2024-12-31 21:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:22:23] Production.INFO: count ==1775 [2024-12-31 21:22:23] Production.ERROR: pbx CDR StartTime 2024-12-31 18:22:05 - End Time 2024-12-31 21:22:05 [2024-12-31 21:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146260', 'tblTempUsageDetail_20' ) start [2024-12-31 21:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146260', 'tblTempUsageDetail_20' ) end [2024-12-31 21:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146260', 'tblTempVendorCDR_20' ) start [2024-12-31 21:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146260', 'tblTempVendorCDR_20' ) end [2024-12-31 21:22:23] Production.INFO: ProcessCDR(1,14146260,1,1,2) [2024-12-31 21:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146260', 'tblTempUsageDetail_20' ) start [2024-12-31 21:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146260', 'tblTempUsageDetail_20' ) end [2024-12-31 21:22:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:22:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:22:26] Production.INFO: ==32206== Releasing lock... [2024-12-31 21:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:22:26] Production.INFO: 41 MB #Memory Used# [2024-12-31 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:23:05 [end_date_ymd] => 2024-12-31 21:23:05 [RateCDR] => 1 ) [2024-12-31 21:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:23:05' and `end` < '2024-12-31 21:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:23:18] Production.INFO: count ==1769 [2024-12-31 21:23:18] Production.ERROR: pbx CDR StartTime 2024-12-31 18:23:05 - End Time 2024-12-31 21:23:05 [2024-12-31 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146265', 'tblTempUsageDetail_20' ) start [2024-12-31 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146265', 'tblTempUsageDetail_20' ) end [2024-12-31 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146265', 'tblTempVendorCDR_20' ) start [2024-12-31 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146265', 'tblTempVendorCDR_20' ) end [2024-12-31 21:23:18] Production.INFO: ProcessCDR(1,14146265,1,1,2) [2024-12-31 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146265', 'tblTempUsageDetail_20' ) start [2024-12-31 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146265', 'tblTempUsageDetail_20' ) end [2024-12-31 21:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:23:21] Production.INFO: ==32278== Releasing lock... [2024-12-31 21:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:23:21] Production.INFO: 40.75 MB #Memory Used# [2024-12-31 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:24:05 [end_date_ymd] => 2024-12-31 21:24:05 [RateCDR] => 1 ) [2024-12-31 21:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:24:05' and `end` < '2024-12-31 21:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:24:21] Production.INFO: count ==1766 [2024-12-31 21:24:21] Production.ERROR: pbx CDR StartTime 2024-12-31 18:24:05 - End Time 2024-12-31 21:24:05 [2024-12-31 21:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146270', 'tblTempUsageDetail_20' ) start [2024-12-31 21:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146270', 'tblTempUsageDetail_20' ) end [2024-12-31 21:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146270', 'tblTempVendorCDR_20' ) start [2024-12-31 21:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146270', 'tblTempVendorCDR_20' ) end [2024-12-31 21:24:21] Production.INFO: ProcessCDR(1,14146270,1,1,2) [2024-12-31 21:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146270', 'tblTempUsageDetail_20' ) start [2024-12-31 21:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146270', 'tblTempUsageDetail_20' ) end [2024-12-31 21:24:26] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:24:26] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:24:26] Production.INFO: ==32350== Releasing lock... [2024-12-31 21:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:24:26] Production.INFO: 40.75 MB #Memory Used# [2024-12-31 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:25:05 [end_date_ymd] => 2024-12-31 21:25:05 [RateCDR] => 1 ) [2024-12-31 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:25:05' and `end` < '2024-12-31 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:25:18] Production.INFO: count ==1760 [2024-12-31 21:25:18] Production.ERROR: pbx CDR StartTime 2024-12-31 18:25:05 - End Time 2024-12-31 21:25:05 [2024-12-31 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146275', 'tblTempUsageDetail_20' ) start [2024-12-31 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146275', 'tblTempUsageDetail_20' ) end [2024-12-31 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146275', 'tblTempVendorCDR_20' ) start [2024-12-31 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146275', 'tblTempVendorCDR_20' ) end [2024-12-31 21:25:18] Production.INFO: ProcessCDR(1,14146275,1,1,2) [2024-12-31 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146275', 'tblTempUsageDetail_20' ) start [2024-12-31 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146275', 'tblTempUsageDetail_20' ) end [2024-12-31 21:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:25:21] Production.INFO: ==32421== Releasing lock... [2024-12-31 21:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:25:21] Production.INFO: 40.75 MB #Memory Used# [2024-12-31 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:26:05 [end_date_ymd] => 2024-12-31 21:26:05 [RateCDR] => 1 ) [2024-12-31 21:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:26:05' and `end` < '2024-12-31 21:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:26:17] Production.INFO: count ==1736 [2024-12-31 21:26:18] Production.ERROR: pbx CDR StartTime 2024-12-31 18:26:05 - End Time 2024-12-31 21:26:05 [2024-12-31 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146280', 'tblTempUsageDetail_20' ) start [2024-12-31 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146280', 'tblTempUsageDetail_20' ) end [2024-12-31 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146280', 'tblTempVendorCDR_20' ) start [2024-12-31 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146280', 'tblTempVendorCDR_20' ) end [2024-12-31 21:26:18] Production.INFO: ProcessCDR(1,14146280,1,1,2) [2024-12-31 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146280', 'tblTempUsageDetail_20' ) start [2024-12-31 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146280', 'tblTempUsageDetail_20' ) end [2024-12-31 21:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:26:21] Production.INFO: ==32493== Releasing lock... [2024-12-31 21:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:26:21] Production.INFO: 40.5 MB #Memory Used# [2024-12-31 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:27:05 [end_date_ymd] => 2024-12-31 21:27:05 [RateCDR] => 1 ) [2024-12-31 21:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:27:05' and `end` < '2024-12-31 21:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:27:19] Production.INFO: count ==1720 [2024-12-31 21:27:19] Production.ERROR: pbx CDR StartTime 2024-12-31 18:27:05 - End Time 2024-12-31 21:27:05 [2024-12-31 21:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146285', 'tblTempUsageDetail_20' ) start [2024-12-31 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146285', 'tblTempUsageDetail_20' ) end [2024-12-31 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146285', 'tblTempVendorCDR_20' ) start [2024-12-31 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146285', 'tblTempVendorCDR_20' ) end [2024-12-31 21:27:19] Production.INFO: ProcessCDR(1,14146285,1,1,2) [2024-12-31 21:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146285', 'tblTempUsageDetail_20' ) start [2024-12-31 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146285', 'tblTempUsageDetail_20' ) end [2024-12-31 21:27:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:27:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:27:22] Production.INFO: ==32565== Releasing lock... [2024-12-31 21:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:27:22] Production.INFO: 40.5 MB #Memory Used# [2024-12-31 21:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:28:04 [end_date_ymd] => 2024-12-31 21:28:04 [RateCDR] => 1 ) [2024-12-31 21:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:28:04' and `end` < '2024-12-31 21:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:28:17] Production.INFO: count ==1773 [2024-12-31 21:28:17] Production.ERROR: pbx CDR StartTime 2024-12-31 18:28:04 - End Time 2024-12-31 21:28:04 [2024-12-31 21:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146290', 'tblTempUsageDetail_20' ) start [2024-12-31 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146290', 'tblTempUsageDetail_20' ) end [2024-12-31 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146290', 'tblTempVendorCDR_20' ) start [2024-12-31 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146290', 'tblTempVendorCDR_20' ) end [2024-12-31 21:28:17] Production.INFO: ProcessCDR(1,14146290,1,1,2) [2024-12-31 21:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146290', 'tblTempUsageDetail_20' ) start [2024-12-31 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146290', 'tblTempUsageDetail_20' ) end [2024-12-31 21:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:28:21] Production.INFO: ==32641== Releasing lock... [2024-12-31 21:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:28:21] Production.INFO: 40.75 MB #Memory Used# [2024-12-31 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:29:05 [end_date_ymd] => 2024-12-31 21:29:05 [RateCDR] => 1 ) [2024-12-31 21:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:29:05' and `end` < '2024-12-31 21:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:29:18] Production.INFO: count ==1759 [2024-12-31 21:29:18] Production.ERROR: pbx CDR StartTime 2024-12-31 18:29:05 - End Time 2024-12-31 21:29:05 [2024-12-31 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146295', 'tblTempUsageDetail_20' ) start [2024-12-31 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146295', 'tblTempUsageDetail_20' ) end [2024-12-31 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146295', 'tblTempVendorCDR_20' ) start [2024-12-31 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146295', 'tblTempVendorCDR_20' ) end [2024-12-31 21:29:18] Production.INFO: ProcessCDR(1,14146295,1,1,2) [2024-12-31 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146295', 'tblTempUsageDetail_20' ) start [2024-12-31 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146295', 'tblTempUsageDetail_20' ) end [2024-12-31 21:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:29:21] Production.INFO: ==32713== Releasing lock... [2024-12-31 21:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:29:21] Production.INFO: 40.75 MB #Memory Used# [2024-12-31 21:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:30:05 [end_date_ymd] => 2024-12-31 21:30:05 [RateCDR] => 1 ) [2024-12-31 21:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:30:05' and `end` < '2024-12-31 21:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:30:18] Production.INFO: count ==1754 [2024-12-31 21:30:18] Production.ERROR: pbx CDR StartTime 2024-12-31 18:30:05 - End Time 2024-12-31 21:30:05 [2024-12-31 21:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146299', 'tblTempUsageDetail_20' ) start [2024-12-31 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146299', 'tblTempUsageDetail_20' ) end [2024-12-31 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146299', 'tblTempVendorCDR_20' ) start [2024-12-31 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146299', 'tblTempVendorCDR_20' ) end [2024-12-31 21:30:18] Production.INFO: ProcessCDR(1,14146299,1,1,2) [2024-12-31 21:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146299', 'tblTempUsageDetail_20' ) start [2024-12-31 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146299', 'tblTempUsageDetail_20' ) end [2024-12-31 21:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:30:22] Production.INFO: ==325== Releasing lock... [2024-12-31 21:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:30:22] Production.INFO: 40.75 MB #Memory Used# [2024-12-31 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:31:05 [end_date_ymd] => 2024-12-31 21:31:05 [RateCDR] => 1 ) [2024-12-31 21:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:31:05' and `end` < '2024-12-31 21:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:31:18] Production.INFO: count ==1701 [2024-12-31 21:31:18] Production.ERROR: pbx CDR StartTime 2024-12-31 18:31:05 - End Time 2024-12-31 21:31:05 [2024-12-31 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146306', 'tblTempUsageDetail_20' ) start [2024-12-31 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146306', 'tblTempUsageDetail_20' ) end [2024-12-31 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146306', 'tblTempVendorCDR_20' ) start [2024-12-31 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146306', 'tblTempVendorCDR_20' ) end [2024-12-31 21:31:18] Production.INFO: ProcessCDR(1,14146306,1,1,2) [2024-12-31 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146306', 'tblTempUsageDetail_20' ) start [2024-12-31 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146306', 'tblTempUsageDetail_20' ) end [2024-12-31 21:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:31:21] Production.INFO: ==450== Releasing lock... [2024-12-31 21:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:31:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-31 21:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:32:04 [end_date_ymd] => 2024-12-31 21:32:04 [RateCDR] => 1 ) [2024-12-31 21:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:32:04' and `end` < '2024-12-31 21:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:32:17] Production.INFO: count ==1699 [2024-12-31 21:32:17] Production.ERROR: pbx CDR StartTime 2024-12-31 18:32:04 - End Time 2024-12-31 21:32:04 [2024-12-31 21:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146311', 'tblTempUsageDetail_20' ) start [2024-12-31 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146311', 'tblTempUsageDetail_20' ) end [2024-12-31 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146311', 'tblTempVendorCDR_20' ) start [2024-12-31 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146311', 'tblTempVendorCDR_20' ) end [2024-12-31 21:32:17] Production.INFO: ProcessCDR(1,14146311,1,1,2) [2024-12-31 21:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146311', 'tblTempUsageDetail_20' ) start [2024-12-31 21:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146311', 'tblTempUsageDetail_20' ) end [2024-12-31 21:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:32:20] Production.INFO: ==522== Releasing lock... [2024-12-31 21:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:32:20] Production.INFO: 40.25 MB #Memory Used# [2024-12-31 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:33:05 [end_date_ymd] => 2024-12-31 21:33:05 [RateCDR] => 1 ) [2024-12-31 21:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:33:05' and `end` < '2024-12-31 21:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:33:17] Production.INFO: count ==1690 [2024-12-31 21:33:18] Production.ERROR: pbx CDR StartTime 2024-12-31 18:33:05 - End Time 2024-12-31 21:33:05 [2024-12-31 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146316', 'tblTempUsageDetail_20' ) start [2024-12-31 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146316', 'tblTempUsageDetail_20' ) end [2024-12-31 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146316', 'tblTempVendorCDR_20' ) start [2024-12-31 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146316', 'tblTempVendorCDR_20' ) end [2024-12-31 21:33:18] Production.INFO: ProcessCDR(1,14146316,1,1,2) [2024-12-31 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146316', 'tblTempUsageDetail_20' ) start [2024-12-31 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146316', 'tblTempUsageDetail_20' ) end [2024-12-31 21:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:33:21] Production.INFO: ==604== Releasing lock... [2024-12-31 21:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:33:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-31 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:34:05 [end_date_ymd] => 2024-12-31 21:34:05 [RateCDR] => 1 ) [2024-12-31 21:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:34:05' and `end` < '2024-12-31 21:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:34:21] Production.INFO: count ==1687 [2024-12-31 21:34:21] Production.ERROR: pbx CDR StartTime 2024-12-31 18:34:05 - End Time 2024-12-31 21:34:05 [2024-12-31 21:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146321', 'tblTempUsageDetail_20' ) start [2024-12-31 21:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146321', 'tblTempUsageDetail_20' ) end [2024-12-31 21:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146321', 'tblTempVendorCDR_20' ) start [2024-12-31 21:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146321', 'tblTempVendorCDR_20' ) end [2024-12-31 21:34:21] Production.INFO: ProcessCDR(1,14146321,1,1,2) [2024-12-31 21:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146321', 'tblTempUsageDetail_20' ) start [2024-12-31 21:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146321', 'tblTempUsageDetail_20' ) end [2024-12-31 21:34:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:34:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:34:24] Production.INFO: ==704== Releasing lock... [2024-12-31 21:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:34:24] Production.INFO: 40.25 MB #Memory Used# [2024-12-31 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:35:05 [end_date_ymd] => 2024-12-31 21:35:05 [RateCDR] => 1 ) [2024-12-31 21:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:35:05' and `end` < '2024-12-31 21:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:35:18] Production.INFO: count ==1685 [2024-12-31 21:35:18] Production.ERROR: pbx CDR StartTime 2024-12-31 18:35:05 - End Time 2024-12-31 21:35:05 [2024-12-31 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146326', 'tblTempUsageDetail_20' ) start [2024-12-31 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146326', 'tblTempUsageDetail_20' ) end [2024-12-31 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146326', 'tblTempVendorCDR_20' ) start [2024-12-31 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146326', 'tblTempVendorCDR_20' ) end [2024-12-31 21:35:18] Production.INFO: ProcessCDR(1,14146326,1,1,2) [2024-12-31 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146326', 'tblTempUsageDetail_20' ) start [2024-12-31 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146326', 'tblTempUsageDetail_20' ) end [2024-12-31 21:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:35:21] Production.INFO: ==779== Releasing lock... [2024-12-31 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:35:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-31 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:36:05 [end_date_ymd] => 2024-12-31 21:36:05 [RateCDR] => 1 ) [2024-12-31 21:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:36:05' and `end` < '2024-12-31 21:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:36:18] Production.INFO: count ==1684 [2024-12-31 21:36:18] Production.ERROR: pbx CDR StartTime 2024-12-31 18:36:05 - End Time 2024-12-31 21:36:05 [2024-12-31 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146331', 'tblTempUsageDetail_20' ) start [2024-12-31 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146331', 'tblTempUsageDetail_20' ) end [2024-12-31 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146331', 'tblTempVendorCDR_20' ) start [2024-12-31 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146331', 'tblTempVendorCDR_20' ) end [2024-12-31 21:36:18] Production.INFO: ProcessCDR(1,14146331,1,1,2) [2024-12-31 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146331', 'tblTempUsageDetail_20' ) start [2024-12-31 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146331', 'tblTempUsageDetail_20' ) end [2024-12-31 21:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:36:21] Production.INFO: ==850== Releasing lock... [2024-12-31 21:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:36:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-31 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:37:05 [end_date_ymd] => 2024-12-31 21:37:05 [RateCDR] => 1 ) [2024-12-31 21:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:37:05' and `end` < '2024-12-31 21:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:37:17] Production.INFO: count ==1681 [2024-12-31 21:37:18] Production.ERROR: pbx CDR StartTime 2024-12-31 18:37:05 - End Time 2024-12-31 21:37:05 [2024-12-31 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146336', 'tblTempUsageDetail_20' ) start [2024-12-31 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146336', 'tblTempUsageDetail_20' ) end [2024-12-31 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146336', 'tblTempVendorCDR_20' ) start [2024-12-31 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146336', 'tblTempVendorCDR_20' ) end [2024-12-31 21:37:18] Production.INFO: ProcessCDR(1,14146336,1,1,2) [2024-12-31 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146336', 'tblTempUsageDetail_20' ) start [2024-12-31 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146336', 'tblTempUsageDetail_20' ) end [2024-12-31 21:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:37:21] Production.INFO: ==921== Releasing lock... [2024-12-31 21:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:37:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-31 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:38:05 [end_date_ymd] => 2024-12-31 21:38:05 [RateCDR] => 1 ) [2024-12-31 21:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:38:05' and `end` < '2024-12-31 21:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:38:19] Production.INFO: count ==1688 [2024-12-31 21:38:19] Production.ERROR: pbx CDR StartTime 2024-12-31 18:38:05 - End Time 2024-12-31 21:38:05 [2024-12-31 21:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146341', 'tblTempUsageDetail_20' ) start [2024-12-31 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146341', 'tblTempUsageDetail_20' ) end [2024-12-31 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146341', 'tblTempVendorCDR_20' ) start [2024-12-31 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146341', 'tblTempVendorCDR_20' ) end [2024-12-31 21:38:19] Production.INFO: ProcessCDR(1,14146341,1,1,2) [2024-12-31 21:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146341', 'tblTempUsageDetail_20' ) start [2024-12-31 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146341', 'tblTempUsageDetail_20' ) end [2024-12-31 21:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:38:22] Production.INFO: ==994== Releasing lock... [2024-12-31 21:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:38:22] Production.INFO: 40.25 MB #Memory Used# [2024-12-31 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:39:05 [end_date_ymd] => 2024-12-31 21:39:05 [RateCDR] => 1 ) [2024-12-31 21:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:39:05' and `end` < '2024-12-31 21:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:39:19] Production.INFO: count ==1679 [2024-12-31 21:39:19] Production.ERROR: pbx CDR StartTime 2024-12-31 18:39:05 - End Time 2024-12-31 21:39:05 [2024-12-31 21:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146346', 'tblTempUsageDetail_20' ) start [2024-12-31 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146346', 'tblTempUsageDetail_20' ) end [2024-12-31 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146346', 'tblTempVendorCDR_20' ) start [2024-12-31 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146346', 'tblTempVendorCDR_20' ) end [2024-12-31 21:39:19] Production.INFO: ProcessCDR(1,14146346,1,1,2) [2024-12-31 21:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146346', 'tblTempUsageDetail_20' ) start [2024-12-31 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146346', 'tblTempUsageDetail_20' ) end [2024-12-31 21:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:39:22] Production.INFO: ==1070== Releasing lock... [2024-12-31 21:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:39:22] Production.INFO: 40.25 MB #Memory Used# [2024-12-31 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:40:06 [end_date_ymd] => 2024-12-31 21:40:06 [RateCDR] => 1 ) [2024-12-31 21:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:40:06' and `end` < '2024-12-31 21:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:40:20] Production.INFO: count ==1671 [2024-12-31 21:40:21] Production.ERROR: pbx CDR StartTime 2024-12-31 18:40:06 - End Time 2024-12-31 21:40:06 [2024-12-31 21:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146352', 'tblTempUsageDetail_20' ) start [2024-12-31 21:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146352', 'tblTempUsageDetail_20' ) end [2024-12-31 21:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146352', 'tblTempVendorCDR_20' ) start [2024-12-31 21:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146352', 'tblTempVendorCDR_20' ) end [2024-12-31 21:40:21] Production.INFO: ProcessCDR(1,14146352,1,1,2) [2024-12-31 21:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146352', 'tblTempUsageDetail_20' ) start [2024-12-31 21:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146352', 'tblTempUsageDetail_20' ) end [2024-12-31 21:40:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:40:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:40:24] Production.INFO: ==1144== Releasing lock... [2024-12-31 21:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:40:24] Production.INFO: 40.25 MB #Memory Used# [2024-12-31 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:41:05 [end_date_ymd] => 2024-12-31 21:41:05 [RateCDR] => 1 ) [2024-12-31 21:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:41:05' and `end` < '2024-12-31 21:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:41:18] Production.INFO: count ==1641 [2024-12-31 21:41:18] Production.ERROR: pbx CDR StartTime 2024-12-31 18:41:05 - End Time 2024-12-31 21:41:05 [2024-12-31 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146357', 'tblTempUsageDetail_20' ) start [2024-12-31 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146357', 'tblTempUsageDetail_20' ) end [2024-12-31 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146357', 'tblTempVendorCDR_20' ) start [2024-12-31 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146357', 'tblTempVendorCDR_20' ) end [2024-12-31 21:41:18] Production.INFO: ProcessCDR(1,14146357,1,1,2) [2024-12-31 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146357', 'tblTempUsageDetail_20' ) start [2024-12-31 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146357', 'tblTempUsageDetail_20' ) end [2024-12-31 21:41:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:41:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:41:23] Production.INFO: ==1222== Releasing lock... [2024-12-31 21:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:41:23] Production.INFO: 40 MB #Memory Used# [2024-12-31 21:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:42:04 [end_date_ymd] => 2024-12-31 21:42:04 [RateCDR] => 1 ) [2024-12-31 21:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:42:04' and `end` < '2024-12-31 21:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:42:18] Production.INFO: count ==1637 [2024-12-31 21:42:18] Production.ERROR: pbx CDR StartTime 2024-12-31 18:42:04 - End Time 2024-12-31 21:42:04 [2024-12-31 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146362', 'tblTempUsageDetail_20' ) start [2024-12-31 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146362', 'tblTempUsageDetail_20' ) end [2024-12-31 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146362', 'tblTempVendorCDR_20' ) start [2024-12-31 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146362', 'tblTempVendorCDR_20' ) end [2024-12-31 21:42:18] Production.INFO: ProcessCDR(1,14146362,1,1,2) [2024-12-31 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146362', 'tblTempUsageDetail_20' ) start [2024-12-31 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146362', 'tblTempUsageDetail_20' ) end [2024-12-31 21:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:42:21] Production.INFO: ==1303== Releasing lock... [2024-12-31 21:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:42:21] Production.INFO: 39.75 MB #Memory Used# [2024-12-31 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:43:05 [end_date_ymd] => 2024-12-31 21:43:05 [RateCDR] => 1 ) [2024-12-31 21:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:43:05' and `end` < '2024-12-31 21:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:43:18] Production.INFO: count ==1632 [2024-12-31 21:43:18] Production.ERROR: pbx CDR StartTime 2024-12-31 18:43:05 - End Time 2024-12-31 21:43:05 [2024-12-31 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146367', 'tblTempUsageDetail_20' ) start [2024-12-31 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146367', 'tblTempUsageDetail_20' ) end [2024-12-31 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146367', 'tblTempVendorCDR_20' ) start [2024-12-31 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146367', 'tblTempVendorCDR_20' ) end [2024-12-31 21:43:18] Production.INFO: ProcessCDR(1,14146367,1,1,2) [2024-12-31 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146367', 'tblTempUsageDetail_20' ) start [2024-12-31 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146367', 'tblTempUsageDetail_20' ) end [2024-12-31 21:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:43:22] Production.INFO: ==1374== Releasing lock... [2024-12-31 21:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:43:22] Production.INFO: 39.75 MB #Memory Used# [2024-12-31 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:44:05 [end_date_ymd] => 2024-12-31 21:44:05 [RateCDR] => 1 ) [2024-12-31 21:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:44:05' and `end` < '2024-12-31 21:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:44:17] Production.INFO: count ==1627 [2024-12-31 21:44:18] Production.ERROR: pbx CDR StartTime 2024-12-31 18:44:05 - End Time 2024-12-31 21:44:05 [2024-12-31 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146372', 'tblTempUsageDetail_20' ) start [2024-12-31 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146372', 'tblTempUsageDetail_20' ) end [2024-12-31 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146372', 'tblTempVendorCDR_20' ) start [2024-12-31 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146372', 'tblTempVendorCDR_20' ) end [2024-12-31 21:44:18] Production.INFO: ProcessCDR(1,14146372,1,1,2) [2024-12-31 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146372', 'tblTempUsageDetail_20' ) start [2024-12-31 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146372', 'tblTempUsageDetail_20' ) end [2024-12-31 21:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:44:21] Production.INFO: ==1448== Releasing lock... [2024-12-31 21:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:44:21] Production.INFO: 39.75 MB #Memory Used# [2024-12-31 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:45:05 [end_date_ymd] => 2024-12-31 21:45:05 [RateCDR] => 1 ) [2024-12-31 21:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:45:05' and `end` < '2024-12-31 21:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:45:18] Production.INFO: count ==1619 [2024-12-31 21:45:18] Production.ERROR: pbx CDR StartTime 2024-12-31 18:45:05 - End Time 2024-12-31 21:45:05 [2024-12-31 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146377', 'tblTempUsageDetail_20' ) start [2024-12-31 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146377', 'tblTempUsageDetail_20' ) end [2024-12-31 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146377', 'tblTempVendorCDR_20' ) start [2024-12-31 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146377', 'tblTempVendorCDR_20' ) end [2024-12-31 21:45:18] Production.INFO: ProcessCDR(1,14146377,1,1,2) [2024-12-31 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146377', 'tblTempUsageDetail_20' ) start [2024-12-31 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146377', 'tblTempUsageDetail_20' ) end [2024-12-31 21:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:45:22] Production.INFO: ==1549== Releasing lock... [2024-12-31 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:45:22] Production.INFO: 39.75 MB #Memory Used# [2024-12-31 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:46:05 [end_date_ymd] => 2024-12-31 21:46:05 [RateCDR] => 1 ) [2024-12-31 21:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:46:05' and `end` < '2024-12-31 21:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:46:19] Production.INFO: count ==1619 [2024-12-31 21:46:19] Production.ERROR: pbx CDR StartTime 2024-12-31 18:46:05 - End Time 2024-12-31 21:46:05 [2024-12-31 21:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146382', 'tblTempUsageDetail_20' ) start [2024-12-31 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146382', 'tblTempUsageDetail_20' ) end [2024-12-31 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146382', 'tblTempVendorCDR_20' ) start [2024-12-31 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146382', 'tblTempVendorCDR_20' ) end [2024-12-31 21:46:19] Production.INFO: ProcessCDR(1,14146382,1,1,2) [2024-12-31 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146382', 'tblTempUsageDetail_20' ) start [2024-12-31 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146382', 'tblTempUsageDetail_20' ) end [2024-12-31 21:46:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:46:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:46:23] Production.INFO: ==1624== Releasing lock... [2024-12-31 21:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:46:23] Production.INFO: 39.75 MB #Memory Used# [2024-12-31 21:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:47:04 [end_date_ymd] => 2024-12-31 21:47:04 [RateCDR] => 1 ) [2024-12-31 21:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:47:04' and `end` < '2024-12-31 21:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:47:18] Production.INFO: count ==1620 [2024-12-31 21:47:18] Production.ERROR: pbx CDR StartTime 2024-12-31 18:47:04 - End Time 2024-12-31 21:47:04 [2024-12-31 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146387', 'tblTempUsageDetail_20' ) start [2024-12-31 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146387', 'tblTempUsageDetail_20' ) end [2024-12-31 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146387', 'tblTempVendorCDR_20' ) start [2024-12-31 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146387', 'tblTempVendorCDR_20' ) end [2024-12-31 21:47:18] Production.INFO: ProcessCDR(1,14146387,1,1,2) [2024-12-31 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146387', 'tblTempUsageDetail_20' ) start [2024-12-31 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146387', 'tblTempUsageDetail_20' ) end [2024-12-31 21:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:47:21] Production.INFO: ==1734== Releasing lock... [2024-12-31 21:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:47:21] Production.INFO: 39.75 MB #Memory Used# [2024-12-31 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:48:05 [end_date_ymd] => 2024-12-31 21:48:05 [RateCDR] => 1 ) [2024-12-31 21:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:48:05' and `end` < '2024-12-31 21:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:48:19] Production.INFO: count ==1624 [2024-12-31 21:48:19] Production.ERROR: pbx CDR StartTime 2024-12-31 18:48:05 - End Time 2024-12-31 21:48:05 [2024-12-31 21:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146392', 'tblTempUsageDetail_20' ) start [2024-12-31 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146392', 'tblTempUsageDetail_20' ) end [2024-12-31 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146392', 'tblTempVendorCDR_20' ) start [2024-12-31 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146392', 'tblTempVendorCDR_20' ) end [2024-12-31 21:48:19] Production.INFO: ProcessCDR(1,14146392,1,1,2) [2024-12-31 21:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146392', 'tblTempUsageDetail_20' ) start [2024-12-31 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146392', 'tblTempUsageDetail_20' ) end [2024-12-31 21:48:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:48:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:48:23] Production.INFO: ==1812== Releasing lock... [2024-12-31 21:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:48:23] Production.INFO: 39.75 MB #Memory Used# [2024-12-31 21:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:49:04 [end_date_ymd] => 2024-12-31 21:49:04 [RateCDR] => 1 ) [2024-12-31 21:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:49:04' and `end` < '2024-12-31 21:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:49:18] Production.INFO: count ==1623 [2024-12-31 21:49:18] Production.ERROR: pbx CDR StartTime 2024-12-31 18:49:04 - End Time 2024-12-31 21:49:04 [2024-12-31 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146397', 'tblTempUsageDetail_20' ) start [2024-12-31 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146397', 'tblTempUsageDetail_20' ) end [2024-12-31 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146397', 'tblTempVendorCDR_20' ) start [2024-12-31 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146397', 'tblTempVendorCDR_20' ) end [2024-12-31 21:49:18] Production.INFO: ProcessCDR(1,14146397,1,1,2) [2024-12-31 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146397', 'tblTempUsageDetail_20' ) start [2024-12-31 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146397', 'tblTempUsageDetail_20' ) end [2024-12-31 21:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:49:21] Production.INFO: ==1890== Releasing lock... [2024-12-31 21:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:49:21] Production.INFO: 39.75 MB #Memory Used# [2024-12-31 21:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:50:05 [end_date_ymd] => 2024-12-31 21:50:05 [RateCDR] => 1 ) [2024-12-31 21:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:50:05' and `end` < '2024-12-31 21:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:50:19] Production.INFO: count ==1625 [2024-12-31 21:50:19] Production.ERROR: pbx CDR StartTime 2024-12-31 18:50:05 - End Time 2024-12-31 21:50:05 [2024-12-31 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146403', 'tblTempUsageDetail_20' ) start [2024-12-31 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146403', 'tblTempUsageDetail_20' ) end [2024-12-31 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146403', 'tblTempVendorCDR_20' ) start [2024-12-31 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146403', 'tblTempVendorCDR_20' ) end [2024-12-31 21:50:19] Production.INFO: ProcessCDR(1,14146403,1,1,2) [2024-12-31 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146403', 'tblTempUsageDetail_20' ) start [2024-12-31 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146403', 'tblTempUsageDetail_20' ) end [2024-12-31 21:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:50:22] Production.INFO: ==1964== Releasing lock... [2024-12-31 21:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:50:22] Production.INFO: 39.75 MB #Memory Used# [2024-12-31 21:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:51:04 [end_date_ymd] => 2024-12-31 21:51:04 [RateCDR] => 1 ) [2024-12-31 21:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:51:04' and `end` < '2024-12-31 21:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:51:17] Production.INFO: count ==1612 [2024-12-31 21:51:17] Production.ERROR: pbx CDR StartTime 2024-12-31 18:51:04 - End Time 2024-12-31 21:51:04 [2024-12-31 21:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146408', 'tblTempUsageDetail_20' ) start [2024-12-31 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146408', 'tblTempUsageDetail_20' ) end [2024-12-31 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146408', 'tblTempVendorCDR_20' ) start [2024-12-31 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146408', 'tblTempVendorCDR_20' ) end [2024-12-31 21:51:18] Production.INFO: ProcessCDR(1,14146408,1,1,2) [2024-12-31 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146408', 'tblTempUsageDetail_20' ) start [2024-12-31 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146408', 'tblTempUsageDetail_20' ) end [2024-12-31 21:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:51:21] Production.INFO: ==2039== Releasing lock... [2024-12-31 21:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:51:21] Production.INFO: 39.75 MB #Memory Used# [2024-12-31 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:52:05 [end_date_ymd] => 2024-12-31 21:52:05 [RateCDR] => 1 ) [2024-12-31 21:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:52:05' and `end` < '2024-12-31 21:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:52:17] Production.INFO: count ==1612 [2024-12-31 21:52:18] Production.ERROR: pbx CDR StartTime 2024-12-31 18:52:05 - End Time 2024-12-31 21:52:05 [2024-12-31 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146413', 'tblTempUsageDetail_20' ) start [2024-12-31 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146413', 'tblTempUsageDetail_20' ) end [2024-12-31 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146413', 'tblTempVendorCDR_20' ) start [2024-12-31 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146413', 'tblTempVendorCDR_20' ) end [2024-12-31 21:52:18] Production.INFO: ProcessCDR(1,14146413,1,1,2) [2024-12-31 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146413', 'tblTempUsageDetail_20' ) start [2024-12-31 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146413', 'tblTempUsageDetail_20' ) end [2024-12-31 21:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:52:21] Production.INFO: ==2112== Releasing lock... [2024-12-31 21:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:52:21] Production.INFO: 39.75 MB #Memory Used# [2024-12-31 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:53:05 [end_date_ymd] => 2024-12-31 21:53:05 [RateCDR] => 1 ) [2024-12-31 21:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:53:05' and `end` < '2024-12-31 21:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:53:18] Production.INFO: count ==1610 [2024-12-31 21:53:18] Production.ERROR: pbx CDR StartTime 2024-12-31 18:53:05 - End Time 2024-12-31 21:53:05 [2024-12-31 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146418', 'tblTempUsageDetail_20' ) start [2024-12-31 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146418', 'tblTempUsageDetail_20' ) end [2024-12-31 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146418', 'tblTempVendorCDR_20' ) start [2024-12-31 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146418', 'tblTempVendorCDR_20' ) end [2024-12-31 21:53:18] Production.INFO: ProcessCDR(1,14146418,1,1,2) [2024-12-31 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146418', 'tblTempUsageDetail_20' ) start [2024-12-31 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146418', 'tblTempUsageDetail_20' ) end [2024-12-31 21:53:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:53:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:53:23] Production.INFO: ==2183== Releasing lock... [2024-12-31 21:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:53:23] Production.INFO: 39.75 MB #Memory Used# [2024-12-31 21:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:54:04 [end_date_ymd] => 2024-12-31 21:54:04 [RateCDR] => 1 ) [2024-12-31 21:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:54:04' and `end` < '2024-12-31 21:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:54:17] Production.INFO: count ==1611 [2024-12-31 21:54:17] Production.ERROR: pbx CDR StartTime 2024-12-31 18:54:04 - End Time 2024-12-31 21:54:04 [2024-12-31 21:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146423', 'tblTempUsageDetail_20' ) start [2024-12-31 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146423', 'tblTempUsageDetail_20' ) end [2024-12-31 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146423', 'tblTempVendorCDR_20' ) start [2024-12-31 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146423', 'tblTempVendorCDR_20' ) end [2024-12-31 21:54:17] Production.INFO: ProcessCDR(1,14146423,1,1,2) [2024-12-31 21:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146423', 'tblTempUsageDetail_20' ) start [2024-12-31 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146423', 'tblTempUsageDetail_20' ) end [2024-12-31 21:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:54:21] Production.INFO: ==2257== Releasing lock... [2024-12-31 21:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:54:21] Production.INFO: 39.75 MB #Memory Used# [2024-12-31 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:55:05 [end_date_ymd] => 2024-12-31 21:55:05 [RateCDR] => 1 ) [2024-12-31 21:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:55:05' and `end` < '2024-12-31 21:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:55:17] Production.INFO: count ==1610 [2024-12-31 21:55:17] Production.ERROR: pbx CDR StartTime 2024-12-31 18:55:05 - End Time 2024-12-31 21:55:05 [2024-12-31 21:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146428', 'tblTempUsageDetail_20' ) start [2024-12-31 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146428', 'tblTempUsageDetail_20' ) end [2024-12-31 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146428', 'tblTempVendorCDR_20' ) start [2024-12-31 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146428', 'tblTempVendorCDR_20' ) end [2024-12-31 21:55:17] Production.INFO: ProcessCDR(1,14146428,1,1,2) [2024-12-31 21:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146428', 'tblTempUsageDetail_20' ) start [2024-12-31 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146428', 'tblTempUsageDetail_20' ) end [2024-12-31 21:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:55:22] Production.INFO: ==2329== Releasing lock... [2024-12-31 21:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:55:22] Production.INFO: 39.75 MB #Memory Used# [2024-12-31 21:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:56:04 [end_date_ymd] => 2024-12-31 21:56:04 [RateCDR] => 1 ) [2024-12-31 21:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:56:04' and `end` < '2024-12-31 21:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:56:17] Production.INFO: count ==1611 [2024-12-31 21:56:17] Production.ERROR: pbx CDR StartTime 2024-12-31 18:56:04 - End Time 2024-12-31 21:56:04 [2024-12-31 21:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146433', 'tblTempUsageDetail_20' ) start [2024-12-31 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146433', 'tblTempUsageDetail_20' ) end [2024-12-31 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146433', 'tblTempVendorCDR_20' ) start [2024-12-31 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146433', 'tblTempVendorCDR_20' ) end [2024-12-31 21:56:17] Production.INFO: ProcessCDR(1,14146433,1,1,2) [2024-12-31 21:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146433', 'tblTempUsageDetail_20' ) start [2024-12-31 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146433', 'tblTempUsageDetail_20' ) end [2024-12-31 21:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:56:22] Production.INFO: ==2399== Releasing lock... [2024-12-31 21:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:56:22] Production.INFO: 39.75 MB #Memory Used# [2024-12-31 21:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:57:04 [end_date_ymd] => 2024-12-31 21:57:04 [RateCDR] => 1 ) [2024-12-31 21:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:57:04' and `end` < '2024-12-31 21:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:57:19] Production.INFO: count ==1616 [2024-12-31 21:57:19] Production.ERROR: pbx CDR StartTime 2024-12-31 18:57:04 - End Time 2024-12-31 21:57:04 [2024-12-31 21:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146438', 'tblTempUsageDetail_20' ) start [2024-12-31 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146438', 'tblTempUsageDetail_20' ) end [2024-12-31 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146438', 'tblTempVendorCDR_20' ) start [2024-12-31 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146438', 'tblTempVendorCDR_20' ) end [2024-12-31 21:57:19] Production.INFO: ProcessCDR(1,14146438,1,1,2) [2024-12-31 21:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146438', 'tblTempUsageDetail_20' ) start [2024-12-31 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146438', 'tblTempUsageDetail_20' ) end [2024-12-31 21:57:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:57:23] Production.INFO: ==2470== Releasing lock... [2024-12-31 21:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:57:23] Production.INFO: 39.75 MB #Memory Used# [2024-12-31 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:58:05 [end_date_ymd] => 2024-12-31 21:58:05 [RateCDR] => 1 ) [2024-12-31 21:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:58:05' and `end` < '2024-12-31 21:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:58:18] Production.INFO: count ==1615 [2024-12-31 21:58:18] Production.ERROR: pbx CDR StartTime 2024-12-31 18:58:05 - End Time 2024-12-31 21:58:05 [2024-12-31 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146443', 'tblTempUsageDetail_20' ) start [2024-12-31 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146443', 'tblTempUsageDetail_20' ) end [2024-12-31 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146443', 'tblTempVendorCDR_20' ) start [2024-12-31 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146443', 'tblTempVendorCDR_20' ) end [2024-12-31 21:58:18] Production.INFO: ProcessCDR(1,14146443,1,1,2) [2024-12-31 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146443', 'tblTempUsageDetail_20' ) start [2024-12-31 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146443', 'tblTempUsageDetail_20' ) end [2024-12-31 21:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:58:21] Production.INFO: ==2540== Releasing lock... [2024-12-31 21:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:58:21] Production.INFO: 39.75 MB #Memory Used# [2024-12-31 21:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 18:59:04 [end_date_ymd] => 2024-12-31 21:59:04 [RateCDR] => 1 ) [2024-12-31 21:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 18:59:04' and `end` < '2024-12-31 21:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 21:59:17] Production.INFO: count ==1615 [2024-12-31 21:59:17] Production.ERROR: pbx CDR StartTime 2024-12-31 18:59:04 - End Time 2024-12-31 21:59:04 [2024-12-31 21:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146448', 'tblTempUsageDetail_20' ) start [2024-12-31 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146448', 'tblTempUsageDetail_20' ) end [2024-12-31 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146448', 'tblTempVendorCDR_20' ) start [2024-12-31 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146448', 'tblTempVendorCDR_20' ) end [2024-12-31 21:59:17] Production.INFO: ProcessCDR(1,14146448,1,1,2) [2024-12-31 21:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 21:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146448', 'tblTempUsageDetail_20' ) start [2024-12-31 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146448', 'tblTempUsageDetail_20' ) end [2024-12-31 21:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 21:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 21:59:21] Production.INFO: ==2610== Releasing lock... [2024-12-31 21:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 21:59:21] Production.INFO: 39.75 MB #Memory Used# [2024-12-31 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:00:06 [end_date_ymd] => 2024-12-31 22:00:06 [RateCDR] => 1 ) [2024-12-31 22:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:00:06' and `end` < '2024-12-31 22:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:00:19] Production.INFO: count ==1613 [2024-12-31 22:00:19] Production.ERROR: pbx CDR StartTime 2024-12-31 19:00:06 - End Time 2024-12-31 22:00:06 [2024-12-31 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146454', 'tblTempUsageDetail_20' ) start [2024-12-31 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146454', 'tblTempUsageDetail_20' ) end [2024-12-31 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146454', 'tblTempVendorCDR_20' ) start [2024-12-31 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146454', 'tblTempVendorCDR_20' ) end [2024-12-31 22:00:19] Production.INFO: ProcessCDR(1,14146454,1,1,2) [2024-12-31 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146454', 'tblTempUsageDetail_20' ) start [2024-12-31 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146454', 'tblTempUsageDetail_20' ) end [2024-12-31 22:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:00:22] Production.INFO: ==2688== Releasing lock... [2024-12-31 22:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:00:22] Production.INFO: 39.75 MB #Memory Used# [2024-12-31 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:01:05 [end_date_ymd] => 2024-12-31 22:01:05 [RateCDR] => 1 ) [2024-12-31 22:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:01:05' and `end` < '2024-12-31 22:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:01:17] Production.INFO: count ==1580 [2024-12-31 22:01:17] Production.ERROR: pbx CDR StartTime 2024-12-31 19:01:05 - End Time 2024-12-31 22:01:05 [2024-12-31 22:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146459', 'tblTempUsageDetail_20' ) start [2024-12-31 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146459', 'tblTempUsageDetail_20' ) end [2024-12-31 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146459', 'tblTempVendorCDR_20' ) start [2024-12-31 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146459', 'tblTempVendorCDR_20' ) end [2024-12-31 22:01:17] Production.INFO: ProcessCDR(1,14146459,1,1,2) [2024-12-31 22:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146459', 'tblTempUsageDetail_20' ) start [2024-12-31 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146459', 'tblTempUsageDetail_20' ) end [2024-12-31 22:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:01:21] Production.INFO: ==2772== Releasing lock... [2024-12-31 22:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:01:21] Production.INFO: 39.5 MB #Memory Used# [2024-12-31 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:02:05 [end_date_ymd] => 2024-12-31 22:02:05 [RateCDR] => 1 ) [2024-12-31 22:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:02:05' and `end` < '2024-12-31 22:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:02:20] Production.INFO: count ==1572 [2024-12-31 22:02:20] Production.ERROR: pbx CDR StartTime 2024-12-31 19:02:05 - End Time 2024-12-31 22:02:05 [2024-12-31 22:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146464', 'tblTempUsageDetail_20' ) start [2024-12-31 22:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146464', 'tblTempUsageDetail_20' ) end [2024-12-31 22:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146464', 'tblTempVendorCDR_20' ) start [2024-12-31 22:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146464', 'tblTempVendorCDR_20' ) end [2024-12-31 22:02:20] Production.INFO: ProcessCDR(1,14146464,1,1,2) [2024-12-31 22:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146464', 'tblTempUsageDetail_20' ) start [2024-12-31 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146464', 'tblTempUsageDetail_20' ) end [2024-12-31 22:02:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:02:23] Production.INFO: ==2882== Releasing lock... [2024-12-31 22:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:02:23] Production.INFO: 39.25 MB #Memory Used# [2024-12-31 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:03:05 [end_date_ymd] => 2024-12-31 22:03:05 [RateCDR] => 1 ) [2024-12-31 22:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:03:05' and `end` < '2024-12-31 22:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:03:17] Production.INFO: count ==1567 [2024-12-31 22:03:17] Production.ERROR: pbx CDR StartTime 2024-12-31 19:03:05 - End Time 2024-12-31 22:03:05 [2024-12-31 22:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146469', 'tblTempUsageDetail_20' ) start [2024-12-31 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146469', 'tblTempUsageDetail_20' ) end [2024-12-31 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146469', 'tblTempVendorCDR_20' ) start [2024-12-31 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146469', 'tblTempVendorCDR_20' ) end [2024-12-31 22:03:17] Production.INFO: ProcessCDR(1,14146469,1,1,2) [2024-12-31 22:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146469', 'tblTempUsageDetail_20' ) start [2024-12-31 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146469', 'tblTempUsageDetail_20' ) end [2024-12-31 22:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:03:21] Production.INFO: ==2958== Releasing lock... [2024-12-31 22:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:03:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-31 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:04:05 [end_date_ymd] => 2024-12-31 22:04:05 [RateCDR] => 1 ) [2024-12-31 22:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:04:05' and `end` < '2024-12-31 22:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:04:18] Production.INFO: count ==1563 [2024-12-31 22:04:18] Production.ERROR: pbx CDR StartTime 2024-12-31 19:04:05 - End Time 2024-12-31 22:04:05 [2024-12-31 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146474', 'tblTempUsageDetail_20' ) start [2024-12-31 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146474', 'tblTempUsageDetail_20' ) end [2024-12-31 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146474', 'tblTempVendorCDR_20' ) start [2024-12-31 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146474', 'tblTempVendorCDR_20' ) end [2024-12-31 22:04:18] Production.INFO: ProcessCDR(1,14146474,1,1,2) [2024-12-31 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146474', 'tblTempUsageDetail_20' ) start [2024-12-31 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146474', 'tblTempUsageDetail_20' ) end [2024-12-31 22:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:04:22] Production.INFO: ==3031== Releasing lock... [2024-12-31 22:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:04:22] Production.INFO: 39.25 MB #Memory Used# [2024-12-31 22:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:05:04 [end_date_ymd] => 2024-12-31 22:05:04 [RateCDR] => 1 ) [2024-12-31 22:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:05:04' and `end` < '2024-12-31 22:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:05:17] Production.INFO: count ==1560 [2024-12-31 22:05:17] Production.ERROR: pbx CDR StartTime 2024-12-31 19:05:04 - End Time 2024-12-31 22:05:04 [2024-12-31 22:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146479', 'tblTempUsageDetail_20' ) start [2024-12-31 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146479', 'tblTempUsageDetail_20' ) end [2024-12-31 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146479', 'tblTempVendorCDR_20' ) start [2024-12-31 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146479', 'tblTempVendorCDR_20' ) end [2024-12-31 22:05:17] Production.INFO: ProcessCDR(1,14146479,1,1,2) [2024-12-31 22:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146479', 'tblTempUsageDetail_20' ) start [2024-12-31 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146479', 'tblTempUsageDetail_20' ) end [2024-12-31 22:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:05:22] Production.INFO: ==3103== Releasing lock... [2024-12-31 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:05:22] Production.INFO: 39.25 MB #Memory Used# [2024-12-31 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:06:05 [end_date_ymd] => 2024-12-31 22:06:05 [RateCDR] => 1 ) [2024-12-31 22:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:06:05' and `end` < '2024-12-31 22:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:06:17] Production.INFO: count ==1559 [2024-12-31 22:06:18] Production.ERROR: pbx CDR StartTime 2024-12-31 19:06:05 - End Time 2024-12-31 22:06:05 [2024-12-31 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146484', 'tblTempUsageDetail_20' ) start [2024-12-31 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146484', 'tblTempUsageDetail_20' ) end [2024-12-31 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146484', 'tblTempVendorCDR_20' ) start [2024-12-31 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146484', 'tblTempVendorCDR_20' ) end [2024-12-31 22:06:18] Production.INFO: ProcessCDR(1,14146484,1,1,2) [2024-12-31 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146484', 'tblTempUsageDetail_20' ) start [2024-12-31 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146484', 'tblTempUsageDetail_20' ) end [2024-12-31 22:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:06:21] Production.INFO: ==3175== Releasing lock... [2024-12-31 22:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:06:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-31 22:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:07:04 [end_date_ymd] => 2024-12-31 22:07:04 [RateCDR] => 1 ) [2024-12-31 22:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:07:04' and `end` < '2024-12-31 22:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:07:17] Production.INFO: count ==1562 [2024-12-31 22:07:17] Production.ERROR: pbx CDR StartTime 2024-12-31 19:07:04 - End Time 2024-12-31 22:07:04 [2024-12-31 22:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146489', 'tblTempUsageDetail_20' ) start [2024-12-31 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146489', 'tblTempUsageDetail_20' ) end [2024-12-31 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146489', 'tblTempVendorCDR_20' ) start [2024-12-31 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146489', 'tblTempVendorCDR_20' ) end [2024-12-31 22:07:17] Production.INFO: ProcessCDR(1,14146489,1,1,2) [2024-12-31 22:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146489', 'tblTempUsageDetail_20' ) start [2024-12-31 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146489', 'tblTempUsageDetail_20' ) end [2024-12-31 22:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:07:22] Production.INFO: ==3244== Releasing lock... [2024-12-31 22:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:07:22] Production.INFO: 39.25 MB #Memory Used# [2024-12-31 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:08:05 [end_date_ymd] => 2024-12-31 22:08:05 [RateCDR] => 1 ) [2024-12-31 22:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:08:05' and `end` < '2024-12-31 22:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:08:18] Production.INFO: count ==1557 [2024-12-31 22:08:18] Production.ERROR: pbx CDR StartTime 2024-12-31 19:08:05 - End Time 2024-12-31 22:08:05 [2024-12-31 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146494', 'tblTempUsageDetail_20' ) start [2024-12-31 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146494', 'tblTempUsageDetail_20' ) end [2024-12-31 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146494', 'tblTempVendorCDR_20' ) start [2024-12-31 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146494', 'tblTempVendorCDR_20' ) end [2024-12-31 22:08:18] Production.INFO: ProcessCDR(1,14146494,1,1,2) [2024-12-31 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146494', 'tblTempUsageDetail_20' ) start [2024-12-31 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146494', 'tblTempUsageDetail_20' ) end [2024-12-31 22:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:08:21] Production.INFO: ==3315== Releasing lock... [2024-12-31 22:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:08:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-31 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:09:05 [end_date_ymd] => 2024-12-31 22:09:05 [RateCDR] => 1 ) [2024-12-31 22:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:09:05' and `end` < '2024-12-31 22:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:09:19] Production.INFO: count ==1553 [2024-12-31 22:09:19] Production.ERROR: pbx CDR StartTime 2024-12-31 19:09:05 - End Time 2024-12-31 22:09:05 [2024-12-31 22:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146499', 'tblTempUsageDetail_20' ) start [2024-12-31 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146499', 'tblTempUsageDetail_20' ) end [2024-12-31 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146499', 'tblTempVendorCDR_20' ) start [2024-12-31 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146499', 'tblTempVendorCDR_20' ) end [2024-12-31 22:09:19] Production.INFO: ProcessCDR(1,14146499,1,1,2) [2024-12-31 22:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146499', 'tblTempUsageDetail_20' ) start [2024-12-31 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146499', 'tblTempUsageDetail_20' ) end [2024-12-31 22:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:09:22] Production.INFO: ==3387== Releasing lock... [2024-12-31 22:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:09:22] Production.INFO: 39.25 MB #Memory Used# [2024-12-31 22:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:10:05 [end_date_ymd] => 2024-12-31 22:10:05 [RateCDR] => 1 ) [2024-12-31 22:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:10:05' and `end` < '2024-12-31 22:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:10:18] Production.INFO: count ==1550 [2024-12-31 22:10:18] Production.ERROR: pbx CDR StartTime 2024-12-31 19:10:05 - End Time 2024-12-31 22:10:05 [2024-12-31 22:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146505', 'tblTempUsageDetail_20' ) start [2024-12-31 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146505', 'tblTempUsageDetail_20' ) end [2024-12-31 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146505', 'tblTempVendorCDR_20' ) start [2024-12-31 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146505', 'tblTempVendorCDR_20' ) end [2024-12-31 22:10:18] Production.INFO: ProcessCDR(1,14146505,1,1,2) [2024-12-31 22:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146505', 'tblTempUsageDetail_20' ) start [2024-12-31 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146505', 'tblTempUsageDetail_20' ) end [2024-12-31 22:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:10:21] Production.INFO: ==3460== Releasing lock... [2024-12-31 22:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:10:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-31 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:11:05 [end_date_ymd] => 2024-12-31 22:11:05 [RateCDR] => 1 ) [2024-12-31 22:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:11:05' and `end` < '2024-12-31 22:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:11:18] Production.INFO: count ==1495 [2024-12-31 22:11:18] Production.ERROR: pbx CDR StartTime 2024-12-31 19:11:05 - End Time 2024-12-31 22:11:05 [2024-12-31 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146510', 'tblTempUsageDetail_20' ) start [2024-12-31 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146510', 'tblTempUsageDetail_20' ) end [2024-12-31 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146510', 'tblTempVendorCDR_20' ) start [2024-12-31 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146510', 'tblTempVendorCDR_20' ) end [2024-12-31 22:11:18] Production.INFO: ProcessCDR(1,14146510,1,1,2) [2024-12-31 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146510', 'tblTempUsageDetail_20' ) start [2024-12-31 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146510', 'tblTempUsageDetail_20' ) end [2024-12-31 22:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:11:21] Production.INFO: ==3535== Releasing lock... [2024-12-31 22:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:11:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-31 22:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:12:04 [end_date_ymd] => 2024-12-31 22:12:04 [RateCDR] => 1 ) [2024-12-31 22:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:12:04' and `end` < '2024-12-31 22:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:12:17] Production.INFO: count ==1491 [2024-12-31 22:12:17] Production.ERROR: pbx CDR StartTime 2024-12-31 19:12:04 - End Time 2024-12-31 22:12:04 [2024-12-31 22:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146515', 'tblTempUsageDetail_20' ) start [2024-12-31 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146515', 'tblTempUsageDetail_20' ) end [2024-12-31 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146515', 'tblTempVendorCDR_20' ) start [2024-12-31 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146515', 'tblTempVendorCDR_20' ) end [2024-12-31 22:12:17] Production.INFO: ProcessCDR(1,14146515,1,1,2) [2024-12-31 22:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146515', 'tblTempUsageDetail_20' ) start [2024-12-31 22:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146515', 'tblTempUsageDetail_20' ) end [2024-12-31 22:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:12:20] Production.INFO: ==3604== Releasing lock... [2024-12-31 22:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:12:20] Production.INFO: 38.75 MB #Memory Used# [2024-12-31 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:13:05 [end_date_ymd] => 2024-12-31 22:13:05 [RateCDR] => 1 ) [2024-12-31 22:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:13:05' and `end` < '2024-12-31 22:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:13:18] Production.INFO: count ==1487 [2024-12-31 22:13:18] Production.ERROR: pbx CDR StartTime 2024-12-31 19:13:05 - End Time 2024-12-31 22:13:05 [2024-12-31 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146520', 'tblTempUsageDetail_20' ) start [2024-12-31 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146520', 'tblTempUsageDetail_20' ) end [2024-12-31 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146520', 'tblTempVendorCDR_20' ) start [2024-12-31 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146520', 'tblTempVendorCDR_20' ) end [2024-12-31 22:13:18] Production.INFO: ProcessCDR(1,14146520,1,1,2) [2024-12-31 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146520', 'tblTempUsageDetail_20' ) start [2024-12-31 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146520', 'tblTempUsageDetail_20' ) end [2024-12-31 22:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:13:22] Production.INFO: ==3675== Releasing lock... [2024-12-31 22:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:13:22] Production.INFO: 39 MB #Memory Used# [2024-12-31 22:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:14:04 [end_date_ymd] => 2024-12-31 22:14:04 [RateCDR] => 1 ) [2024-12-31 22:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:14:04' and `end` < '2024-12-31 22:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:14:18] Production.INFO: count ==1485 [2024-12-31 22:14:18] Production.ERROR: pbx CDR StartTime 2024-12-31 19:14:04 - End Time 2024-12-31 22:14:04 [2024-12-31 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146525', 'tblTempUsageDetail_20' ) start [2024-12-31 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146525', 'tblTempUsageDetail_20' ) end [2024-12-31 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146525', 'tblTempVendorCDR_20' ) start [2024-12-31 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146525', 'tblTempVendorCDR_20' ) end [2024-12-31 22:14:18] Production.INFO: ProcessCDR(1,14146525,1,1,2) [2024-12-31 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146525', 'tblTempUsageDetail_20' ) start [2024-12-31 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146525', 'tblTempUsageDetail_20' ) end [2024-12-31 22:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:14:21] Production.INFO: ==3780== Releasing lock... [2024-12-31 22:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:14:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-31 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:15:05 [end_date_ymd] => 2024-12-31 22:15:05 [RateCDR] => 1 ) [2024-12-31 22:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:15:05' and `end` < '2024-12-31 22:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:15:17] Production.INFO: count ==1475 [2024-12-31 22:15:18] Production.ERROR: pbx CDR StartTime 2024-12-31 19:15:05 - End Time 2024-12-31 22:15:05 [2024-12-31 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146530', 'tblTempUsageDetail_20' ) start [2024-12-31 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146530', 'tblTempUsageDetail_20' ) end [2024-12-31 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146530', 'tblTempVendorCDR_20' ) start [2024-12-31 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146530', 'tblTempVendorCDR_20' ) end [2024-12-31 22:15:18] Production.INFO: ProcessCDR(1,14146530,1,1,2) [2024-12-31 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146530', 'tblTempUsageDetail_20' ) start [2024-12-31 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146530', 'tblTempUsageDetail_20' ) end [2024-12-31 22:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:15:21] Production.INFO: ==3867== Releasing lock... [2024-12-31 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:15:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-31 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:16:05 [end_date_ymd] => 2024-12-31 22:16:05 [RateCDR] => 1 ) [2024-12-31 22:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:16:05' and `end` < '2024-12-31 22:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:16:17] Production.INFO: count ==1480 [2024-12-31 22:16:18] Production.ERROR: pbx CDR StartTime 2024-12-31 19:16:05 - End Time 2024-12-31 22:16:05 [2024-12-31 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146535', 'tblTempUsageDetail_20' ) start [2024-12-31 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146535', 'tblTempUsageDetail_20' ) end [2024-12-31 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146535', 'tblTempVendorCDR_20' ) start [2024-12-31 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146535', 'tblTempVendorCDR_20' ) end [2024-12-31 22:16:18] Production.INFO: ProcessCDR(1,14146535,1,1,2) [2024-12-31 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146535', 'tblTempUsageDetail_20' ) start [2024-12-31 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146535', 'tblTempUsageDetail_20' ) end [2024-12-31 22:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:16:21] Production.INFO: ==3964== Releasing lock... [2024-12-31 22:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:16:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-31 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:17:05 [end_date_ymd] => 2024-12-31 22:17:05 [RateCDR] => 1 ) [2024-12-31 22:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:17:05' and `end` < '2024-12-31 22:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:17:18] Production.INFO: count ==1481 [2024-12-31 22:17:18] Production.ERROR: pbx CDR StartTime 2024-12-31 19:17:05 - End Time 2024-12-31 22:17:05 [2024-12-31 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146540', 'tblTempUsageDetail_20' ) start [2024-12-31 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146540', 'tblTempUsageDetail_20' ) end [2024-12-31 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146540', 'tblTempVendorCDR_20' ) start [2024-12-31 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146540', 'tblTempVendorCDR_20' ) end [2024-12-31 22:17:18] Production.INFO: ProcessCDR(1,14146540,1,1,2) [2024-12-31 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146540', 'tblTempUsageDetail_20' ) start [2024-12-31 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146540', 'tblTempUsageDetail_20' ) end [2024-12-31 22:17:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:17:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:17:23] Production.INFO: ==4037== Releasing lock... [2024-12-31 22:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:17:23] Production.INFO: 38.75 MB #Memory Used# [2024-12-31 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:18:05 [end_date_ymd] => 2024-12-31 22:18:05 [RateCDR] => 1 ) [2024-12-31 22:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:18:05' and `end` < '2024-12-31 22:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:18:17] Production.INFO: count ==1479 [2024-12-31 22:18:17] Production.ERROR: pbx CDR StartTime 2024-12-31 19:18:05 - End Time 2024-12-31 22:18:05 [2024-12-31 22:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146545', 'tblTempUsageDetail_20' ) start [2024-12-31 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146545', 'tblTempUsageDetail_20' ) end [2024-12-31 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146545', 'tblTempVendorCDR_20' ) start [2024-12-31 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146545', 'tblTempVendorCDR_20' ) end [2024-12-31 22:18:18] Production.INFO: ProcessCDR(1,14146545,1,1,2) [2024-12-31 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146545', 'tblTempUsageDetail_20' ) start [2024-12-31 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146545', 'tblTempUsageDetail_20' ) end [2024-12-31 22:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:18:21] Production.INFO: ==4147== Releasing lock... [2024-12-31 22:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:18:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-31 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:19:05 [end_date_ymd] => 2024-12-31 22:19:05 [RateCDR] => 1 ) [2024-12-31 22:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:19:05' and `end` < '2024-12-31 22:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:19:17] Production.INFO: count ==1479 [2024-12-31 22:19:18] Production.ERROR: pbx CDR StartTime 2024-12-31 19:19:05 - End Time 2024-12-31 22:19:05 [2024-12-31 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146550', 'tblTempUsageDetail_20' ) start [2024-12-31 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146550', 'tblTempUsageDetail_20' ) end [2024-12-31 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146550', 'tblTempVendorCDR_20' ) start [2024-12-31 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146550', 'tblTempVendorCDR_20' ) end [2024-12-31 22:19:18] Production.INFO: ProcessCDR(1,14146550,1,1,2) [2024-12-31 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146550', 'tblTempUsageDetail_20' ) start [2024-12-31 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146550', 'tblTempUsageDetail_20' ) end [2024-12-31 22:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:19:21] Production.INFO: ==4218== Releasing lock... [2024-12-31 22:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:19:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-31 22:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:20:05 [end_date_ymd] => 2024-12-31 22:20:05 [RateCDR] => 1 ) [2024-12-31 22:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:20:05' and `end` < '2024-12-31 22:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:20:18] Production.INFO: count ==1479 [2024-12-31 22:20:18] Production.ERROR: pbx CDR StartTime 2024-12-31 19:20:05 - End Time 2024-12-31 22:20:05 [2024-12-31 22:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146556', 'tblTempUsageDetail_20' ) start [2024-12-31 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146556', 'tblTempUsageDetail_20' ) end [2024-12-31 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146556', 'tblTempVendorCDR_20' ) start [2024-12-31 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146556', 'tblTempVendorCDR_20' ) end [2024-12-31 22:20:18] Production.INFO: ProcessCDR(1,14146556,1,1,2) [2024-12-31 22:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146556', 'tblTempUsageDetail_20' ) start [2024-12-31 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146556', 'tblTempUsageDetail_20' ) end [2024-12-31 22:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:20:21] Production.INFO: ==4291== Releasing lock... [2024-12-31 22:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:20:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-31 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:21:05 [end_date_ymd] => 2024-12-31 22:21:05 [RateCDR] => 1 ) [2024-12-31 22:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:21:05' and `end` < '2024-12-31 22:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:21:19] Production.INFO: count ==1462 [2024-12-31 22:21:19] Production.ERROR: pbx CDR StartTime 2024-12-31 19:21:05 - End Time 2024-12-31 22:21:05 [2024-12-31 22:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146561', 'tblTempUsageDetail_20' ) start [2024-12-31 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146561', 'tblTempUsageDetail_20' ) end [2024-12-31 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146561', 'tblTempVendorCDR_20' ) start [2024-12-31 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146561', 'tblTempVendorCDR_20' ) end [2024-12-31 22:21:19] Production.INFO: ProcessCDR(1,14146561,1,1,2) [2024-12-31 22:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146561', 'tblTempUsageDetail_20' ) start [2024-12-31 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146561', 'tblTempUsageDetail_20' ) end [2024-12-31 22:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:21:22] Production.INFO: ==4366== Releasing lock... [2024-12-31 22:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:21:22] Production.INFO: 38.5 MB #Memory Used# [2024-12-31 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:22:05 [end_date_ymd] => 2024-12-31 22:22:05 [RateCDR] => 1 ) [2024-12-31 22:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:22:05' and `end` < '2024-12-31 22:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:22:18] Production.INFO: count ==1460 [2024-12-31 22:22:18] Production.ERROR: pbx CDR StartTime 2024-12-31 19:22:05 - End Time 2024-12-31 22:22:05 [2024-12-31 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146566', 'tblTempUsageDetail_20' ) start [2024-12-31 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146566', 'tblTempUsageDetail_20' ) end [2024-12-31 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146566', 'tblTempVendorCDR_20' ) start [2024-12-31 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146566', 'tblTempVendorCDR_20' ) end [2024-12-31 22:22:18] Production.INFO: ProcessCDR(1,14146566,1,1,2) [2024-12-31 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146566', 'tblTempUsageDetail_20' ) start [2024-12-31 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146566', 'tblTempUsageDetail_20' ) end [2024-12-31 22:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:22:21] Production.INFO: ==4437== Releasing lock... [2024-12-31 22:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:22:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-31 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:23:05 [end_date_ymd] => 2024-12-31 22:23:05 [RateCDR] => 1 ) [2024-12-31 22:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:23:05' and `end` < '2024-12-31 22:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:23:17] Production.INFO: count ==1462 [2024-12-31 22:23:18] Production.ERROR: pbx CDR StartTime 2024-12-31 19:23:05 - End Time 2024-12-31 22:23:05 [2024-12-31 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146571', 'tblTempUsageDetail_20' ) start [2024-12-31 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146571', 'tblTempUsageDetail_20' ) end [2024-12-31 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146571', 'tblTempVendorCDR_20' ) start [2024-12-31 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146571', 'tblTempVendorCDR_20' ) end [2024-12-31 22:23:18] Production.INFO: ProcessCDR(1,14146571,1,1,2) [2024-12-31 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146571', 'tblTempUsageDetail_20' ) start [2024-12-31 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146571', 'tblTempUsageDetail_20' ) end [2024-12-31 22:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:23:22] Production.INFO: ==4506== Releasing lock... [2024-12-31 22:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:23:22] Production.INFO: 38.5 MB #Memory Used# [2024-12-31 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:24:05 [end_date_ymd] => 2024-12-31 22:24:05 [RateCDR] => 1 ) [2024-12-31 22:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:24:05' and `end` < '2024-12-31 22:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:24:19] Production.INFO: count ==1464 [2024-12-31 22:24:19] Production.ERROR: pbx CDR StartTime 2024-12-31 19:24:05 - End Time 2024-12-31 22:24:05 [2024-12-31 22:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146576', 'tblTempUsageDetail_20' ) start [2024-12-31 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146576', 'tblTempUsageDetail_20' ) end [2024-12-31 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146576', 'tblTempVendorCDR_20' ) start [2024-12-31 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146576', 'tblTempVendorCDR_20' ) end [2024-12-31 22:24:19] Production.INFO: ProcessCDR(1,14146576,1,1,2) [2024-12-31 22:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146576', 'tblTempUsageDetail_20' ) start [2024-12-31 22:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146576', 'tblTempUsageDetail_20' ) end [2024-12-31 22:24:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:24:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:24:23] Production.INFO: ==4583== Releasing lock... [2024-12-31 22:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:24:23] Production.INFO: 38.5 MB #Memory Used# [2024-12-31 22:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:25:04 [end_date_ymd] => 2024-12-31 22:25:04 [RateCDR] => 1 ) [2024-12-31 22:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:25:04' and `end` < '2024-12-31 22:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:25:18] Production.INFO: count ==1464 [2024-12-31 22:25:18] Production.ERROR: pbx CDR StartTime 2024-12-31 19:25:04 - End Time 2024-12-31 22:25:04 [2024-12-31 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146581', 'tblTempUsageDetail_20' ) start [2024-12-31 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146581', 'tblTempUsageDetail_20' ) end [2024-12-31 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146581', 'tblTempVendorCDR_20' ) start [2024-12-31 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146581', 'tblTempVendorCDR_20' ) end [2024-12-31 22:25:18] Production.INFO: ProcessCDR(1,14146581,1,1,2) [2024-12-31 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146581', 'tblTempUsageDetail_20' ) start [2024-12-31 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146581', 'tblTempUsageDetail_20' ) end [2024-12-31 22:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:25:21] Production.INFO: ==4656== Releasing lock... [2024-12-31 22:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:25:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-31 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:26:05 [end_date_ymd] => 2024-12-31 22:26:05 [RateCDR] => 1 ) [2024-12-31 22:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:26:05' and `end` < '2024-12-31 22:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:26:18] Production.INFO: count ==1464 [2024-12-31 22:26:18] Production.ERROR: pbx CDR StartTime 2024-12-31 19:26:05 - End Time 2024-12-31 22:26:05 [2024-12-31 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146586', 'tblTempUsageDetail_20' ) start [2024-12-31 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146586', 'tblTempUsageDetail_20' ) end [2024-12-31 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146586', 'tblTempVendorCDR_20' ) start [2024-12-31 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146586', 'tblTempVendorCDR_20' ) end [2024-12-31 22:26:18] Production.INFO: ProcessCDR(1,14146586,1,1,2) [2024-12-31 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146586', 'tblTempUsageDetail_20' ) start [2024-12-31 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146586', 'tblTempUsageDetail_20' ) end [2024-12-31 22:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:26:21] Production.INFO: ==4726== Releasing lock... [2024-12-31 22:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:26:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-31 22:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:27:04 [end_date_ymd] => 2024-12-31 22:27:04 [RateCDR] => 1 ) [2024-12-31 22:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:27:04' and `end` < '2024-12-31 22:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:27:17] Production.INFO: count ==1465 [2024-12-31 22:27:17] Production.ERROR: pbx CDR StartTime 2024-12-31 19:27:04 - End Time 2024-12-31 22:27:04 [2024-12-31 22:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146591', 'tblTempUsageDetail_20' ) start [2024-12-31 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146591', 'tblTempUsageDetail_20' ) end [2024-12-31 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146591', 'tblTempVendorCDR_20' ) start [2024-12-31 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146591', 'tblTempVendorCDR_20' ) end [2024-12-31 22:27:17] Production.INFO: ProcessCDR(1,14146591,1,1,2) [2024-12-31 22:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146591', 'tblTempUsageDetail_20' ) start [2024-12-31 22:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146591', 'tblTempUsageDetail_20' ) end [2024-12-31 22:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:27:20] Production.INFO: ==4799== Releasing lock... [2024-12-31 22:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:27:20] Production.INFO: 38.75 MB #Memory Used# [2024-12-31 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:28:05 [end_date_ymd] => 2024-12-31 22:28:05 [RateCDR] => 1 ) [2024-12-31 22:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:28:05' and `end` < '2024-12-31 22:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:28:18] Production.INFO: count ==1468 [2024-12-31 22:28:18] Production.ERROR: pbx CDR StartTime 2024-12-31 19:28:05 - End Time 2024-12-31 22:28:05 [2024-12-31 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146596', 'tblTempUsageDetail_20' ) start [2024-12-31 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146596', 'tblTempUsageDetail_20' ) end [2024-12-31 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146596', 'tblTempVendorCDR_20' ) start [2024-12-31 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146596', 'tblTempVendorCDR_20' ) end [2024-12-31 22:28:18] Production.INFO: ProcessCDR(1,14146596,1,1,2) [2024-12-31 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146596', 'tblTempUsageDetail_20' ) start [2024-12-31 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146596', 'tblTempUsageDetail_20' ) end [2024-12-31 22:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:28:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:28:23] Production.INFO: ==4870== Releasing lock... [2024-12-31 22:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:28:23] Production.INFO: 38.75 MB #Memory Used# [2024-12-31 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:29:04 [end_date_ymd] => 2024-12-31 22:29:04 [RateCDR] => 1 ) [2024-12-31 22:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:29:04' and `end` < '2024-12-31 22:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:29:17] Production.INFO: count ==1462 [2024-12-31 22:29:17] Production.ERROR: pbx CDR StartTime 2024-12-31 19:29:04 - End Time 2024-12-31 22:29:04 [2024-12-31 22:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146601', 'tblTempUsageDetail_20' ) start [2024-12-31 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146601', 'tblTempUsageDetail_20' ) end [2024-12-31 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146601', 'tblTempVendorCDR_20' ) start [2024-12-31 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146601', 'tblTempVendorCDR_20' ) end [2024-12-31 22:29:17] Production.INFO: ProcessCDR(1,14146601,1,1,2) [2024-12-31 22:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146601', 'tblTempUsageDetail_20' ) start [2024-12-31 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146601', 'tblTempUsageDetail_20' ) end [2024-12-31 22:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:29:21] Production.INFO: ==4940== Releasing lock... [2024-12-31 22:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:29:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-31 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:30:06 [end_date_ymd] => 2024-12-31 22:30:06 [RateCDR] => 1 ) [2024-12-31 22:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:30:06' and `end` < '2024-12-31 22:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:30:19] Production.INFO: count ==1462 [2024-12-31 22:30:19] Production.ERROR: pbx CDR StartTime 2024-12-31 19:30:06 - End Time 2024-12-31 22:30:06 [2024-12-31 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146607', 'tblTempUsageDetail_20' ) start [2024-12-31 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146607', 'tblTempUsageDetail_20' ) end [2024-12-31 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146607', 'tblTempVendorCDR_20' ) start [2024-12-31 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146607', 'tblTempVendorCDR_20' ) end [2024-12-31 22:30:19] Production.INFO: ProcessCDR(1,14146607,1,1,2) [2024-12-31 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146607', 'tblTempUsageDetail_20' ) start [2024-12-31 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146607', 'tblTempUsageDetail_20' ) end [2024-12-31 22:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:30:22] Production.INFO: ==5012== Releasing lock... [2024-12-31 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:30:22] Production.INFO: 38.5 MB #Memory Used# [2024-12-31 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:31:05 [end_date_ymd] => 2024-12-31 22:31:05 [RateCDR] => 1 ) [2024-12-31 22:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:31:05' and `end` < '2024-12-31 22:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:31:18] Production.INFO: count ==1449 [2024-12-31 22:31:18] Production.ERROR: pbx CDR StartTime 2024-12-31 19:31:05 - End Time 2024-12-31 22:31:05 [2024-12-31 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146612', 'tblTempUsageDetail_20' ) start [2024-12-31 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146612', 'tblTempUsageDetail_20' ) end [2024-12-31 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146612', 'tblTempVendorCDR_20' ) start [2024-12-31 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146612', 'tblTempVendorCDR_20' ) end [2024-12-31 22:31:18] Production.INFO: ProcessCDR(1,14146612,1,1,2) [2024-12-31 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146612', 'tblTempUsageDetail_20' ) start [2024-12-31 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146612', 'tblTempUsageDetail_20' ) end [2024-12-31 22:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:31:22] Production.INFO: ==5085== Releasing lock... [2024-12-31 22:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:31:22] Production.INFO: 38.5 MB #Memory Used# [2024-12-31 22:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:32:04 [end_date_ymd] => 2024-12-31 22:32:04 [RateCDR] => 1 ) [2024-12-31 22:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:32:04' and `end` < '2024-12-31 22:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:32:19] Production.INFO: count ==1450 [2024-12-31 22:32:19] Production.ERROR: pbx CDR StartTime 2024-12-31 19:32:04 - End Time 2024-12-31 22:32:04 [2024-12-31 22:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146617', 'tblTempUsageDetail_20' ) start [2024-12-31 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146617', 'tblTempUsageDetail_20' ) end [2024-12-31 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146617', 'tblTempVendorCDR_20' ) start [2024-12-31 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146617', 'tblTempVendorCDR_20' ) end [2024-12-31 22:32:19] Production.INFO: ProcessCDR(1,14146617,1,1,2) [2024-12-31 22:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146617', 'tblTempUsageDetail_20' ) start [2024-12-31 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146617', 'tblTempUsageDetail_20' ) end [2024-12-31 22:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:32:22] Production.INFO: ==5160== Releasing lock... [2024-12-31 22:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:32:22] Production.INFO: 38.5 MB #Memory Used# [2024-12-31 22:33:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:33:06 [end_date_ymd] => 2024-12-31 22:33:06 [RateCDR] => 1 ) [2024-12-31 22:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:33:06' and `end` < '2024-12-31 22:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:33:19] Production.INFO: count ==1449 [2024-12-31 22:33:19] Production.ERROR: pbx CDR StartTime 2024-12-31 19:33:06 - End Time 2024-12-31 22:33:06 [2024-12-31 22:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146622', 'tblTempUsageDetail_20' ) start [2024-12-31 22:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146622', 'tblTempUsageDetail_20' ) end [2024-12-31 22:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146622', 'tblTempVendorCDR_20' ) start [2024-12-31 22:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146622', 'tblTempVendorCDR_20' ) end [2024-12-31 22:33:20] Production.INFO: ProcessCDR(1,14146622,1,1,2) [2024-12-31 22:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146622', 'tblTempUsageDetail_20' ) start [2024-12-31 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146622', 'tblTempUsageDetail_20' ) end [2024-12-31 22:33:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:33:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:33:23] Production.INFO: ==5235== Releasing lock... [2024-12-31 22:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:33:23] Production.INFO: 38.5 MB #Memory Used# [2024-12-31 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:34:05 [end_date_ymd] => 2024-12-31 22:34:05 [RateCDR] => 1 ) [2024-12-31 22:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:34:05' and `end` < '2024-12-31 22:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:34:18] Production.INFO: count ==1450 [2024-12-31 22:34:18] Production.ERROR: pbx CDR StartTime 2024-12-31 19:34:05 - End Time 2024-12-31 22:34:05 [2024-12-31 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146627', 'tblTempUsageDetail_20' ) start [2024-12-31 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146627', 'tblTempUsageDetail_20' ) end [2024-12-31 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146627', 'tblTempVendorCDR_20' ) start [2024-12-31 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146627', 'tblTempVendorCDR_20' ) end [2024-12-31 22:34:18] Production.INFO: ProcessCDR(1,14146627,1,1,2) [2024-12-31 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146627', 'tblTempUsageDetail_20' ) start [2024-12-31 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146627', 'tblTempUsageDetail_20' ) end [2024-12-31 22:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:34:21] Production.INFO: ==5343== Releasing lock... [2024-12-31 22:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:34:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-31 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:35:05 [end_date_ymd] => 2024-12-31 22:35:05 [RateCDR] => 1 ) [2024-12-31 22:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:35:05' and `end` < '2024-12-31 22:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:35:18] Production.INFO: count ==1450 [2024-12-31 22:35:18] Production.ERROR: pbx CDR StartTime 2024-12-31 19:35:05 - End Time 2024-12-31 22:35:05 [2024-12-31 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146632', 'tblTempUsageDetail_20' ) start [2024-12-31 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146632', 'tblTempUsageDetail_20' ) end [2024-12-31 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146632', 'tblTempVendorCDR_20' ) start [2024-12-31 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146632', 'tblTempVendorCDR_20' ) end [2024-12-31 22:35:18] Production.INFO: ProcessCDR(1,14146632,1,1,2) [2024-12-31 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146632', 'tblTempUsageDetail_20' ) start [2024-12-31 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146632', 'tblTempUsageDetail_20' ) end [2024-12-31 22:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:35:21] Production.INFO: ==5413== Releasing lock... [2024-12-31 22:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:35:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-31 22:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:36:04 [end_date_ymd] => 2024-12-31 22:36:04 [RateCDR] => 1 ) [2024-12-31 22:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:36:04' and `end` < '2024-12-31 22:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:36:17] Production.INFO: count ==1453 [2024-12-31 22:36:17] Production.ERROR: pbx CDR StartTime 2024-12-31 19:36:04 - End Time 2024-12-31 22:36:04 [2024-12-31 22:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146637', 'tblTempUsageDetail_20' ) start [2024-12-31 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146637', 'tblTempUsageDetail_20' ) end [2024-12-31 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146637', 'tblTempVendorCDR_20' ) start [2024-12-31 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146637', 'tblTempVendorCDR_20' ) end [2024-12-31 22:36:17] Production.INFO: ProcessCDR(1,14146637,1,1,2) [2024-12-31 22:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146637', 'tblTempUsageDetail_20' ) start [2024-12-31 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146637', 'tblTempUsageDetail_20' ) end [2024-12-31 22:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:36:22] Production.INFO: ==5483== Releasing lock... [2024-12-31 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:36:22] Production.INFO: 38.5 MB #Memory Used# [2024-12-31 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:37:05 [end_date_ymd] => 2024-12-31 22:37:05 [RateCDR] => 1 ) [2024-12-31 22:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:37:05' and `end` < '2024-12-31 22:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:37:18] Production.INFO: count ==1448 [2024-12-31 22:37:18] Production.ERROR: pbx CDR StartTime 2024-12-31 19:37:05 - End Time 2024-12-31 22:37:05 [2024-12-31 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146642', 'tblTempUsageDetail_20' ) start [2024-12-31 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146642', 'tblTempUsageDetail_20' ) end [2024-12-31 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146642', 'tblTempVendorCDR_20' ) start [2024-12-31 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146642', 'tblTempVendorCDR_20' ) end [2024-12-31 22:37:18] Production.INFO: ProcessCDR(1,14146642,1,1,2) [2024-12-31 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146642', 'tblTempUsageDetail_20' ) start [2024-12-31 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146642', 'tblTempUsageDetail_20' ) end [2024-12-31 22:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:37:21] Production.INFO: ==5556== Releasing lock... [2024-12-31 22:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:37:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-31 22:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:38:04 [end_date_ymd] => 2024-12-31 22:38:04 [RateCDR] => 1 ) [2024-12-31 22:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:38:04' and `end` < '2024-12-31 22:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:38:18] Production.INFO: count ==1448 [2024-12-31 22:38:18] Production.ERROR: pbx CDR StartTime 2024-12-31 19:38:04 - End Time 2024-12-31 22:38:04 [2024-12-31 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146647', 'tblTempUsageDetail_20' ) start [2024-12-31 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146647', 'tblTempUsageDetail_20' ) end [2024-12-31 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146647', 'tblTempVendorCDR_20' ) start [2024-12-31 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146647', 'tblTempVendorCDR_20' ) end [2024-12-31 22:38:18] Production.INFO: ProcessCDR(1,14146647,1,1,2) [2024-12-31 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146647', 'tblTempUsageDetail_20' ) start [2024-12-31 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146647', 'tblTempUsageDetail_20' ) end [2024-12-31 22:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:38:22] Production.INFO: ==5626== Releasing lock... [2024-12-31 22:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:38:22] Production.INFO: 38.5 MB #Memory Used# [2024-12-31 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:39:05 [end_date_ymd] => 2024-12-31 22:39:05 [RateCDR] => 1 ) [2024-12-31 22:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:39:05' and `end` < '2024-12-31 22:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:39:18] Production.INFO: count ==1444 [2024-12-31 22:39:18] Production.ERROR: pbx CDR StartTime 2024-12-31 19:39:05 - End Time 2024-12-31 22:39:05 [2024-12-31 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146652', 'tblTempUsageDetail_20' ) start [2024-12-31 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146652', 'tblTempUsageDetail_20' ) end [2024-12-31 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146652', 'tblTempVendorCDR_20' ) start [2024-12-31 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146652', 'tblTempVendorCDR_20' ) end [2024-12-31 22:39:18] Production.INFO: ProcessCDR(1,14146652,1,1,2) [2024-12-31 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146652', 'tblTempUsageDetail_20' ) start [2024-12-31 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146652', 'tblTempUsageDetail_20' ) end [2024-12-31 22:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:39:21] Production.INFO: ==5699== Releasing lock... [2024-12-31 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:39:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-31 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:40:06 [end_date_ymd] => 2024-12-31 22:40:06 [RateCDR] => 1 ) [2024-12-31 22:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:40:06' and `end` < '2024-12-31 22:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:40:19] Production.INFO: count ==1438 [2024-12-31 22:40:19] Production.ERROR: pbx CDR StartTime 2024-12-31 19:40:06 - End Time 2024-12-31 22:40:06 [2024-12-31 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146657', 'tblTempUsageDetail_20' ) start [2024-12-31 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146657', 'tblTempUsageDetail_20' ) end [2024-12-31 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146657', 'tblTempVendorCDR_20' ) start [2024-12-31 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146657', 'tblTempVendorCDR_20' ) end [2024-12-31 22:40:19] Production.INFO: ProcessCDR(1,14146657,1,1,2) [2024-12-31 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146657', 'tblTempUsageDetail_20' ) start [2024-12-31 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146657', 'tblTempUsageDetail_20' ) end [2024-12-31 22:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:40:22] Production.INFO: ==5772== Releasing lock... [2024-12-31 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:40:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-31 22:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:41:04 [end_date_ymd] => 2024-12-31 22:41:04 [RateCDR] => 1 ) [2024-12-31 22:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:41:04' and `end` < '2024-12-31 22:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:41:18] Production.INFO: count ==1430 [2024-12-31 22:41:18] Production.ERROR: pbx CDR StartTime 2024-12-31 19:41:04 - End Time 2024-12-31 22:41:04 [2024-12-31 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146663', 'tblTempUsageDetail_20' ) start [2024-12-31 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146663', 'tblTempUsageDetail_20' ) end [2024-12-31 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146663', 'tblTempVendorCDR_20' ) start [2024-12-31 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146663', 'tblTempVendorCDR_20' ) end [2024-12-31 22:41:18] Production.INFO: ProcessCDR(1,14146663,1,1,2) [2024-12-31 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146663', 'tblTempUsageDetail_20' ) start [2024-12-31 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146663', 'tblTempUsageDetail_20' ) end [2024-12-31 22:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:41:21] Production.INFO: ==5847== Releasing lock... [2024-12-31 22:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:41:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-31 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:42:05 [end_date_ymd] => 2024-12-31 22:42:05 [RateCDR] => 1 ) [2024-12-31 22:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:42:05' and `end` < '2024-12-31 22:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:42:18] Production.INFO: count ==1429 [2024-12-31 22:42:18] Production.ERROR: pbx CDR StartTime 2024-12-31 19:42:05 - End Time 2024-12-31 22:42:05 [2024-12-31 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146668', 'tblTempUsageDetail_20' ) start [2024-12-31 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146668', 'tblTempUsageDetail_20' ) end [2024-12-31 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146668', 'tblTempVendorCDR_20' ) start [2024-12-31 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146668', 'tblTempVendorCDR_20' ) end [2024-12-31 22:42:18] Production.INFO: ProcessCDR(1,14146668,1,1,2) [2024-12-31 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146668', 'tblTempUsageDetail_20' ) start [2024-12-31 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146668', 'tblTempUsageDetail_20' ) end [2024-12-31 22:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:42:21] Production.INFO: ==5918== Releasing lock... [2024-12-31 22:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:42:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-31 22:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:43:04 [end_date_ymd] => 2024-12-31 22:43:04 [RateCDR] => 1 ) [2024-12-31 22:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:43:04' and `end` < '2024-12-31 22:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:43:17] Production.INFO: count ==1427 [2024-12-31 22:43:17] Production.ERROR: pbx CDR StartTime 2024-12-31 19:43:04 - End Time 2024-12-31 22:43:04 [2024-12-31 22:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146673', 'tblTempUsageDetail_20' ) start [2024-12-31 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146673', 'tblTempUsageDetail_20' ) end [2024-12-31 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146673', 'tblTempVendorCDR_20' ) start [2024-12-31 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146673', 'tblTempVendorCDR_20' ) end [2024-12-31 22:43:17] Production.INFO: ProcessCDR(1,14146673,1,1,2) [2024-12-31 22:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146673', 'tblTempUsageDetail_20' ) start [2024-12-31 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146673', 'tblTempUsageDetail_20' ) end [2024-12-31 22:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:43:22] Production.INFO: ==5990== Releasing lock... [2024-12-31 22:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:43:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-31 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:44:05 [end_date_ymd] => 2024-12-31 22:44:05 [RateCDR] => 1 ) [2024-12-31 22:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:44:05' and `end` < '2024-12-31 22:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:44:20] Production.INFO: count ==1431 [2024-12-31 22:44:20] Production.ERROR: pbx CDR StartTime 2024-12-31 19:44:05 - End Time 2024-12-31 22:44:05 [2024-12-31 22:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146678', 'tblTempUsageDetail_20' ) start [2024-12-31 22:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146678', 'tblTempUsageDetail_20' ) end [2024-12-31 22:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146678', 'tblTempVendorCDR_20' ) start [2024-12-31 22:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146678', 'tblTempVendorCDR_20' ) end [2024-12-31 22:44:20] Production.INFO: ProcessCDR(1,14146678,1,1,2) [2024-12-31 22:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146678', 'tblTempUsageDetail_20' ) start [2024-12-31 22:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146678', 'tblTempUsageDetail_20' ) end [2024-12-31 22:44:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:44:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:44:25] Production.INFO: ==6061== Releasing lock... [2024-12-31 22:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:44:25] Production.INFO: 38.25 MB #Memory Used# [2024-12-31 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:45:05 [end_date_ymd] => 2024-12-31 22:45:05 [RateCDR] => 1 ) [2024-12-31 22:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:45:05' and `end` < '2024-12-31 22:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:45:19] Production.INFO: count ==1430 [2024-12-31 22:45:19] Production.ERROR: pbx CDR StartTime 2024-12-31 19:45:05 - End Time 2024-12-31 22:45:05 [2024-12-31 22:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146683', 'tblTempUsageDetail_20' ) start [2024-12-31 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146683', 'tblTempUsageDetail_20' ) end [2024-12-31 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146683', 'tblTempVendorCDR_20' ) start [2024-12-31 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146683', 'tblTempVendorCDR_20' ) end [2024-12-31 22:45:19] Production.INFO: ProcessCDR(1,14146683,1,1,2) [2024-12-31 22:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146683', 'tblTempUsageDetail_20' ) start [2024-12-31 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146683', 'tblTempUsageDetail_20' ) end [2024-12-31 22:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:45:22] Production.INFO: ==6133== Releasing lock... [2024-12-31 22:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:45:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-31 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:46:05 [end_date_ymd] => 2024-12-31 22:46:05 [RateCDR] => 1 ) [2024-12-31 22:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:46:05' and `end` < '2024-12-31 22:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:46:18] Production.INFO: count ==1430 [2024-12-31 22:46:18] Production.ERROR: pbx CDR StartTime 2024-12-31 19:46:05 - End Time 2024-12-31 22:46:05 [2024-12-31 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146688', 'tblTempUsageDetail_20' ) start [2024-12-31 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146688', 'tblTempUsageDetail_20' ) end [2024-12-31 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146688', 'tblTempVendorCDR_20' ) start [2024-12-31 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146688', 'tblTempVendorCDR_20' ) end [2024-12-31 22:46:18] Production.INFO: ProcessCDR(1,14146688,1,1,2) [2024-12-31 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146688', 'tblTempUsageDetail_20' ) start [2024-12-31 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146688', 'tblTempUsageDetail_20' ) end [2024-12-31 22:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:46:21] Production.INFO: ==6204== Releasing lock... [2024-12-31 22:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:46:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-31 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:47:05 [end_date_ymd] => 2024-12-31 22:47:05 [RateCDR] => 1 ) [2024-12-31 22:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:47:05' and `end` < '2024-12-31 22:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:47:18] Production.INFO: count ==1428 [2024-12-31 22:47:19] Production.ERROR: pbx CDR StartTime 2024-12-31 19:47:05 - End Time 2024-12-31 22:47:05 [2024-12-31 22:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146693', 'tblTempUsageDetail_20' ) start [2024-12-31 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146693', 'tblTempUsageDetail_20' ) end [2024-12-31 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146693', 'tblTempVendorCDR_20' ) start [2024-12-31 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146693', 'tblTempVendorCDR_20' ) end [2024-12-31 22:47:19] Production.INFO: ProcessCDR(1,14146693,1,1,2) [2024-12-31 22:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146693', 'tblTempUsageDetail_20' ) start [2024-12-31 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146693', 'tblTempUsageDetail_20' ) end [2024-12-31 22:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:47:22] Production.INFO: ==6276== Releasing lock... [2024-12-31 22:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:47:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-31 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:48:05 [end_date_ymd] => 2024-12-31 22:48:05 [RateCDR] => 1 ) [2024-12-31 22:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:48:05' and `end` < '2024-12-31 22:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:48:19] Production.INFO: count ==1427 [2024-12-31 22:48:19] Production.ERROR: pbx CDR StartTime 2024-12-31 19:48:05 - End Time 2024-12-31 22:48:05 [2024-12-31 22:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146698', 'tblTempUsageDetail_20' ) start [2024-12-31 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146698', 'tblTempUsageDetail_20' ) end [2024-12-31 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146698', 'tblTempVendorCDR_20' ) start [2024-12-31 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146698', 'tblTempVendorCDR_20' ) end [2024-12-31 22:48:19] Production.INFO: ProcessCDR(1,14146698,1,1,2) [2024-12-31 22:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146698', 'tblTempUsageDetail_20' ) start [2024-12-31 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146698', 'tblTempUsageDetail_20' ) end [2024-12-31 22:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:48:22] Production.INFO: ==6355== Releasing lock... [2024-12-31 22:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:48:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-31 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:49:05 [end_date_ymd] => 2024-12-31 22:49:05 [RateCDR] => 1 ) [2024-12-31 22:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:49:05' and `end` < '2024-12-31 22:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:49:18] Production.INFO: count ==1426 [2024-12-31 22:49:18] Production.ERROR: pbx CDR StartTime 2024-12-31 19:49:05 - End Time 2024-12-31 22:49:05 [2024-12-31 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146703', 'tblTempUsageDetail_20' ) start [2024-12-31 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146703', 'tblTempUsageDetail_20' ) end [2024-12-31 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146703', 'tblTempVendorCDR_20' ) start [2024-12-31 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146703', 'tblTempVendorCDR_20' ) end [2024-12-31 22:49:18] Production.INFO: ProcessCDR(1,14146703,1,1,2) [2024-12-31 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146703', 'tblTempUsageDetail_20' ) start [2024-12-31 22:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146703', 'tblTempUsageDetail_20' ) end [2024-12-31 22:49:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:49:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:49:23] Production.INFO: ==6464== Releasing lock... [2024-12-31 22:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:49:23] Production.INFO: 38.25 MB #Memory Used# [2024-12-31 22:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:50:05 [end_date_ymd] => 2024-12-31 22:50:05 [RateCDR] => 1 ) [2024-12-31 22:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:50:05' and `end` < '2024-12-31 22:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:50:18] Production.INFO: count ==1426 [2024-12-31 22:50:18] Production.ERROR: pbx CDR StartTime 2024-12-31 19:50:05 - End Time 2024-12-31 22:50:05 [2024-12-31 22:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146709', 'tblTempUsageDetail_20' ) start [2024-12-31 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146709', 'tblTempUsageDetail_20' ) end [2024-12-31 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146709', 'tblTempVendorCDR_20' ) start [2024-12-31 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146709', 'tblTempVendorCDR_20' ) end [2024-12-31 22:50:18] Production.INFO: ProcessCDR(1,14146709,1,1,2) [2024-12-31 22:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146709', 'tblTempUsageDetail_20' ) start [2024-12-31 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146709', 'tblTempUsageDetail_20' ) end [2024-12-31 22:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:50:23] Production.INFO: ==6537== Releasing lock... [2024-12-31 22:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:50:23] Production.INFO: 38.25 MB #Memory Used# [2024-12-31 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:51:05 [end_date_ymd] => 2024-12-31 22:51:05 [RateCDR] => 1 ) [2024-12-31 22:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:51:05' and `end` < '2024-12-31 22:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:51:19] Production.INFO: count ==1423 [2024-12-31 22:51:19] Production.ERROR: pbx CDR StartTime 2024-12-31 19:51:05 - End Time 2024-12-31 22:51:05 [2024-12-31 22:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146714', 'tblTempUsageDetail_20' ) start [2024-12-31 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146714', 'tblTempUsageDetail_20' ) end [2024-12-31 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146714', 'tblTempVendorCDR_20' ) start [2024-12-31 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146714', 'tblTempVendorCDR_20' ) end [2024-12-31 22:51:19] Production.INFO: ProcessCDR(1,14146714,1,1,2) [2024-12-31 22:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146714', 'tblTempUsageDetail_20' ) start [2024-12-31 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146714', 'tblTempUsageDetail_20' ) end [2024-12-31 22:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:51:22] Production.INFO: ==6610== Releasing lock... [2024-12-31 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:51:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-31 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:52:05 [end_date_ymd] => 2024-12-31 22:52:05 [RateCDR] => 1 ) [2024-12-31 22:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:52:05' and `end` < '2024-12-31 22:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:52:17] Production.INFO: count ==1423 [2024-12-31 22:52:18] Production.ERROR: pbx CDR StartTime 2024-12-31 19:52:05 - End Time 2024-12-31 22:52:05 [2024-12-31 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146719', 'tblTempUsageDetail_20' ) start [2024-12-31 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146719', 'tblTempUsageDetail_20' ) end [2024-12-31 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146719', 'tblTempVendorCDR_20' ) start [2024-12-31 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146719', 'tblTempVendorCDR_20' ) end [2024-12-31 22:52:18] Production.INFO: ProcessCDR(1,14146719,1,1,2) [2024-12-31 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146719', 'tblTempUsageDetail_20' ) start [2024-12-31 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146719', 'tblTempUsageDetail_20' ) end [2024-12-31 22:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:52:21] Production.INFO: ==6678== Releasing lock... [2024-12-31 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:52:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-31 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:53:05 [end_date_ymd] => 2024-12-31 22:53:05 [RateCDR] => 1 ) [2024-12-31 22:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:53:05' and `end` < '2024-12-31 22:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:53:18] Production.INFO: count ==1423 [2024-12-31 22:53:18] Production.ERROR: pbx CDR StartTime 2024-12-31 19:53:05 - End Time 2024-12-31 22:53:05 [2024-12-31 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146724', 'tblTempUsageDetail_20' ) start [2024-12-31 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146724', 'tblTempUsageDetail_20' ) end [2024-12-31 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146724', 'tblTempVendorCDR_20' ) start [2024-12-31 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146724', 'tblTempVendorCDR_20' ) end [2024-12-31 22:53:18] Production.INFO: ProcessCDR(1,14146724,1,1,2) [2024-12-31 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146724', 'tblTempUsageDetail_20' ) start [2024-12-31 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146724', 'tblTempUsageDetail_20' ) end [2024-12-31 22:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:53:21] Production.INFO: ==6753== Releasing lock... [2024-12-31 22:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:53:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-31 22:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:54:04 [end_date_ymd] => 2024-12-31 22:54:04 [RateCDR] => 1 ) [2024-12-31 22:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:54:04' and `end` < '2024-12-31 22:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:54:17] Production.INFO: count ==1423 [2024-12-31 22:54:17] Production.ERROR: pbx CDR StartTime 2024-12-31 19:54:04 - End Time 2024-12-31 22:54:04 [2024-12-31 22:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146729', 'tblTempUsageDetail_20' ) start [2024-12-31 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146729', 'tblTempUsageDetail_20' ) end [2024-12-31 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146729', 'tblTempVendorCDR_20' ) start [2024-12-31 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146729', 'tblTempVendorCDR_20' ) end [2024-12-31 22:54:17] Production.INFO: ProcessCDR(1,14146729,1,1,2) [2024-12-31 22:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146729', 'tblTempUsageDetail_20' ) start [2024-12-31 22:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146729', 'tblTempUsageDetail_20' ) end [2024-12-31 22:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:54:20] Production.INFO: ==6824== Releasing lock... [2024-12-31 22:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:54:20] Production.INFO: 38.25 MB #Memory Used# [2024-12-31 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:55:05 [end_date_ymd] => 2024-12-31 22:55:05 [RateCDR] => 1 ) [2024-12-31 22:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:55:05' and `end` < '2024-12-31 22:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:55:17] Production.INFO: count ==1421 [2024-12-31 22:55:18] Production.ERROR: pbx CDR StartTime 2024-12-31 19:55:05 - End Time 2024-12-31 22:55:05 [2024-12-31 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146734', 'tblTempUsageDetail_20' ) start [2024-12-31 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146734', 'tblTempUsageDetail_20' ) end [2024-12-31 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146734', 'tblTempVendorCDR_20' ) start [2024-12-31 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146734', 'tblTempVendorCDR_20' ) end [2024-12-31 22:55:18] Production.INFO: ProcessCDR(1,14146734,1,1,2) [2024-12-31 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146734', 'tblTempUsageDetail_20' ) start [2024-12-31 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146734', 'tblTempUsageDetail_20' ) end [2024-12-31 22:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:55:21] Production.INFO: ==6894== Releasing lock... [2024-12-31 22:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:55:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-31 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:56:05 [end_date_ymd] => 2024-12-31 22:56:05 [RateCDR] => 1 ) [2024-12-31 22:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:56:05' and `end` < '2024-12-31 22:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:56:18] Production.INFO: count ==1420 [2024-12-31 22:56:18] Production.ERROR: pbx CDR StartTime 2024-12-31 19:56:05 - End Time 2024-12-31 22:56:05 [2024-12-31 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146739', 'tblTempUsageDetail_20' ) start [2024-12-31 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146739', 'tblTempUsageDetail_20' ) end [2024-12-31 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146739', 'tblTempVendorCDR_20' ) start [2024-12-31 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146739', 'tblTempVendorCDR_20' ) end [2024-12-31 22:56:18] Production.INFO: ProcessCDR(1,14146739,1,1,2) [2024-12-31 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146739', 'tblTempUsageDetail_20' ) start [2024-12-31 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146739', 'tblTempUsageDetail_20' ) end [2024-12-31 22:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:56:21] Production.INFO: ==6965== Releasing lock... [2024-12-31 22:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:56:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-31 22:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:57:04 [end_date_ymd] => 2024-12-31 22:57:04 [RateCDR] => 1 ) [2024-12-31 22:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:57:04' and `end` < '2024-12-31 22:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:57:19] Production.INFO: count ==1418 [2024-12-31 22:57:19] Production.ERROR: pbx CDR StartTime 2024-12-31 19:57:04 - End Time 2024-12-31 22:57:04 [2024-12-31 22:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146744', 'tblTempUsageDetail_20' ) start [2024-12-31 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146744', 'tblTempUsageDetail_20' ) end [2024-12-31 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146744', 'tblTempVendorCDR_20' ) start [2024-12-31 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146744', 'tblTempVendorCDR_20' ) end [2024-12-31 22:57:19] Production.INFO: ProcessCDR(1,14146744,1,1,2) [2024-12-31 22:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146744', 'tblTempUsageDetail_20' ) start [2024-12-31 22:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146744', 'tblTempUsageDetail_20' ) end [2024-12-31 22:57:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:57:23] Production.INFO: ==7035== Releasing lock... [2024-12-31 22:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:57:23] Production.INFO: 38.25 MB #Memory Used# [2024-12-31 22:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:58:04 [end_date_ymd] => 2024-12-31 22:58:04 [RateCDR] => 1 ) [2024-12-31 22:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:58:04' and `end` < '2024-12-31 22:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:58:17] Production.INFO: count ==1420 [2024-12-31 22:58:17] Production.ERROR: pbx CDR StartTime 2024-12-31 19:58:04 - End Time 2024-12-31 22:58:04 [2024-12-31 22:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146748', 'tblTempUsageDetail_20' ) start [2024-12-31 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146748', 'tblTempUsageDetail_20' ) end [2024-12-31 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146748', 'tblTempVendorCDR_20' ) start [2024-12-31 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146748', 'tblTempVendorCDR_20' ) end [2024-12-31 22:58:17] Production.INFO: ProcessCDR(1,14146748,1,1,2) [2024-12-31 22:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146748', 'tblTempUsageDetail_20' ) start [2024-12-31 22:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146748', 'tblTempUsageDetail_20' ) end [2024-12-31 22:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:58:20] Production.INFO: ==7105== Releasing lock... [2024-12-31 22:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:58:20] Production.INFO: 38.25 MB #Memory Used# [2024-12-31 22:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 19:59:04 [end_date_ymd] => 2024-12-31 22:59:04 [RateCDR] => 1 ) [2024-12-31 22:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 19:59:04' and `end` < '2024-12-31 22:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 22:59:17] Production.INFO: count ==1420 [2024-12-31 22:59:17] Production.ERROR: pbx CDR StartTime 2024-12-31 19:59:04 - End Time 2024-12-31 22:59:04 [2024-12-31 22:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146754', 'tblTempUsageDetail_20' ) start [2024-12-31 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146754', 'tblTempUsageDetail_20' ) end [2024-12-31 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146754', 'tblTempVendorCDR_20' ) start [2024-12-31 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146754', 'tblTempVendorCDR_20' ) end [2024-12-31 22:59:17] Production.INFO: ProcessCDR(1,14146754,1,1,2) [2024-12-31 22:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146754', 'tblTempUsageDetail_20' ) start [2024-12-31 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146754', 'tblTempUsageDetail_20' ) end [2024-12-31 22:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 22:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 22:59:21] Production.INFO: ==7177== Releasing lock... [2024-12-31 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 22:59:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-31 23:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:00:05 [end_date_ymd] => 2024-12-31 23:00:05 [RateCDR] => 1 ) [2024-12-31 23:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:00:05' and `end` < '2024-12-31 23:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:00:18] Production.INFO: count ==1417 [2024-12-31 23:00:18] Production.ERROR: pbx CDR StartTime 2024-12-31 20:00:05 - End Time 2024-12-31 23:00:05 [2024-12-31 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146760', 'tblTempUsageDetail_20' ) start [2024-12-31 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146760', 'tblTempUsageDetail_20' ) end [2024-12-31 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146760', 'tblTempVendorCDR_20' ) start [2024-12-31 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146760', 'tblTempVendorCDR_20' ) end [2024-12-31 23:00:18] Production.INFO: ProcessCDR(1,14146760,1,1,2) [2024-12-31 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146760', 'tblTempUsageDetail_20' ) start [2024-12-31 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146760', 'tblTempUsageDetail_20' ) end [2024-12-31 23:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:00:21] Production.INFO: ==7251== Releasing lock... [2024-12-31 23:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:00:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-31 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:01:05 [end_date_ymd] => 2024-12-31 23:01:05 [RateCDR] => 1 ) [2024-12-31 23:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:01:05' and `end` < '2024-12-31 23:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:01:18] Production.INFO: count ==1395 [2024-12-31 23:01:18] Production.ERROR: pbx CDR StartTime 2024-12-31 20:01:05 - End Time 2024-12-31 23:01:05 [2024-12-31 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146765', 'tblTempUsageDetail_20' ) start [2024-12-31 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146765', 'tblTempUsageDetail_20' ) end [2024-12-31 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146765', 'tblTempVendorCDR_20' ) start [2024-12-31 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146765', 'tblTempVendorCDR_20' ) end [2024-12-31 23:01:18] Production.INFO: ProcessCDR(1,14146765,1,1,2) [2024-12-31 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146765', 'tblTempUsageDetail_20' ) start [2024-12-31 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146765', 'tblTempUsageDetail_20' ) end [2024-12-31 23:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:01:21] Production.INFO: ==7414== Releasing lock... [2024-12-31 23:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:01:21] Production.INFO: 38 MB #Memory Used# [2024-12-31 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:02:05 [end_date_ymd] => 2024-12-31 23:02:05 [RateCDR] => 1 ) [2024-12-31 23:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:02:05' and `end` < '2024-12-31 23:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:02:19] Production.INFO: count ==1395 [2024-12-31 23:02:19] Production.ERROR: pbx CDR StartTime 2024-12-31 20:02:05 - End Time 2024-12-31 23:02:05 [2024-12-31 23:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146770', 'tblTempUsageDetail_20' ) start [2024-12-31 23:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146770', 'tblTempUsageDetail_20' ) end [2024-12-31 23:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146770', 'tblTempVendorCDR_20' ) start [2024-12-31 23:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146770', 'tblTempVendorCDR_20' ) end [2024-12-31 23:02:20] Production.INFO: ProcessCDR(1,14146770,1,1,2) [2024-12-31 23:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146770', 'tblTempUsageDetail_20' ) start [2024-12-31 23:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146770', 'tblTempUsageDetail_20' ) end [2024-12-31 23:02:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:02:23] Production.INFO: ==7486== Releasing lock... [2024-12-31 23:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:02:23] Production.INFO: 38 MB #Memory Used# [2024-12-31 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:03:05 [end_date_ymd] => 2024-12-31 23:03:05 [RateCDR] => 1 ) [2024-12-31 23:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:03:05' and `end` < '2024-12-31 23:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:03:18] Production.INFO: count ==1395 [2024-12-31 23:03:18] Production.ERROR: pbx CDR StartTime 2024-12-31 20:03:05 - End Time 2024-12-31 23:03:05 [2024-12-31 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146775', 'tblTempUsageDetail_20' ) start [2024-12-31 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146775', 'tblTempUsageDetail_20' ) end [2024-12-31 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146775', 'tblTempVendorCDR_20' ) start [2024-12-31 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146775', 'tblTempVendorCDR_20' ) end [2024-12-31 23:03:18] Production.INFO: ProcessCDR(1,14146775,1,1,2) [2024-12-31 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146775', 'tblTempUsageDetail_20' ) start [2024-12-31 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146775', 'tblTempUsageDetail_20' ) end [2024-12-31 23:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:03:21] Production.INFO: ==7558== Releasing lock... [2024-12-31 23:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:03:21] Production.INFO: 38 MB #Memory Used# [2024-12-31 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:04:05 [end_date_ymd] => 2024-12-31 23:04:05 [RateCDR] => 1 ) [2024-12-31 23:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:04:05' and `end` < '2024-12-31 23:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:04:18] Production.INFO: count ==1393 [2024-12-31 23:04:18] Production.ERROR: pbx CDR StartTime 2024-12-31 20:04:05 - End Time 2024-12-31 23:04:05 [2024-12-31 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146780', 'tblTempUsageDetail_20' ) start [2024-12-31 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146780', 'tblTempUsageDetail_20' ) end [2024-12-31 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146780', 'tblTempVendorCDR_20' ) start [2024-12-31 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146780', 'tblTempVendorCDR_20' ) end [2024-12-31 23:04:18] Production.INFO: ProcessCDR(1,14146780,1,1,2) [2024-12-31 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146780', 'tblTempUsageDetail_20' ) start [2024-12-31 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146780', 'tblTempUsageDetail_20' ) end [2024-12-31 23:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:04:21] Production.INFO: ==7632== Releasing lock... [2024-12-31 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:04:21] Production.INFO: 38 MB #Memory Used# [2024-12-31 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:05:05 [end_date_ymd] => 2024-12-31 23:05:05 [RateCDR] => 1 ) [2024-12-31 23:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:05:05' and `end` < '2024-12-31 23:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:05:18] Production.INFO: count ==1391 [2024-12-31 23:05:18] Production.ERROR: pbx CDR StartTime 2024-12-31 20:05:05 - End Time 2024-12-31 23:05:05 [2024-12-31 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146785', 'tblTempUsageDetail_20' ) start [2024-12-31 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146785', 'tblTempUsageDetail_20' ) end [2024-12-31 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146785', 'tblTempVendorCDR_20' ) start [2024-12-31 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146785', 'tblTempVendorCDR_20' ) end [2024-12-31 23:05:18] Production.INFO: ProcessCDR(1,14146785,1,1,2) [2024-12-31 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146785', 'tblTempUsageDetail_20' ) start [2024-12-31 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146785', 'tblTempUsageDetail_20' ) end [2024-12-31 23:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:05:21] Production.INFO: ==7820== Releasing lock... [2024-12-31 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:05:21] Production.INFO: 38 MB #Memory Used# [2024-12-31 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:06:05 [end_date_ymd] => 2024-12-31 23:06:05 [RateCDR] => 1 ) [2024-12-31 23:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:06:05' and `end` < '2024-12-31 23:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:06:17] Production.INFO: count ==1393 [2024-12-31 23:06:18] Production.ERROR: pbx CDR StartTime 2024-12-31 20:06:05 - End Time 2024-12-31 23:06:05 [2024-12-31 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146790', 'tblTempUsageDetail_20' ) start [2024-12-31 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146790', 'tblTempUsageDetail_20' ) end [2024-12-31 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146790', 'tblTempVendorCDR_20' ) start [2024-12-31 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146790', 'tblTempVendorCDR_20' ) end [2024-12-31 23:06:18] Production.INFO: ProcessCDR(1,14146790,1,1,2) [2024-12-31 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146790', 'tblTempUsageDetail_20' ) start [2024-12-31 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146790', 'tblTempUsageDetail_20' ) end [2024-12-31 23:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:06:21] Production.INFO: ==7892== Releasing lock... [2024-12-31 23:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:06:21] Production.INFO: 38 MB #Memory Used# [2024-12-31 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:07:05 [end_date_ymd] => 2024-12-31 23:07:05 [RateCDR] => 1 ) [2024-12-31 23:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:07:05' and `end` < '2024-12-31 23:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:07:18] Production.INFO: count ==1395 [2024-12-31 23:07:18] Production.ERROR: pbx CDR StartTime 2024-12-31 20:07:05 - End Time 2024-12-31 23:07:05 [2024-12-31 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146795', 'tblTempUsageDetail_20' ) start [2024-12-31 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146795', 'tblTempUsageDetail_20' ) end [2024-12-31 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146795', 'tblTempVendorCDR_20' ) start [2024-12-31 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146795', 'tblTempVendorCDR_20' ) end [2024-12-31 23:07:18] Production.INFO: ProcessCDR(1,14146795,1,1,2) [2024-12-31 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146795', 'tblTempUsageDetail_20' ) start [2024-12-31 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146795', 'tblTempUsageDetail_20' ) end [2024-12-31 23:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:07:22] Production.INFO: ==7962== Releasing lock... [2024-12-31 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:07:22] Production.INFO: 38 MB #Memory Used# [2024-12-31 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:08:05 [end_date_ymd] => 2024-12-31 23:08:05 [RateCDR] => 1 ) [2024-12-31 23:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:08:05' and `end` < '2024-12-31 23:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:08:18] Production.INFO: count ==1395 [2024-12-31 23:08:18] Production.ERROR: pbx CDR StartTime 2024-12-31 20:08:05 - End Time 2024-12-31 23:08:05 [2024-12-31 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146800', 'tblTempUsageDetail_20' ) start [2024-12-31 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146800', 'tblTempUsageDetail_20' ) end [2024-12-31 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146800', 'tblTempVendorCDR_20' ) start [2024-12-31 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146800', 'tblTempVendorCDR_20' ) end [2024-12-31 23:08:18] Production.INFO: ProcessCDR(1,14146800,1,1,2) [2024-12-31 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146800', 'tblTempUsageDetail_20' ) start [2024-12-31 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146800', 'tblTempUsageDetail_20' ) end [2024-12-31 23:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:08:22] Production.INFO: ==8110== Releasing lock... [2024-12-31 23:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:08:22] Production.INFO: 38 MB #Memory Used# [2024-12-31 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:09:05 [end_date_ymd] => 2024-12-31 23:09:05 [RateCDR] => 1 ) [2024-12-31 23:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:09:05' and `end` < '2024-12-31 23:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:09:17] Production.INFO: count ==1396 [2024-12-31 23:09:18] Production.ERROR: pbx CDR StartTime 2024-12-31 20:09:05 - End Time 2024-12-31 23:09:05 [2024-12-31 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146805', 'tblTempUsageDetail_20' ) start [2024-12-31 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146805', 'tblTempUsageDetail_20' ) end [2024-12-31 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146805', 'tblTempVendorCDR_20' ) start [2024-12-31 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146805', 'tblTempVendorCDR_20' ) end [2024-12-31 23:09:18] Production.INFO: ProcessCDR(1,14146805,1,1,2) [2024-12-31 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146805', 'tblTempUsageDetail_20' ) start [2024-12-31 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146805', 'tblTempUsageDetail_20' ) end [2024-12-31 23:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:09:22] Production.INFO: ==8183== Releasing lock... [2024-12-31 23:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:09:22] Production.INFO: 38 MB #Memory Used# [2024-12-31 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:10:05 [end_date_ymd] => 2024-12-31 23:10:05 [RateCDR] => 1 ) [2024-12-31 23:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:10:05' and `end` < '2024-12-31 23:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:10:18] Production.INFO: count ==1396 [2024-12-31 23:10:18] Production.ERROR: pbx CDR StartTime 2024-12-31 20:10:05 - End Time 2024-12-31 23:10:05 [2024-12-31 23:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146810', 'tblTempUsageDetail_20' ) start [2024-12-31 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146810', 'tblTempUsageDetail_20' ) end [2024-12-31 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146810', 'tblTempVendorCDR_20' ) start [2024-12-31 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146810', 'tblTempVendorCDR_20' ) end [2024-12-31 23:10:18] Production.INFO: ProcessCDR(1,14146810,1,1,2) [2024-12-31 23:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146810', 'tblTempUsageDetail_20' ) start [2024-12-31 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146810', 'tblTempUsageDetail_20' ) end [2024-12-31 23:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:10:21] Production.INFO: ==8257== Releasing lock... [2024-12-31 23:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:10:21] Production.INFO: 38 MB #Memory Used# [2024-12-31 23:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:11:04 [end_date_ymd] => 2024-12-31 23:11:04 [RateCDR] => 1 ) [2024-12-31 23:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:11:04' and `end` < '2024-12-31 23:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:11:16] Production.INFO: count ==1386 [2024-12-31 23:11:17] Production.ERROR: pbx CDR StartTime 2024-12-31 20:11:04 - End Time 2024-12-31 23:11:04 [2024-12-31 23:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146816', 'tblTempUsageDetail_20' ) start [2024-12-31 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146816', 'tblTempUsageDetail_20' ) end [2024-12-31 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146816', 'tblTempVendorCDR_20' ) start [2024-12-31 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146816', 'tblTempVendorCDR_20' ) end [2024-12-31 23:11:17] Production.INFO: ProcessCDR(1,14146816,1,1,2) [2024-12-31 23:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146816', 'tblTempUsageDetail_20' ) start [2024-12-31 23:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146816', 'tblTempUsageDetail_20' ) end [2024-12-31 23:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:11:20] Production.INFO: ==8328== Releasing lock... [2024-12-31 23:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:11:20] Production.INFO: 38 MB #Memory Used# [2024-12-31 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:12:05 [end_date_ymd] => 2024-12-31 23:12:05 [RateCDR] => 1 ) [2024-12-31 23:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:12:05' and `end` < '2024-12-31 23:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:12:17] Production.INFO: count ==1386 [2024-12-31 23:12:17] Production.ERROR: pbx CDR StartTime 2024-12-31 20:12:05 - End Time 2024-12-31 23:12:05 [2024-12-31 23:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146821', 'tblTempUsageDetail_20' ) start [2024-12-31 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146821', 'tblTempUsageDetail_20' ) end [2024-12-31 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146821', 'tblTempVendorCDR_20' ) start [2024-12-31 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146821', 'tblTempVendorCDR_20' ) end [2024-12-31 23:12:17] Production.INFO: ProcessCDR(1,14146821,1,1,2) [2024-12-31 23:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146821', 'tblTempUsageDetail_20' ) start [2024-12-31 23:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146821', 'tblTempUsageDetail_20' ) end [2024-12-31 23:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:12:21] Production.INFO: ==8477== Releasing lock... [2024-12-31 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:12:21] Production.INFO: 38 MB #Memory Used# [2024-12-31 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:13:05 [end_date_ymd] => 2024-12-31 23:13:05 [RateCDR] => 1 ) [2024-12-31 23:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:13:05' and `end` < '2024-12-31 23:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:13:17] Production.INFO: count ==1382 [2024-12-31 23:13:18] Production.ERROR: pbx CDR StartTime 2024-12-31 20:13:05 - End Time 2024-12-31 23:13:05 [2024-12-31 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146826', 'tblTempUsageDetail_20' ) start [2024-12-31 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146826', 'tblTempUsageDetail_20' ) end [2024-12-31 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146826', 'tblTempVendorCDR_20' ) start [2024-12-31 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146826', 'tblTempVendorCDR_20' ) end [2024-12-31 23:13:18] Production.INFO: ProcessCDR(1,14146826,1,1,2) [2024-12-31 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146826', 'tblTempUsageDetail_20' ) start [2024-12-31 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146826', 'tblTempUsageDetail_20' ) end [2024-12-31 23:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:13:21] Production.INFO: ==8547== Releasing lock... [2024-12-31 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:13:21] Production.INFO: 38 MB #Memory Used# [2024-12-31 23:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:14:04 [end_date_ymd] => 2024-12-31 23:14:04 [RateCDR] => 1 ) [2024-12-31 23:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:14:04' and `end` < '2024-12-31 23:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:14:17] Production.INFO: count ==1382 [2024-12-31 23:14:17] Production.ERROR: pbx CDR StartTime 2024-12-31 20:14:04 - End Time 2024-12-31 23:14:04 [2024-12-31 23:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146831', 'tblTempUsageDetail_20' ) start [2024-12-31 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146831', 'tblTempUsageDetail_20' ) end [2024-12-31 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146831', 'tblTempVendorCDR_20' ) start [2024-12-31 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146831', 'tblTempVendorCDR_20' ) end [2024-12-31 23:14:17] Production.INFO: ProcessCDR(1,14146831,1,1,2) [2024-12-31 23:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146831', 'tblTempUsageDetail_20' ) start [2024-12-31 23:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146831', 'tblTempUsageDetail_20' ) end [2024-12-31 23:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:14:20] Production.INFO: ==8619== Releasing lock... [2024-12-31 23:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:14:20] Production.INFO: 38 MB #Memory Used# [2024-12-31 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:15:05 [end_date_ymd] => 2024-12-31 23:15:05 [RateCDR] => 1 ) [2024-12-31 23:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:15:05' and `end` < '2024-12-31 23:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:15:17] Production.INFO: count ==1413 [2024-12-31 23:15:18] Production.ERROR: pbx CDR StartTime 2024-12-31 20:15:05 - End Time 2024-12-31 23:15:05 [2024-12-31 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146836', 'tblTempUsageDetail_20' ) start [2024-12-31 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146836', 'tblTempUsageDetail_20' ) end [2024-12-31 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146836', 'tblTempVendorCDR_20' ) start [2024-12-31 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146836', 'tblTempVendorCDR_20' ) end [2024-12-31 23:15:18] Production.INFO: ProcessCDR(1,14146836,1,1,2) [2024-12-31 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146836', 'tblTempUsageDetail_20' ) start [2024-12-31 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146836', 'tblTempUsageDetail_20' ) end [2024-12-31 23:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:15:21] Production.INFO: ==8771== Releasing lock... [2024-12-31 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:15:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-31 23:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:16:04 [end_date_ymd] => 2024-12-31 23:16:04 [RateCDR] => 1 ) [2024-12-31 23:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:16:04' and `end` < '2024-12-31 23:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:16:17] Production.INFO: count ==1449 [2024-12-31 23:16:17] Production.ERROR: pbx CDR StartTime 2024-12-31 20:16:04 - End Time 2024-12-31 23:16:04 [2024-12-31 23:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146841', 'tblTempUsageDetail_20' ) start [2024-12-31 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146841', 'tblTempUsageDetail_20' ) end [2024-12-31 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146841', 'tblTempVendorCDR_20' ) start [2024-12-31 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146841', 'tblTempVendorCDR_20' ) end [2024-12-31 23:16:17] Production.INFO: ProcessCDR(1,14146841,1,1,2) [2024-12-31 23:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146841', 'tblTempUsageDetail_20' ) start [2024-12-31 23:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146841', 'tblTempUsageDetail_20' ) end [2024-12-31 23:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:16:20] Production.INFO: ==8841== Releasing lock... [2024-12-31 23:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:16:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-31 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:17:05 [end_date_ymd] => 2024-12-31 23:17:05 [RateCDR] => 1 ) [2024-12-31 23:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:17:05' and `end` < '2024-12-31 23:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:17:19] Production.INFO: count ==1484 [2024-12-31 23:17:19] Production.ERROR: pbx CDR StartTime 2024-12-31 20:17:05 - End Time 2024-12-31 23:17:05 [2024-12-31 23:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146846', 'tblTempUsageDetail_20' ) start [2024-12-31 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146846', 'tblTempUsageDetail_20' ) end [2024-12-31 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146846', 'tblTempVendorCDR_20' ) start [2024-12-31 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146846', 'tblTempVendorCDR_20' ) end [2024-12-31 23:17:19] Production.INFO: ProcessCDR(1,14146846,1,1,2) [2024-12-31 23:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146846', 'tblTempUsageDetail_20' ) start [2024-12-31 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146846', 'tblTempUsageDetail_20' ) end [2024-12-31 23:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:17:22] Production.INFO: ==8918== Releasing lock... [2024-12-31 23:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:17:22] Production.INFO: 38.75 MB #Memory Used# [2024-12-31 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:18:05 [end_date_ymd] => 2024-12-31 23:18:05 [RateCDR] => 1 ) [2024-12-31 23:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:18:05' and `end` < '2024-12-31 23:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:18:19] Production.INFO: count ==1521 [2024-12-31 23:18:19] Production.ERROR: pbx CDR StartTime 2024-12-31 20:18:05 - End Time 2024-12-31 23:18:05 [2024-12-31 23:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146851', 'tblTempUsageDetail_20' ) start [2024-12-31 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146851', 'tblTempUsageDetail_20' ) end [2024-12-31 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146851', 'tblTempVendorCDR_20' ) start [2024-12-31 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146851', 'tblTempVendorCDR_20' ) end [2024-12-31 23:18:19] Production.INFO: ProcessCDR(1,14146851,1,1,2) [2024-12-31 23:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146851', 'tblTempUsageDetail_20' ) start [2024-12-31 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146851', 'tblTempUsageDetail_20' ) end [2024-12-31 23:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:18:22] Production.INFO: ==8992== Releasing lock... [2024-12-31 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:18:22] Production.INFO: 39 MB #Memory Used# [2024-12-31 23:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:19:04 [end_date_ymd] => 2024-12-31 23:19:04 [RateCDR] => 1 ) [2024-12-31 23:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:19:04' and `end` < '2024-12-31 23:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:19:17] Production.INFO: count ==1560 [2024-12-31 23:19:17] Production.ERROR: pbx CDR StartTime 2024-12-31 20:19:04 - End Time 2024-12-31 23:19:04 [2024-12-31 23:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146856', 'tblTempUsageDetail_20' ) start [2024-12-31 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146856', 'tblTempUsageDetail_20' ) end [2024-12-31 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146856', 'tblTempVendorCDR_20' ) start [2024-12-31 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146856', 'tblTempVendorCDR_20' ) end [2024-12-31 23:19:17] Production.INFO: ProcessCDR(1,14146856,1,1,2) [2024-12-31 23:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146856', 'tblTempUsageDetail_20' ) start [2024-12-31 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146856', 'tblTempUsageDetail_20' ) end [2024-12-31 23:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:19:22] Production.INFO: ==9060== Releasing lock... [2024-12-31 23:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:19:22] Production.INFO: 39.5 MB #Memory Used# [2024-12-31 23:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:20:05 [end_date_ymd] => 2024-12-31 23:20:05 [RateCDR] => 1 ) [2024-12-31 23:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:20:05' and `end` < '2024-12-31 23:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:20:19] Production.INFO: count ==1602 [2024-12-31 23:20:20] Production.ERROR: pbx CDR StartTime 2024-12-31 20:20:05 - End Time 2024-12-31 23:20:05 [2024-12-31 23:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146862', 'tblTempUsageDetail_20' ) start [2024-12-31 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146862', 'tblTempUsageDetail_20' ) end [2024-12-31 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146862', 'tblTempVendorCDR_20' ) start [2024-12-31 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146862', 'tblTempVendorCDR_20' ) end [2024-12-31 23:20:20] Production.INFO: ProcessCDR(1,14146862,1,1,2) [2024-12-31 23:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146862', 'tblTempUsageDetail_20' ) start [2024-12-31 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146862', 'tblTempUsageDetail_20' ) end [2024-12-31 23:20:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:20:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:20:23] Production.INFO: ==9135== Releasing lock... [2024-12-31 23:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:20:23] Production.INFO: 40 MB #Memory Used# [2024-12-31 23:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:21:04 [end_date_ymd] => 2024-12-31 23:21:04 [RateCDR] => 1 ) [2024-12-31 23:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:21:04' and `end` < '2024-12-31 23:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:21:18] Production.INFO: count ==1621 [2024-12-31 23:21:18] Production.ERROR: pbx CDR StartTime 2024-12-31 20:21:04 - End Time 2024-12-31 23:21:04 [2024-12-31 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146867', 'tblTempUsageDetail_20' ) start [2024-12-31 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146867', 'tblTempUsageDetail_20' ) end [2024-12-31 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146867', 'tblTempVendorCDR_20' ) start [2024-12-31 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146867', 'tblTempVendorCDR_20' ) end [2024-12-31 23:21:18] Production.INFO: ProcessCDR(1,14146867,1,1,2) [2024-12-31 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146867', 'tblTempUsageDetail_20' ) start [2024-12-31 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146867', 'tblTempUsageDetail_20' ) end [2024-12-31 23:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:21:22] Production.INFO: ==9249== Releasing lock... [2024-12-31 23:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:21:22] Production.INFO: 40 MB #Memory Used# [2024-12-31 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:22:05 [end_date_ymd] => 2024-12-31 23:22:05 [RateCDR] => 1 ) [2024-12-31 23:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:22:05' and `end` < '2024-12-31 23:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:22:18] Production.INFO: count ==1664 [2024-12-31 23:22:18] Production.ERROR: pbx CDR StartTime 2024-12-31 20:22:05 - End Time 2024-12-31 23:22:05 [2024-12-31 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146872', 'tblTempUsageDetail_20' ) start [2024-12-31 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146872', 'tblTempUsageDetail_20' ) end [2024-12-31 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146872', 'tblTempVendorCDR_20' ) start [2024-12-31 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146872', 'tblTempVendorCDR_20' ) end [2024-12-31 23:22:18] Production.INFO: ProcessCDR(1,14146872,1,1,2) [2024-12-31 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146872', 'tblTempUsageDetail_20' ) start [2024-12-31 23:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146872', 'tblTempUsageDetail_20' ) end [2024-12-31 23:22:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:22:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:22:23] Production.INFO: ==9327== Releasing lock... [2024-12-31 23:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:22:23] Production.INFO: 40.75 MB #Memory Used# [2024-12-31 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:23:05 [end_date_ymd] => 2024-12-31 23:23:05 [RateCDR] => 1 ) [2024-12-31 23:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:23:05' and `end` < '2024-12-31 23:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:23:17] Production.INFO: count ==1701 [2024-12-31 23:23:18] Production.ERROR: pbx CDR StartTime 2024-12-31 20:23:05 - End Time 2024-12-31 23:23:05 [2024-12-31 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146877', 'tblTempUsageDetail_20' ) start [2024-12-31 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146877', 'tblTempUsageDetail_20' ) end [2024-12-31 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146877', 'tblTempVendorCDR_20' ) start [2024-12-31 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146877', 'tblTempVendorCDR_20' ) end [2024-12-31 23:23:18] Production.INFO: ProcessCDR(1,14146877,1,1,2) [2024-12-31 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146877', 'tblTempUsageDetail_20' ) start [2024-12-31 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146877', 'tblTempUsageDetail_20' ) end [2024-12-31 23:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:23:21] Production.INFO: ==9398== Releasing lock... [2024-12-31 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:23:21] Production.INFO: 41 MB #Memory Used# [2024-12-31 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:24:05 [end_date_ymd] => 2024-12-31 23:24:05 [RateCDR] => 1 ) [2024-12-31 23:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:24:05' and `end` < '2024-12-31 23:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:24:18] Production.INFO: count ==1739 [2024-12-31 23:24:18] Production.ERROR: pbx CDR StartTime 2024-12-31 20:24:05 - End Time 2024-12-31 23:24:05 [2024-12-31 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146882', 'tblTempUsageDetail_20' ) start [2024-12-31 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146882', 'tblTempUsageDetail_20' ) end [2024-12-31 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146882', 'tblTempVendorCDR_20' ) start [2024-12-31 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146882', 'tblTempVendorCDR_20' ) end [2024-12-31 23:24:18] Production.INFO: ProcessCDR(1,14146882,1,1,2) [2024-12-31 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146882', 'tblTempUsageDetail_20' ) start [2024-12-31 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146882', 'tblTempUsageDetail_20' ) end [2024-12-31 23:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:24:22] Production.INFO: ==9476== Releasing lock... [2024-12-31 23:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:24:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-31 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:25:05 [end_date_ymd] => 2024-12-31 23:25:05 [RateCDR] => 1 ) [2024-12-31 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:25:05' and `end` < '2024-12-31 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:25:18] Production.INFO: count ==1780 [2024-12-31 23:25:18] Production.ERROR: pbx CDR StartTime 2024-12-31 20:25:05 - End Time 2024-12-31 23:25:05 [2024-12-31 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146887', 'tblTempUsageDetail_20' ) start [2024-12-31 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146887', 'tblTempUsageDetail_20' ) end [2024-12-31 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146887', 'tblTempVendorCDR_20' ) start [2024-12-31 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146887', 'tblTempVendorCDR_20' ) end [2024-12-31 23:25:18] Production.INFO: ProcessCDR(1,14146887,1,1,2) [2024-12-31 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146887', 'tblTempUsageDetail_20' ) start [2024-12-31 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146887', 'tblTempUsageDetail_20' ) end [2024-12-31 23:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:25:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:25:22] Production.INFO: ==9552== Releasing lock... [2024-12-31 23:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:25:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-31 23:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:26:04 [end_date_ymd] => 2024-12-31 23:26:04 [RateCDR] => 1 ) [2024-12-31 23:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:26:04' and `end` < '2024-12-31 23:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:26:17] Production.INFO: count ==1817 [2024-12-31 23:26:18] Production.ERROR: pbx CDR StartTime 2024-12-31 20:26:04 - End Time 2024-12-31 23:26:04 [2024-12-31 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146892', 'tblTempUsageDetail_20' ) start [2024-12-31 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146892', 'tblTempUsageDetail_20' ) end [2024-12-31 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146892', 'tblTempVendorCDR_20' ) start [2024-12-31 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146892', 'tblTempVendorCDR_20' ) end [2024-12-31 23:26:18] Production.INFO: ProcessCDR(1,14146892,1,1,2) [2024-12-31 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146892', 'tblTempUsageDetail_20' ) start [2024-12-31 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146892', 'tblTempUsageDetail_20' ) end [2024-12-31 23:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:26:21] Production.INFO: ==9634== Releasing lock... [2024-12-31 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:26:21] Production.INFO: 42 MB #Memory Used# [2024-12-31 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:27:05 [end_date_ymd] => 2024-12-31 23:27:05 [RateCDR] => 1 ) [2024-12-31 23:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:27:05' and `end` < '2024-12-31 23:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:27:18] Production.INFO: count ==1852 [2024-12-31 23:27:19] Production.ERROR: pbx CDR StartTime 2024-12-31 20:27:05 - End Time 2024-12-31 23:27:05 [2024-12-31 23:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146897', 'tblTempUsageDetail_20' ) start [2024-12-31 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146897', 'tblTempUsageDetail_20' ) end [2024-12-31 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146897', 'tblTempVendorCDR_20' ) start [2024-12-31 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146897', 'tblTempVendorCDR_20' ) end [2024-12-31 23:27:19] Production.INFO: ProcessCDR(1,14146897,1,1,2) [2024-12-31 23:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146897', 'tblTempUsageDetail_20' ) start [2024-12-31 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146897', 'tblTempUsageDetail_20' ) end [2024-12-31 23:27:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:27:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:27:22] Production.INFO: ==9706== Releasing lock... [2024-12-31 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:27:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-31 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:28:05 [end_date_ymd] => 2024-12-31 23:28:05 [RateCDR] => 1 ) [2024-12-31 23:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:28:05' and `end` < '2024-12-31 23:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:28:18] Production.INFO: count ==1889 [2024-12-31 23:28:18] Production.ERROR: pbx CDR StartTime 2024-12-31 20:28:05 - End Time 2024-12-31 23:28:05 [2024-12-31 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146902', 'tblTempUsageDetail_20' ) start [2024-12-31 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146902', 'tblTempUsageDetail_20' ) end [2024-12-31 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146902', 'tblTempVendorCDR_20' ) start [2024-12-31 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146902', 'tblTempVendorCDR_20' ) end [2024-12-31 23:28:19] Production.INFO: ProcessCDR(1,14146902,1,1,2) [2024-12-31 23:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146902', 'tblTempUsageDetail_20' ) start [2024-12-31 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146902', 'tblTempUsageDetail_20' ) end [2024-12-31 23:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:28:22] Production.INFO: ==9782== Releasing lock... [2024-12-31 23:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:28:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-31 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:29:05 [end_date_ymd] => 2024-12-31 23:29:05 [RateCDR] => 1 ) [2024-12-31 23:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:29:05' and `end` < '2024-12-31 23:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:29:17] Production.INFO: count ==1926 [2024-12-31 23:29:18] Production.ERROR: pbx CDR StartTime 2024-12-31 20:29:05 - End Time 2024-12-31 23:29:05 [2024-12-31 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146907', 'tblTempUsageDetail_20' ) start [2024-12-31 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146907', 'tblTempUsageDetail_20' ) end [2024-12-31 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146907', 'tblTempVendorCDR_20' ) start [2024-12-31 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146907', 'tblTempVendorCDR_20' ) end [2024-12-31 23:29:18] Production.INFO: ProcessCDR(1,14146907,1,1,2) [2024-12-31 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146907', 'tblTempUsageDetail_20' ) start [2024-12-31 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146907', 'tblTempUsageDetail_20' ) end [2024-12-31 23:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:29:21] Production.INFO: ==9863== Releasing lock... [2024-12-31 23:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:29:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-31 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:30:06 [end_date_ymd] => 2024-12-31 23:30:06 [RateCDR] => 1 ) [2024-12-31 23:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:30:06' and `end` < '2024-12-31 23:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:30:18] Production.INFO: count ==2508 [2024-12-31 23:30:19] Production.ERROR: pbx CDR StartTime 2024-12-31 20:30:06 - End Time 2024-12-31 23:30:06 [2024-12-31 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146912', 'tblTempUsageDetail_20' ) start [2024-12-31 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146912', 'tblTempUsageDetail_20' ) end [2024-12-31 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146912', 'tblTempVendorCDR_20' ) start [2024-12-31 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146912', 'tblTempVendorCDR_20' ) end [2024-12-31 23:30:19] Production.INFO: ProcessCDR(1,14146912,1,1,2) [2024-12-31 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146912', 'tblTempUsageDetail_20' ) start [2024-12-31 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146912', 'tblTempUsageDetail_20' ) end [2024-12-31 23:30:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:30:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:30:24] Production.INFO: ==9948== Releasing lock... [2024-12-31 23:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:30:24] Production.INFO: 46.75 MB #Memory Used# [2024-12-31 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:31:05 [end_date_ymd] => 2024-12-31 23:31:05 [RateCDR] => 1 ) [2024-12-31 23:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:31:05' and `end` < '2024-12-31 23:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:31:17] Production.INFO: count ==2491 [2024-12-31 23:31:18] Production.ERROR: pbx CDR StartTime 2024-12-31 20:31:05 - End Time 2024-12-31 23:31:05 [2024-12-31 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146918', 'tblTempUsageDetail_20' ) start [2024-12-31 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146918', 'tblTempUsageDetail_20' ) end [2024-12-31 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146918', 'tblTempVendorCDR_20' ) start [2024-12-31 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146918', 'tblTempVendorCDR_20' ) end [2024-12-31 23:31:18] Production.INFO: ProcessCDR(1,14146918,1,1,2) [2024-12-31 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146918', 'tblTempUsageDetail_20' ) start [2024-12-31 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146918', 'tblTempUsageDetail_20' ) end [2024-12-31 23:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:31:21] Production.INFO: ==10031== Releasing lock... [2024-12-31 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:31:21] Production.INFO: 46.75 MB #Memory Used# [2024-12-31 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:32:05 [end_date_ymd] => 2024-12-31 23:32:05 [RateCDR] => 1 ) [2024-12-31 23:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:32:05' and `end` < '2024-12-31 23:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:32:18] Production.INFO: count ==2490 [2024-12-31 23:32:19] Production.ERROR: pbx CDR StartTime 2024-12-31 20:32:05 - End Time 2024-12-31 23:32:05 [2024-12-31 23:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146923', 'tblTempUsageDetail_20' ) start [2024-12-31 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146923', 'tblTempUsageDetail_20' ) end [2024-12-31 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146923', 'tblTempVendorCDR_20' ) start [2024-12-31 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146923', 'tblTempVendorCDR_20' ) end [2024-12-31 23:32:19] Production.INFO: ProcessCDR(1,14146923,1,1,2) [2024-12-31 23:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146923', 'tblTempUsageDetail_20' ) start [2024-12-31 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146923', 'tblTempUsageDetail_20' ) end [2024-12-31 23:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:32:22] Production.INFO: ==10108== Releasing lock... [2024-12-31 23:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:32:22] Production.INFO: 46.75 MB #Memory Used# [2024-12-31 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:33:05 [end_date_ymd] => 2024-12-31 23:33:05 [RateCDR] => 1 ) [2024-12-31 23:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:33:05' and `end` < '2024-12-31 23:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:33:18] Production.INFO: count ==2490 [2024-12-31 23:33:19] Production.ERROR: pbx CDR StartTime 2024-12-31 20:33:05 - End Time 2024-12-31 23:33:05 [2024-12-31 23:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146928', 'tblTempUsageDetail_20' ) start [2024-12-31 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146928', 'tblTempUsageDetail_20' ) end [2024-12-31 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146928', 'tblTempVendorCDR_20' ) start [2024-12-31 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146928', 'tblTempVendorCDR_20' ) end [2024-12-31 23:33:19] Production.INFO: ProcessCDR(1,14146928,1,1,2) [2024-12-31 23:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146928', 'tblTempUsageDetail_20' ) start [2024-12-31 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146928', 'tblTempUsageDetail_20' ) end [2024-12-31 23:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:33:22] Production.INFO: ==10188== Releasing lock... [2024-12-31 23:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:33:22] Production.INFO: 46.75 MB #Memory Used# [2024-12-31 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:34:05 [end_date_ymd] => 2024-12-31 23:34:05 [RateCDR] => 1 ) [2024-12-31 23:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:34:05' and `end` < '2024-12-31 23:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:34:17] Production.INFO: count ==2486 [2024-12-31 23:34:18] Production.ERROR: pbx CDR StartTime 2024-12-31 20:34:05 - End Time 2024-12-31 23:34:05 [2024-12-31 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146933', 'tblTempUsageDetail_20' ) start [2024-12-31 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146933', 'tblTempUsageDetail_20' ) end [2024-12-31 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146933', 'tblTempVendorCDR_20' ) start [2024-12-31 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146933', 'tblTempVendorCDR_20' ) end [2024-12-31 23:34:18] Production.INFO: ProcessCDR(1,14146933,1,1,2) [2024-12-31 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146933', 'tblTempUsageDetail_20' ) start [2024-12-31 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146933', 'tblTempUsageDetail_20' ) end [2024-12-31 23:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:34:21] Production.INFO: ==10262== Releasing lock... [2024-12-31 23:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:34:21] Production.INFO: 46.75 MB #Memory Used# [2024-12-31 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:35:05 [end_date_ymd] => 2024-12-31 23:35:05 [RateCDR] => 1 ) [2024-12-31 23:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:35:05' and `end` < '2024-12-31 23:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:35:17] Production.INFO: count ==2487 [2024-12-31 23:35:18] Production.ERROR: pbx CDR StartTime 2024-12-31 20:35:05 - End Time 2024-12-31 23:35:05 [2024-12-31 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146938', 'tblTempUsageDetail_20' ) start [2024-12-31 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146938', 'tblTempUsageDetail_20' ) end [2024-12-31 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146938', 'tblTempVendorCDR_20' ) start [2024-12-31 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146938', 'tblTempVendorCDR_20' ) end [2024-12-31 23:35:18] Production.INFO: ProcessCDR(1,14146938,1,1,2) [2024-12-31 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146938', 'tblTempUsageDetail_20' ) start [2024-12-31 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146938', 'tblTempUsageDetail_20' ) end [2024-12-31 23:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:35:21] Production.INFO: ==10336== Releasing lock... [2024-12-31 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:35:21] Production.INFO: 46.75 MB #Memory Used# [2024-12-31 23:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:36:04 [end_date_ymd] => 2024-12-31 23:36:04 [RateCDR] => 1 ) [2024-12-31 23:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:36:04' and `end` < '2024-12-31 23:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:36:17] Production.INFO: count ==2489 [2024-12-31 23:36:18] Production.ERROR: pbx CDR StartTime 2024-12-31 20:36:04 - End Time 2024-12-31 23:36:04 [2024-12-31 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146943', 'tblTempUsageDetail_20' ) start [2024-12-31 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146943', 'tblTempUsageDetail_20' ) end [2024-12-31 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146943', 'tblTempVendorCDR_20' ) start [2024-12-31 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146943', 'tblTempVendorCDR_20' ) end [2024-12-31 23:36:18] Production.INFO: ProcessCDR(1,14146943,1,1,2) [2024-12-31 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146943', 'tblTempUsageDetail_20' ) start [2024-12-31 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146943', 'tblTempUsageDetail_20' ) end [2024-12-31 23:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:36:21] Production.INFO: ==10417== Releasing lock... [2024-12-31 23:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:36:21] Production.INFO: 46.75 MB #Memory Used# [2024-12-31 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:37:05 [end_date_ymd] => 2024-12-31 23:37:05 [RateCDR] => 1 ) [2024-12-31 23:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:37:05' and `end` < '2024-12-31 23:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:37:17] Production.INFO: count ==2488 [2024-12-31 23:37:18] Production.ERROR: pbx CDR StartTime 2024-12-31 20:37:05 - End Time 2024-12-31 23:37:05 [2024-12-31 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146948', 'tblTempUsageDetail_20' ) start [2024-12-31 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146948', 'tblTempUsageDetail_20' ) end [2024-12-31 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146948', 'tblTempVendorCDR_20' ) start [2024-12-31 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146948', 'tblTempVendorCDR_20' ) end [2024-12-31 23:37:18] Production.INFO: ProcessCDR(1,14146948,1,1,2) [2024-12-31 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146948', 'tblTempUsageDetail_20' ) start [2024-12-31 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146948', 'tblTempUsageDetail_20' ) end [2024-12-31 23:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:37:21] Production.INFO: ==10536== Releasing lock... [2024-12-31 23:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:37:21] Production.INFO: 46.75 MB #Memory Used# [2024-12-31 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:38:05 [end_date_ymd] => 2024-12-31 23:38:05 [RateCDR] => 1 ) [2024-12-31 23:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:38:05' and `end` < '2024-12-31 23:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:38:18] Production.INFO: count ==2486 [2024-12-31 23:38:19] Production.ERROR: pbx CDR StartTime 2024-12-31 20:38:05 - End Time 2024-12-31 23:38:05 [2024-12-31 23:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146953', 'tblTempUsageDetail_20' ) start [2024-12-31 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146953', 'tblTempUsageDetail_20' ) end [2024-12-31 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146953', 'tblTempVendorCDR_20' ) start [2024-12-31 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146953', 'tblTempVendorCDR_20' ) end [2024-12-31 23:38:19] Production.INFO: ProcessCDR(1,14146953,1,1,2) [2024-12-31 23:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146953', 'tblTempUsageDetail_20' ) start [2024-12-31 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146953', 'tblTempUsageDetail_20' ) end [2024-12-31 23:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:38:22] Production.INFO: ==10611== Releasing lock... [2024-12-31 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:38:22] Production.INFO: 46.75 MB #Memory Used# [2024-12-31 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:39:05 [end_date_ymd] => 2024-12-31 23:39:05 [RateCDR] => 1 ) [2024-12-31 23:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:39:05' and `end` < '2024-12-31 23:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:39:17] Production.INFO: count ==2484 [2024-12-31 23:39:18] Production.ERROR: pbx CDR StartTime 2024-12-31 20:39:05 - End Time 2024-12-31 23:39:05 [2024-12-31 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146958', 'tblTempUsageDetail_20' ) start [2024-12-31 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146958', 'tblTempUsageDetail_20' ) end [2024-12-31 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146958', 'tblTempVendorCDR_20' ) start [2024-12-31 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146958', 'tblTempVendorCDR_20' ) end [2024-12-31 23:39:18] Production.INFO: ProcessCDR(1,14146958,1,1,2) [2024-12-31 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146958', 'tblTempUsageDetail_20' ) start [2024-12-31 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146958', 'tblTempUsageDetail_20' ) end [2024-12-31 23:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:39:21] Production.INFO: ==10690== Releasing lock... [2024-12-31 23:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:39:21] Production.INFO: 46.75 MB #Memory Used# [2024-12-31 23:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:40:05 [end_date_ymd] => 2024-12-31 23:40:05 [RateCDR] => 1 ) [2024-12-31 23:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:40:05' and `end` < '2024-12-31 23:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:40:18] Production.INFO: count ==2481 [2024-12-31 23:40:19] Production.ERROR: pbx CDR StartTime 2024-12-31 20:40:05 - End Time 2024-12-31 23:40:05 [2024-12-31 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146963', 'tblTempUsageDetail_20' ) start [2024-12-31 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146963', 'tblTempUsageDetail_20' ) end [2024-12-31 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146963', 'tblTempVendorCDR_20' ) start [2024-12-31 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146963', 'tblTempVendorCDR_20' ) end [2024-12-31 23:40:19] Production.INFO: ProcessCDR(1,14146963,1,1,2) [2024-12-31 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146963', 'tblTempUsageDetail_20' ) start [2024-12-31 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146963', 'tblTempUsageDetail_20' ) end [2024-12-31 23:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:40:22] Production.INFO: ==10767== Releasing lock... [2024-12-31 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:40:22] Production.INFO: 46.75 MB #Memory Used# [2024-12-31 23:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:41:04 [end_date_ymd] => 2024-12-31 23:41:04 [RateCDR] => 1 ) [2024-12-31 23:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:41:04' and `end` < '2024-12-31 23:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:41:17] Production.INFO: count ==2452 [2024-12-31 23:41:18] Production.ERROR: pbx CDR StartTime 2024-12-31 20:41:04 - End Time 2024-12-31 23:41:04 [2024-12-31 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146969', 'tblTempUsageDetail_20' ) start [2024-12-31 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146969', 'tblTempUsageDetail_20' ) end [2024-12-31 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146969', 'tblTempVendorCDR_20' ) start [2024-12-31 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146969', 'tblTempVendorCDR_20' ) end [2024-12-31 23:41:18] Production.INFO: ProcessCDR(1,14146969,1,1,2) [2024-12-31 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146969', 'tblTempUsageDetail_20' ) start [2024-12-31 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146969', 'tblTempUsageDetail_20' ) end [2024-12-31 23:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:41:21] Production.INFO: ==10851== Releasing lock... [2024-12-31 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:41:21] Production.INFO: 46.5 MB #Memory Used# [2024-12-31 23:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:42:04 [end_date_ymd] => 2024-12-31 23:42:04 [RateCDR] => 1 ) [2024-12-31 23:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:42:04' and `end` < '2024-12-31 23:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:42:17] Production.INFO: count ==2452 [2024-12-31 23:42:18] Production.ERROR: pbx CDR StartTime 2024-12-31 20:42:04 - End Time 2024-12-31 23:42:04 [2024-12-31 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146971', 'tblTempUsageDetail_20' ) start [2024-12-31 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146971', 'tblTempUsageDetail_20' ) end [2024-12-31 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146971', 'tblTempVendorCDR_20' ) start [2024-12-31 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146971', 'tblTempVendorCDR_20' ) end [2024-12-31 23:42:18] Production.INFO: ProcessCDR(1,14146971,1,1,2) [2024-12-31 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146971', 'tblTempUsageDetail_20' ) start [2024-12-31 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146971', 'tblTempUsageDetail_20' ) end [2024-12-31 23:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:42:21] Production.INFO: ==10930== Releasing lock... [2024-12-31 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:42:21] Production.INFO: 46.5 MB #Memory Used# [2024-12-31 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:43:05 [end_date_ymd] => 2024-12-31 23:43:05 [RateCDR] => 1 ) [2024-12-31 23:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:43:05' and `end` < '2024-12-31 23:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:43:18] Production.INFO: count ==2451 [2024-12-31 23:43:19] Production.ERROR: pbx CDR StartTime 2024-12-31 20:43:05 - End Time 2024-12-31 23:43:05 [2024-12-31 23:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146979', 'tblTempUsageDetail_20' ) start [2024-12-31 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146979', 'tblTempUsageDetail_20' ) end [2024-12-31 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146979', 'tblTempVendorCDR_20' ) start [2024-12-31 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146979', 'tblTempVendorCDR_20' ) end [2024-12-31 23:43:19] Production.INFO: ProcessCDR(1,14146979,1,1,2) [2024-12-31 23:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146979', 'tblTempUsageDetail_20' ) start [2024-12-31 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146979', 'tblTempUsageDetail_20' ) end [2024-12-31 23:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:43:22] Production.INFO: ==11004== Releasing lock... [2024-12-31 23:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:43:22] Production.INFO: 46.5 MB #Memory Used# [2024-12-31 23:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:44:04 [end_date_ymd] => 2024-12-31 23:44:04 [RateCDR] => 1 ) [2024-12-31 23:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:44:04' and `end` < '2024-12-31 23:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:44:17] Production.INFO: count ==2452 [2024-12-31 23:44:18] Production.ERROR: pbx CDR StartTime 2024-12-31 20:44:04 - End Time 2024-12-31 23:44:04 [2024-12-31 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146984', 'tblTempUsageDetail_20' ) start [2024-12-31 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146984', 'tblTempUsageDetail_20' ) end [2024-12-31 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146984', 'tblTempVendorCDR_20' ) start [2024-12-31 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146984', 'tblTempVendorCDR_20' ) end [2024-12-31 23:44:18] Production.INFO: ProcessCDR(1,14146984,1,1,2) [2024-12-31 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146984', 'tblTempUsageDetail_20' ) start [2024-12-31 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146984', 'tblTempUsageDetail_20' ) end [2024-12-31 23:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:44:21] Production.INFO: ==11084== Releasing lock... [2024-12-31 23:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:44:21] Production.INFO: 46.5 MB #Memory Used# [2024-12-31 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:45:05 [end_date_ymd] => 2024-12-31 23:45:05 [RateCDR] => 1 ) [2024-12-31 23:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:45:05' and `end` < '2024-12-31 23:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:45:19] Production.INFO: count ==2450 [2024-12-31 23:45:20] Production.ERROR: pbx CDR StartTime 2024-12-31 20:45:05 - End Time 2024-12-31 23:45:05 [2024-12-31 23:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146989', 'tblTempUsageDetail_20' ) start [2024-12-31 23:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146989', 'tblTempUsageDetail_20' ) end [2024-12-31 23:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146989', 'tblTempVendorCDR_20' ) start [2024-12-31 23:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146989', 'tblTempVendorCDR_20' ) end [2024-12-31 23:45:20] Production.INFO: ProcessCDR(1,14146989,1,1,2) [2024-12-31 23:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146989', 'tblTempUsageDetail_20' ) start [2024-12-31 23:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146989', 'tblTempUsageDetail_20' ) end [2024-12-31 23:45:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:45:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:45:23] Production.INFO: ==11164== Releasing lock... [2024-12-31 23:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:45:23] Production.INFO: 46.5 MB #Memory Used# [2024-12-31 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:46:05 [end_date_ymd] => 2024-12-31 23:46:05 [RateCDR] => 1 ) [2024-12-31 23:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:46:05' and `end` < '2024-12-31 23:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:46:20] Production.INFO: count ==2445 [2024-12-31 23:46:21] Production.ERROR: pbx CDR StartTime 2024-12-31 20:46:05 - End Time 2024-12-31 23:46:05 [2024-12-31 23:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146994', 'tblTempUsageDetail_20' ) start [2024-12-31 23:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146994', 'tblTempUsageDetail_20' ) end [2024-12-31 23:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146994', 'tblTempVendorCDR_20' ) start [2024-12-31 23:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146994', 'tblTempVendorCDR_20' ) end [2024-12-31 23:46:21] Production.INFO: ProcessCDR(1,14146994,1,1,2) [2024-12-31 23:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146994', 'tblTempUsageDetail_20' ) start [2024-12-31 23:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146994', 'tblTempUsageDetail_20' ) end [2024-12-31 23:46:25] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:46:25] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:46:25] Production.INFO: ==11241== Releasing lock... [2024-12-31 23:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:46:25] Production.INFO: 46.5 MB #Memory Used# [2024-12-31 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:47:05 [end_date_ymd] => 2024-12-31 23:47:05 [RateCDR] => 1 ) [2024-12-31 23:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:47:05' and `end` < '2024-12-31 23:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:47:18] Production.INFO: count ==2447 [2024-12-31 23:47:18] Production.ERROR: pbx CDR StartTime 2024-12-31 20:47:05 - End Time 2024-12-31 23:47:05 [2024-12-31 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146999', 'tblTempUsageDetail_20' ) start [2024-12-31 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14146999', 'tblTempUsageDetail_20' ) end [2024-12-31 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146999', 'tblTempVendorCDR_20' ) start [2024-12-31 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14146999', 'tblTempVendorCDR_20' ) end [2024-12-31 23:47:18] Production.INFO: ProcessCDR(1,14146999,1,1,2) [2024-12-31 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14146999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14146999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14146999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14146999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146999', 'tblTempUsageDetail_20' ) start [2024-12-31 23:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14146999', 'tblTempUsageDetail_20' ) end [2024-12-31 23:47:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:47:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:47:23] Production.INFO: ==11323== Releasing lock... [2024-12-31 23:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:47:23] Production.INFO: 46.5 MB #Memory Used# [2024-12-31 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:48:05 [end_date_ymd] => 2024-12-31 23:48:05 [RateCDR] => 1 ) [2024-12-31 23:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:48:05' and `end` < '2024-12-31 23:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:48:18] Production.INFO: count ==2446 [2024-12-31 23:48:18] Production.ERROR: pbx CDR StartTime 2024-12-31 20:48:05 - End Time 2024-12-31 23:48:05 [2024-12-31 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147004', 'tblTempUsageDetail_20' ) start [2024-12-31 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147004', 'tblTempUsageDetail_20' ) end [2024-12-31 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147004', 'tblTempVendorCDR_20' ) start [2024-12-31 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147004', 'tblTempVendorCDR_20' ) end [2024-12-31 23:48:19] Production.INFO: ProcessCDR(1,14147004,1,1,2) [2024-12-31 23:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147004', 'tblTempUsageDetail_20' ) start [2024-12-31 23:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147004', 'tblTempUsageDetail_20' ) end [2024-12-31 23:48:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:48:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:48:23] Production.INFO: ==11400== Releasing lock... [2024-12-31 23:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:48:23] Production.INFO: 46.5 MB #Memory Used# [2024-12-31 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:49:05 [end_date_ymd] => 2024-12-31 23:49:05 [RateCDR] => 1 ) [2024-12-31 23:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:49:05' and `end` < '2024-12-31 23:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:49:17] Production.INFO: count ==2450 [2024-12-31 23:49:18] Production.ERROR: pbx CDR StartTime 2024-12-31 20:49:05 - End Time 2024-12-31 23:49:05 [2024-12-31 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147009', 'tblTempUsageDetail_20' ) start [2024-12-31 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147009', 'tblTempUsageDetail_20' ) end [2024-12-31 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147009', 'tblTempVendorCDR_20' ) start [2024-12-31 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147009', 'tblTempVendorCDR_20' ) end [2024-12-31 23:49:18] Production.INFO: ProcessCDR(1,14147009,1,1,2) [2024-12-31 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147009', 'tblTempUsageDetail_20' ) start [2024-12-31 23:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147009', 'tblTempUsageDetail_20' ) end [2024-12-31 23:49:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:49:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:49:23] Production.INFO: ==11476== Releasing lock... [2024-12-31 23:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:49:23] Production.INFO: 46.5 MB #Memory Used# [2024-12-31 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:50:06 [end_date_ymd] => 2024-12-31 23:50:06 [RateCDR] => 1 ) [2024-12-31 23:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:50:06' and `end` < '2024-12-31 23:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:50:19] Production.INFO: count ==2449 [2024-12-31 23:50:20] Production.ERROR: pbx CDR StartTime 2024-12-31 20:50:06 - End Time 2024-12-31 23:50:06 [2024-12-31 23:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147015', 'tblTempUsageDetail_20' ) start [2024-12-31 23:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147015', 'tblTempUsageDetail_20' ) end [2024-12-31 23:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147015', 'tblTempVendorCDR_20' ) start [2024-12-31 23:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147015', 'tblTempVendorCDR_20' ) end [2024-12-31 23:50:20] Production.INFO: ProcessCDR(1,14147015,1,1,2) [2024-12-31 23:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147015', 'tblTempUsageDetail_20' ) start [2024-12-31 23:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147015', 'tblTempUsageDetail_20' ) end [2024-12-31 23:50:24] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:50:24] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:50:24] Production.INFO: ==11553== Releasing lock... [2024-12-31 23:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:50:24] Production.INFO: 46.5 MB #Memory Used# [2024-12-31 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:51:05 [end_date_ymd] => 2024-12-31 23:51:05 [RateCDR] => 1 ) [2024-12-31 23:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:51:05' and `end` < '2024-12-31 23:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:51:18] Production.INFO: count ==2436 [2024-12-31 23:51:19] Production.ERROR: pbx CDR StartTime 2024-12-31 20:51:05 - End Time 2024-12-31 23:51:05 [2024-12-31 23:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147020', 'tblTempUsageDetail_20' ) start [2024-12-31 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147020', 'tblTempUsageDetail_20' ) end [2024-12-31 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147020', 'tblTempVendorCDR_20' ) start [2024-12-31 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147020', 'tblTempVendorCDR_20' ) end [2024-12-31 23:51:19] Production.INFO: ProcessCDR(1,14147020,1,1,2) [2024-12-31 23:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147020', 'tblTempUsageDetail_20' ) start [2024-12-31 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147020', 'tblTempUsageDetail_20' ) end [2024-12-31 23:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:51:22] Production.INFO: ==11637== Releasing lock... [2024-12-31 23:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:51:22] Production.INFO: 46 MB #Memory Used# [2024-12-31 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:52:05 [end_date_ymd] => 2024-12-31 23:52:05 [RateCDR] => 1 ) [2024-12-31 23:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:52:05' and `end` < '2024-12-31 23:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:52:19] Production.INFO: count ==2437 [2024-12-31 23:52:20] Production.ERROR: pbx CDR StartTime 2024-12-31 20:52:05 - End Time 2024-12-31 23:52:05 [2024-12-31 23:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147025', 'tblTempUsageDetail_20' ) start [2024-12-31 23:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147025', 'tblTempUsageDetail_20' ) end [2024-12-31 23:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147025', 'tblTempVendorCDR_20' ) start [2024-12-31 23:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147025', 'tblTempVendorCDR_20' ) end [2024-12-31 23:52:20] Production.INFO: ProcessCDR(1,14147025,1,1,2) [2024-12-31 23:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147025', 'tblTempUsageDetail_20' ) start [2024-12-31 23:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147025', 'tblTempUsageDetail_20' ) end [2024-12-31 23:52:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:52:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:52:23] Production.INFO: ==11755== Releasing lock... [2024-12-31 23:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:52:23] Production.INFO: 46 MB #Memory Used# [2024-12-31 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:53:05 [end_date_ymd] => 2024-12-31 23:53:05 [RateCDR] => 1 ) [2024-12-31 23:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:53:05' and `end` < '2024-12-31 23:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:53:18] Production.INFO: count ==2437 [2024-12-31 23:53:18] Production.ERROR: pbx CDR StartTime 2024-12-31 20:53:05 - End Time 2024-12-31 23:53:05 [2024-12-31 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147030', 'tblTempUsageDetail_20' ) start [2024-12-31 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147030', 'tblTempUsageDetail_20' ) end [2024-12-31 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147030', 'tblTempVendorCDR_20' ) start [2024-12-31 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147030', 'tblTempVendorCDR_20' ) end [2024-12-31 23:53:18] Production.INFO: ProcessCDR(1,14147030,1,1,2) [2024-12-31 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147030', 'tblTempUsageDetail_20' ) start [2024-12-31 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147030', 'tblTempUsageDetail_20' ) end [2024-12-31 23:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:53:22] Production.INFO: ==11834== Releasing lock... [2024-12-31 23:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:53:22] Production.INFO: 46 MB #Memory Used# [2024-12-31 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:54:05 [end_date_ymd] => 2024-12-31 23:54:05 [RateCDR] => 1 ) [2024-12-31 23:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:54:05' and `end` < '2024-12-31 23:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:54:18] Production.INFO: count ==2435 [2024-12-31 23:54:19] Production.ERROR: pbx CDR StartTime 2024-12-31 20:54:05 - End Time 2024-12-31 23:54:05 [2024-12-31 23:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147035', 'tblTempUsageDetail_20' ) start [2024-12-31 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147035', 'tblTempUsageDetail_20' ) end [2024-12-31 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147035', 'tblTempVendorCDR_20' ) start [2024-12-31 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147035', 'tblTempVendorCDR_20' ) end [2024-12-31 23:54:19] Production.INFO: ProcessCDR(1,14147035,1,1,2) [2024-12-31 23:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147035', 'tblTempUsageDetail_20' ) start [2024-12-31 23:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147035', 'tblTempUsageDetail_20' ) end [2024-12-31 23:54:23] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:54:23] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:54:23] Production.INFO: ==11908== Releasing lock... [2024-12-31 23:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:54:23] Production.INFO: 46.25 MB #Memory Used# [2024-12-31 23:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:55:04 [end_date_ymd] => 2024-12-31 23:55:04 [RateCDR] => 1 ) [2024-12-31 23:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:55:04' and `end` < '2024-12-31 23:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:55:17] Production.INFO: count ==2435 [2024-12-31 23:55:18] Production.ERROR: pbx CDR StartTime 2024-12-31 20:55:04 - End Time 2024-12-31 23:55:04 [2024-12-31 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147040', 'tblTempUsageDetail_20' ) start [2024-12-31 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147040', 'tblTempUsageDetail_20' ) end [2024-12-31 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147040', 'tblTempVendorCDR_20' ) start [2024-12-31 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147040', 'tblTempVendorCDR_20' ) end [2024-12-31 23:55:18] Production.INFO: ProcessCDR(1,14147040,1,1,2) [2024-12-31 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147040', 'tblTempUsageDetail_20' ) start [2024-12-31 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147040', 'tblTempUsageDetail_20' ) end [2024-12-31 23:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:55:21] Production.INFO: ==11986== Releasing lock... [2024-12-31 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:55:21] Production.INFO: 46.25 MB #Memory Used# [2024-12-31 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:56:05 [end_date_ymd] => 2024-12-31 23:56:05 [RateCDR] => 1 ) [2024-12-31 23:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:56:05' and `end` < '2024-12-31 23:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:56:17] Production.INFO: count ==2431 [2024-12-31 23:56:18] Production.ERROR: pbx CDR StartTime 2024-12-31 20:56:05 - End Time 2024-12-31 23:56:05 [2024-12-31 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147045', 'tblTempUsageDetail_20' ) start [2024-12-31 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147045', 'tblTempUsageDetail_20' ) end [2024-12-31 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147045', 'tblTempVendorCDR_20' ) start [2024-12-31 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147045', 'tblTempVendorCDR_20' ) end [2024-12-31 23:56:18] Production.INFO: ProcessCDR(1,14147045,1,1,2) [2024-12-31 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147045', 'tblTempUsageDetail_20' ) start [2024-12-31 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147045', 'tblTempUsageDetail_20' ) end [2024-12-31 23:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:56:22] Production.INFO: ==12068== Releasing lock... [2024-12-31 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:56:22] Production.INFO: 46.5 MB #Memory Used# [2024-12-31 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:57:05 [end_date_ymd] => 2024-12-31 23:57:05 [RateCDR] => 1 ) [2024-12-31 23:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:57:05' and `end` < '2024-12-31 23:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:57:18] Production.INFO: count ==2428 [2024-12-31 23:57:19] Production.ERROR: pbx CDR StartTime 2024-12-31 20:57:05 - End Time 2024-12-31 23:57:05 [2024-12-31 23:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147050', 'tblTempUsageDetail_20' ) start [2024-12-31 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147050', 'tblTempUsageDetail_20' ) end [2024-12-31 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147050', 'tblTempVendorCDR_20' ) start [2024-12-31 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147050', 'tblTempVendorCDR_20' ) end [2024-12-31 23:57:19] Production.INFO: ProcessCDR(1,14147050,1,1,2) [2024-12-31 23:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147050', 'tblTempUsageDetail_20' ) start [2024-12-31 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147050', 'tblTempUsageDetail_20' ) end [2024-12-31 23:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:57:22] Production.INFO: ==12149== Releasing lock... [2024-12-31 23:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:57:22] Production.INFO: 46.5 MB #Memory Used# [2024-12-31 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:58:05 [end_date_ymd] => 2024-12-31 23:58:05 [RateCDR] => 1 ) [2024-12-31 23:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:58:05' and `end` < '2024-12-31 23:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:58:18] Production.INFO: count ==2423 [2024-12-31 23:58:18] Production.ERROR: pbx CDR StartTime 2024-12-31 20:58:05 - End Time 2024-12-31 23:58:05 [2024-12-31 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147055', 'tblTempUsageDetail_20' ) start [2024-12-31 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147055', 'tblTempUsageDetail_20' ) end [2024-12-31 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147055', 'tblTempVendorCDR_20' ) start [2024-12-31 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147055', 'tblTempVendorCDR_20' ) end [2024-12-31 23:58:19] Production.INFO: ProcessCDR(1,14147055,1,1,2) [2024-12-31 23:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147055', 'tblTempUsageDetail_20' ) start [2024-12-31 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147055', 'tblTempUsageDetail_20' ) end [2024-12-31 23:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:58:22] Production.INFO: ==12228== Releasing lock... [2024-12-31 23:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:58:22] Production.INFO: 46.25 MB #Memory Used# [2024-12-31 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 20:59:05 [end_date_ymd] => 2024-12-31 23:59:05 [RateCDR] => 1 ) [2024-12-31 23:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 20:59:05' and `end` < '2024-12-31 23:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-31 23:59:18] Production.INFO: count ==2414 [2024-12-31 23:59:19] Production.ERROR: pbx CDR StartTime 2024-12-31 20:59:05 - End Time 2024-12-31 23:59:05 [2024-12-31 23:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-31 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147060', 'tblTempUsageDetail_20' ) start [2024-12-31 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147060', 'tblTempUsageDetail_20' ) end [2024-12-31 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147060', 'tblTempVendorCDR_20' ) start [2024-12-31 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147060', 'tblTempVendorCDR_20' ) end [2024-12-31 23:59:19] Production.INFO: ProcessCDR(1,14147060,1,1,2) [2024-12-31 23:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-31 23:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-31 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147060', 'tblTempUsageDetail_20' ) start [2024-12-31 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147060', 'tblTempUsageDetail_20' ) end [2024-12-31 23:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-31 23:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-31 23:59:22] Production.INFO: ==12308== Releasing lock... [2024-12-31 23:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-31 23:59:22] Production.INFO: 46.25 MB #Memory Used#