[2025-07-28 00:25:04] Production.INFO: next invoice date [2025-07-28 00:25:04] Production.INFO: 2025-08-28 [2025-07-28 00:25:04] Production.INFO: getdaysdiff [2025-07-28 00:25:04] Production.INFO: +31 [2025-07-28 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (103,10,2,31,31,'RMScheduler',2025-07-28 00:25:04,1,0,,,0) [2025-07-28 00:25:04] Production.INFO: next invoice date [2025-07-28 00:25:04] Production.INFO: 2025-08-28 [2025-07-28 00:25:04] Production.INFO: getdaysdiff [2025-07-28 00:25:04] Production.INFO: +31 [2025-07-28 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (103,16,1,31,31,'RMScheduler',2025-07-28 00:25:04,1,0,,,0) [2025-07-28 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-27 21:25:06 [end_date_ymd] => 2025-07-28 00:25:06 [RateCDR] => 1 ) [2025-07-28 00:25: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` >= '2025-07-27 21:25:06' and `end` < '2025-07-28 00:25: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 ,'') [2025-07-28 00:25:19] Production.INFO: count ==6035 [2025-07-28 00:25:22] Production.ERROR: pbx CDR StartTime 2025-07-27 21:25:06 - End Time 2025-07-28 00:25:06 [2025-07-28 00:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-28 00:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15550877', 'tblTempUsageDetail_20' ) start [2025-07-28 00:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15550877', 'tblTempUsageDetail_20' ) end [2025-07-28 00:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15550877', 'tblTempVendorCDR_20' ) start [2025-07-28 00:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15550877', 'tblTempVendorCDR_20' ) end [2025-07-28 00:25:22] Production.INFO: ProcessCDR(1,15550877,1,1,2) [2025-07-28 00:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15550877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 00:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15550877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 00:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15550877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 00:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15550877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 00:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15550877', 'tblTempUsageDetail_20' ) start [2025-07-28 00:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15550877', 'tblTempUsageDetail_20' ) end [2025-07-28 00:25:32] Production.ERROR: pbx prc_insertCDR start [2025-07-28 00:25:32] Production.ERROR: pbx prc_insertCDR end [2025-07-28 00:25:35] Production.INFO: ==26808== Releasing lock... [2025-07-28 00:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-28 00:25:35] Production.INFO: 74.5 MB #Memory Used# [2025-07-28 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-27 22:25:05 [end_date_ymd] => 2025-07-28 01:25:05 [RateCDR] => 1 ) [2025-07-28 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` >= '2025-07-27 22:25:05' and `end` < '2025-07-28 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 ,'') [2025-07-28 01:25:19] Production.INFO: count ==6879 [2025-07-28 01:25:23] Production.ERROR: pbx CDR StartTime 2025-07-27 22:25:05 - End Time 2025-07-28 01:25:05 [2025-07-28 01:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-28 01:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15551124', 'tblTempUsageDetail_20' ) start [2025-07-28 01:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15551124', 'tblTempUsageDetail_20' ) end [2025-07-28 01:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15551124', 'tblTempVendorCDR_20' ) start [2025-07-28 01:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15551124', 'tblTempVendorCDR_20' ) end [2025-07-28 01:25:23] Production.INFO: ProcessCDR(1,15551124,1,1,2) [2025-07-28 01:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15551124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 01:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15551124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 01:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15551124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 01:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15551124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 01:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15551124', 'tblTempUsageDetail_20' ) start [2025-07-28 01:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15551124', 'tblTempUsageDetail_20' ) end [2025-07-28 01:25:32] Production.ERROR: pbx prc_insertCDR start [2025-07-28 01:25:32] Production.ERROR: pbx prc_insertCDR end [2025-07-28 01:25:32] Production.INFO: ==31154== Releasing lock... [2025-07-28 01:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-28 01:25:32] Production.INFO: 79.75 MB #Memory Used# [2025-07-28 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-27 23:25:05 [end_date_ymd] => 2025-07-28 02:25:05 [RateCDR] => 1 ) [2025-07-28 02: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` >= '2025-07-27 23:25:05' and `end` < '2025-07-28 02: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 ,'') [2025-07-28 02:25:18] Production.INFO: count ==5438 [2025-07-28 02:25:21] Production.ERROR: pbx CDR StartTime 2025-07-27 23:25:05 - End Time 2025-07-28 02:25:05 [2025-07-28 02:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-28 02:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15551371', 'tblTempUsageDetail_20' ) start [2025-07-28 02:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15551371', 'tblTempUsageDetail_20' ) end [2025-07-28 02:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15551371', 'tblTempVendorCDR_20' ) start [2025-07-28 02:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15551371', 'tblTempVendorCDR_20' ) end [2025-07-28 02:25:21] Production.INFO: ProcessCDR(1,15551371,1,1,2) [2025-07-28 02:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15551371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 02:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15551371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 02:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15551371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 02:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15551371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 02:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15551371', 'tblTempUsageDetail_20' ) start [2025-07-28 02:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15551371', 'tblTempUsageDetail_20' ) end [2025-07-28 02:25:29] Production.ERROR: pbx prc_insertCDR start [2025-07-28 02:25:29] Production.ERROR: pbx prc_insertCDR end [2025-07-28 02:25:29] Production.INFO: ==3549== Releasing lock... [2025-07-28 02:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-28 02:25:29] Production.INFO: 68.75 MB #Memory Used# [2025-07-28 03:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-28 00:25:06 [end_date_ymd] => 2025-07-28 03:25:06 [RateCDR] => 1 ) [2025-07-28 03:25: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` >= '2025-07-28 00:25:06' and `end` < '2025-07-28 03:25: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 ,'') [2025-07-28 03:25:18] Production.INFO: count ==3196 [2025-07-28 03:25:20] Production.ERROR: pbx CDR StartTime 2025-07-28 00:25:06 - End Time 2025-07-28 03:25:06 [2025-07-28 03:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-28 03:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15551618', 'tblTempUsageDetail_20' ) start [2025-07-28 03:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15551618', 'tblTempUsageDetail_20' ) end [2025-07-28 03:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15551618', 'tblTempVendorCDR_20' ) start [2025-07-28 03:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15551618', 'tblTempVendorCDR_20' ) end [2025-07-28 03:25:20] Production.INFO: ProcessCDR(1,15551618,1,1,2) [2025-07-28 03:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15551618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 03:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15551618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 03:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15551618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 03:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15551618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 03:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15551618', 'tblTempUsageDetail_20' ) start [2025-07-28 03:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15551618', 'tblTempUsageDetail_20' ) end [2025-07-28 03:25:27] Production.ERROR: pbx prc_insertCDR start [2025-07-28 03:25:27] Production.ERROR: pbx prc_insertCDR end [2025-07-28 03:25:27] Production.INFO: ==7840== Releasing lock... [2025-07-28 03:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-28 03:25:27] Production.INFO: 52 MB #Memory Used# [2025-07-28 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-28 01:25:05 [end_date_ymd] => 2025-07-28 04:25:05 [RateCDR] => 1 ) [2025-07-28 04: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` >= '2025-07-28 01:25:05' and `end` < '2025-07-28 04: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 ,'') [2025-07-28 04:25:17] Production.INFO: count ==1420 [2025-07-28 04:25:17] Production.ERROR: pbx CDR StartTime 2025-07-28 01:25:05 - End Time 2025-07-28 04:25:05 [2025-07-28 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-28 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15551866', 'tblTempUsageDetail_20' ) start [2025-07-28 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15551866', 'tblTempUsageDetail_20' ) end [2025-07-28 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15551866', 'tblTempVendorCDR_20' ) start [2025-07-28 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15551866', 'tblTempVendorCDR_20' ) end [2025-07-28 04:25:18] Production.INFO: ProcessCDR(1,15551866,1,1,2) [2025-07-28 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15551866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15551866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15551866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 04:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15551866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15551866', 'tblTempUsageDetail_20' ) start [2025-07-28 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15551866', 'tblTempUsageDetail_20' ) end [2025-07-28 04:25:22] Production.ERROR: pbx prc_insertCDR start [2025-07-28 04:25:22] Production.ERROR: pbx prc_insertCDR end [2025-07-28 04:25:22] Production.INFO: ==12282== Releasing lock... [2025-07-28 04:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-28 04:25:22] Production.INFO: 38.75 MB #Memory Used# [2025-07-28 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-28 02:25:05 [end_date_ymd] => 2025-07-28 05:25:05 [RateCDR] => 1 ) [2025-07-28 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` >= '2025-07-28 02:25:05' and `end` < '2025-07-28 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 ,'') [2025-07-28 05:25:17] Production.INFO: count ==338 [2025-07-28 05:25:18] Production.ERROR: pbx CDR StartTime 2025-07-28 02:25:05 - End Time 2025-07-28 05:25:05 [2025-07-28 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-28 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15552114', 'tblTempUsageDetail_20' ) start [2025-07-28 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15552114', 'tblTempUsageDetail_20' ) end [2025-07-28 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15552114', 'tblTempVendorCDR_20' ) start [2025-07-28 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15552114', 'tblTempVendorCDR_20' ) end [2025-07-28 05:25:18] Production.INFO: ProcessCDR(1,15552114,1,1,2) [2025-07-28 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15552114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15552114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15552114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 05:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15552114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15552114', 'tblTempUsageDetail_20' ) start [2025-07-28 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15552114', 'tblTempUsageDetail_20' ) end [2025-07-28 05:25:22] Production.ERROR: pbx prc_insertCDR start [2025-07-28 05:25:22] Production.ERROR: pbx prc_insertCDR end [2025-07-28 05:25:22] Production.INFO: ==16799== Releasing lock... [2025-07-28 05:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-28 05:25:22] Production.INFO: 31 MB #Memory Used# [2025-07-28 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-28 03:25:05 [end_date_ymd] => 2025-07-28 06:25:05 [RateCDR] => 1 ) [2025-07-28 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` >= '2025-07-28 03:25:05' and `end` < '2025-07-28 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 ,'') [2025-07-28 06:25:17] Production.INFO: count ==115 [2025-07-28 06:25:17] Production.ERROR: pbx CDR StartTime 2025-07-28 03:25:05 - End Time 2025-07-28 06:25:05 [2025-07-28 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-28 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15552361', 'tblTempUsageDetail_20' ) start [2025-07-28 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15552361', 'tblTempUsageDetail_20' ) end [2025-07-28 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15552361', 'tblTempVendorCDR_20' ) start [2025-07-28 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15552361', 'tblTempVendorCDR_20' ) end [2025-07-28 06:25:17] Production.INFO: ProcessCDR(1,15552361,1,1,2) [2025-07-28 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15552361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 06:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15552361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 06:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15552361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 06:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15552361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15552361', 'tblTempUsageDetail_20' ) start [2025-07-28 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15552361', 'tblTempUsageDetail_20' ) end [2025-07-28 06:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-28 06:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-28 06:25:24] Production.INFO: ==21576== Releasing lock... [2025-07-28 06:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-28 06:25:24] Production.INFO: 29 MB #Memory Used# [2025-07-28 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-28 04:25:06 [end_date_ymd] => 2025-07-28 07:25:06 [RateCDR] => 1 ) [2025-07-28 07:25: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` >= '2025-07-28 04:25:06' and `end` < '2025-07-28 07:25: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 ,'') [2025-07-28 07:25:18] Production.INFO: count ==172 [2025-07-28 07:25:18] Production.ERROR: pbx CDR StartTime 2025-07-28 04:25:06 - End Time 2025-07-28 07:25:06 [2025-07-28 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-28 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15552608', 'tblTempUsageDetail_20' ) start [2025-07-28 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15552608', 'tblTempUsageDetail_20' ) end [2025-07-28 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15552608', 'tblTempVendorCDR_20' ) start [2025-07-28 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15552608', 'tblTempVendorCDR_20' ) end [2025-07-28 07:25:18] Production.INFO: ProcessCDR(1,15552608,1,1,2) [2025-07-28 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15552608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15552608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15552608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 07:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15552608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15552608', 'tblTempUsageDetail_20' ) start [2025-07-28 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15552608', 'tblTempUsageDetail_20' ) end [2025-07-28 07:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-28 07:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-28 07:25:25] Production.INFO: ==25991== Releasing lock... [2025-07-28 07:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-28 07:25:25] Production.INFO: 29.5 MB #Memory Used# [2025-07-28 08:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-07-28 05:25:04 [end_date_ymd] => 2025-07-28 08:25:04 [RateCDR] => 1 ) [2025-07-28 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` >= '2025-07-28 05:25:04' and `end` < '2025-07-28 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 ,'') [2025-07-28 08:25:17] Production.INFO: count ==459 [2025-07-28 08:25:17] Production.ERROR: pbx CDR StartTime 2025-07-28 05:25:04 - End Time 2025-07-28 08:25:04 [2025-07-28 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-28 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15552855', 'tblTempUsageDetail_20' ) start [2025-07-28 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15552855', 'tblTempUsageDetail_20' ) end [2025-07-28 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15552855', 'tblTempVendorCDR_20' ) start [2025-07-28 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15552855', 'tblTempVendorCDR_20' ) end [2025-07-28 08:25:17] Production.INFO: ProcessCDR(1,15552855,1,1,2) [2025-07-28 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15552855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15552855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15552855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 08:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15552855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15552855', 'tblTempUsageDetail_20' ) start [2025-07-28 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15552855', 'tblTempUsageDetail_20' ) end [2025-07-28 08:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-28 08:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-28 08:25:24] Production.INFO: ==30353== Releasing lock... [2025-07-28 08:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-28 08:25:24] Production.INFO: 32.5 MB #Memory Used# [2025-07-28 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-28 06:25:05 [end_date_ymd] => 2025-07-28 09:25:05 [RateCDR] => 1 ) [2025-07-28 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` >= '2025-07-28 06:25:05' and `end` < '2025-07-28 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 ,'') [2025-07-28 09:25:18] Production.INFO: count ==1612 [2025-07-28 09:25:19] Production.ERROR: pbx CDR StartTime 2025-07-28 06:25:05 - End Time 2025-07-28 09:25:05 [2025-07-28 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-28 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15553102', 'tblTempUsageDetail_20' ) start [2025-07-28 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15553102', 'tblTempUsageDetail_20' ) end [2025-07-28 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15553102', 'tblTempVendorCDR_20' ) start [2025-07-28 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15553102', 'tblTempVendorCDR_20' ) end [2025-07-28 09:25:19] Production.INFO: ProcessCDR(1,15553102,1,1,2) [2025-07-28 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15553102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15553102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15553102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 09:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15553102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15553102', 'tblTempUsageDetail_20' ) start [2025-07-28 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15553102', 'tblTempUsageDetail_20' ) end [2025-07-28 09:25:27] Production.ERROR: pbx prc_insertCDR start [2025-07-28 09:25:28] Production.ERROR: pbx prc_insertCDR end [2025-07-28 09:25:28] Production.INFO: ==2717== Releasing lock... [2025-07-28 09:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-28 09:25:28] Production.INFO: 40.25 MB #Memory Used# [2025-07-28 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-28 07:25:05 [end_date_ymd] => 2025-07-28 10:25:05 [RateCDR] => 1 ) [2025-07-28 10: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` >= '2025-07-28 07:25:05' and `end` < '2025-07-28 10: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 ,'') [2025-07-28 10:25:21] Production.INFO: count ==3562 [2025-07-28 10:25:23] Production.ERROR: pbx CDR StartTime 2025-07-28 07:25:05 - End Time 2025-07-28 10:25:05 [2025-07-28 10:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-28 10:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15553349', 'tblTempUsageDetail_20' ) start [2025-07-28 10:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15553349', 'tblTempUsageDetail_20' ) end [2025-07-28 10:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15553349', 'tblTempVendorCDR_20' ) start [2025-07-28 10:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15553349', 'tblTempVendorCDR_20' ) end [2025-07-28 10:25:23] Production.INFO: ProcessCDR(1,15553349,1,1,2) [2025-07-28 10:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15553349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 10:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15553349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 10:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15553349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 10:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15553349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 10:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15553349', 'tblTempUsageDetail_20' ) start [2025-07-28 10:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15553349', 'tblTempUsageDetail_20' ) end [2025-07-28 10:25:32] Production.ERROR: pbx prc_insertCDR start [2025-07-28 10:25:34] Production.ERROR: pbx prc_insertCDR end [2025-07-28 10:25:34] Production.INFO: ==7555== Releasing lock... [2025-07-28 10:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-28 10:25:34] Production.INFO: 54.75 MB #Memory Used# [2025-07-28 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-28 08:25:05 [end_date_ymd] => 2025-07-28 11:25:05 [RateCDR] => 1 ) [2025-07-28 11: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` >= '2025-07-28 08:25:05' and `end` < '2025-07-28 11: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 ,'') [2025-07-28 11:25:19] Production.INFO: count ==5424 [2025-07-28 11:25:22] Production.ERROR: pbx CDR StartTime 2025-07-28 08:25:05 - End Time 2025-07-28 11:25:05 [2025-07-28 11:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-28 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15553596', 'tblTempUsageDetail_20' ) start [2025-07-28 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15553596', 'tblTempUsageDetail_20' ) end [2025-07-28 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15553596', 'tblTempVendorCDR_20' ) start [2025-07-28 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15553596', 'tblTempVendorCDR_20' ) end [2025-07-28 11:25:22] Production.INFO: ProcessCDR(1,15553596,1,1,2) [2025-07-28 11:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15553596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 11:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15553596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 11:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15553596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 11:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15553596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15553596', 'tblTempUsageDetail_20' ) start [2025-07-28 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15553596', 'tblTempUsageDetail_20' ) end [2025-07-28 11:25:31] Production.ERROR: pbx prc_insertCDR start [2025-07-28 11:25:35] Production.ERROR: pbx prc_insertCDR end [2025-07-28 11:25:35] Production.INFO: ==12472== Releasing lock... [2025-07-28 11:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-28 11:25:35] Production.INFO: 68.75 MB #Memory Used# [2025-07-28 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-28 09:25:05 [end_date_ymd] => 2025-07-28 12:25:05 [RateCDR] => 1 ) [2025-07-28 12: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` >= '2025-07-28 09:25:05' and `end` < '2025-07-28 12: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 ,'') [2025-07-28 12:25:21] Production.INFO: count ==6103 [2025-07-28 12:25:24] Production.ERROR: pbx CDR StartTime 2025-07-28 09:25:05 - End Time 2025-07-28 12:25:05 [2025-07-28 12:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-28 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15553843', 'tblTempUsageDetail_20' ) start [2025-07-28 12:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15553843', 'tblTempUsageDetail_20' ) end [2025-07-28 12:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15553843', 'tblTempVendorCDR_20' ) start [2025-07-28 12:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15553843', 'tblTempVendorCDR_20' ) end [2025-07-28 12:25:25] Production.INFO: ProcessCDR(1,15553843,1,1,2) [2025-07-28 12:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15553843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 12:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15553843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 12:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15553843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 12:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15553843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 12:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15553843', 'tblTempUsageDetail_20' ) start [2025-07-28 12:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15553843', 'tblTempUsageDetail_20' ) end [2025-07-28 12:25:34] Production.ERROR: pbx prc_insertCDR start [2025-07-28 12:25:36] Production.ERROR: pbx prc_insertCDR end [2025-07-28 12:25:37] Production.INFO: ==16870== Releasing lock... [2025-07-28 12:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-28 12:25:37] Production.INFO: 74 MB #Memory Used# [2025-07-28 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-28 10:25:05 [end_date_ymd] => 2025-07-28 13:25:05 [RateCDR] => 1 ) [2025-07-28 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` >= '2025-07-28 10:25:05' and `end` < '2025-07-28 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 ,'') [2025-07-28 13:25:19] Production.INFO: count ==6003 [2025-07-28 13:25:22] Production.ERROR: pbx CDR StartTime 2025-07-28 10:25:05 - End Time 2025-07-28 13:25:05 [2025-07-28 13:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-28 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15554090', 'tblTempUsageDetail_20' ) start [2025-07-28 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15554090', 'tblTempUsageDetail_20' ) end [2025-07-28 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15554090', 'tblTempVendorCDR_20' ) start [2025-07-28 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15554090', 'tblTempVendorCDR_20' ) end [2025-07-28 13:25:22] Production.INFO: ProcessCDR(1,15554090,1,1,2) [2025-07-28 13:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15554090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 13:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15554090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 13:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15554090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 13:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15554090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15554090', 'tblTempUsageDetail_20' ) start [2025-07-28 13:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15554090', 'tblTempUsageDetail_20' ) end [2025-07-28 13:25:32] Production.ERROR: pbx prc_insertCDR start [2025-07-28 13:25:34] Production.ERROR: pbx prc_insertCDR end [2025-07-28 13:25:34] Production.INFO: ==21157== Releasing lock... [2025-07-28 13:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-28 13:25:34] Production.INFO: 73.25 MB #Memory Used# [2025-07-28 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-28 11:25:05 [end_date_ymd] => 2025-07-28 14:25:05 [RateCDR] => 1 ) [2025-07-28 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` >= '2025-07-28 11:25:05' and `end` < '2025-07-28 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 ,'') [2025-07-28 14:25:21] Production.INFO: count ==6512 [2025-07-28 14:25:24] Production.ERROR: pbx CDR StartTime 2025-07-28 11:25:05 - End Time 2025-07-28 14:25:05 [2025-07-28 14:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-28 14:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15554337', 'tblTempUsageDetail_20' ) start [2025-07-28 14:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15554337', 'tblTempUsageDetail_20' ) end [2025-07-28 14:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15554337', 'tblTempVendorCDR_20' ) start [2025-07-28 14:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15554337', 'tblTempVendorCDR_20' ) end [2025-07-28 14:25:24] Production.INFO: ProcessCDR(1,15554337,1,1,2) [2025-07-28 14:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15554337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 14:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15554337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 14:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15554337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 14:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15554337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 14:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15554337', 'tblTempUsageDetail_20' ) start [2025-07-28 14:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15554337', 'tblTempUsageDetail_20' ) end [2025-07-28 14:25:34] Production.ERROR: pbx prc_insertCDR start [2025-07-28 14:25:36] Production.ERROR: pbx prc_insertCDR end [2025-07-28 14:25:36] Production.INFO: ==25920== Releasing lock... [2025-07-28 14:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-28 14:25:36] Production.INFO: 77 MB #Memory Used# [2025-07-28 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-28 12:25:05 [end_date_ymd] => 2025-07-28 15:25:05 [RateCDR] => 1 ) [2025-07-28 15: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` >= '2025-07-28 12:25:05' and `end` < '2025-07-28 15: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 ,'') [2025-07-28 15:25:20] Production.INFO: count ==7125 [2025-07-28 15:25:24] Production.ERROR: pbx CDR StartTime 2025-07-28 12:25:05 - End Time 2025-07-28 15:25:05 [2025-07-28 15:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-28 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15554584', 'tblTempUsageDetail_20' ) start [2025-07-28 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15554584', 'tblTempUsageDetail_20' ) end [2025-07-28 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15554584', 'tblTempVendorCDR_20' ) start [2025-07-28 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15554584', 'tblTempVendorCDR_20' ) end [2025-07-28 15:25:24] Production.INFO: ProcessCDR(1,15554584,1,1,2) [2025-07-28 15:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15554584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 15:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15554584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 15:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15554584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 15:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15554584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 15:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15554584', 'tblTempUsageDetail_20' ) start [2025-07-28 15:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15554584', 'tblTempUsageDetail_20' ) end [2025-07-28 15:25:34] Production.ERROR: pbx prc_insertCDR start [2025-07-28 15:25:37] Production.ERROR: pbx prc_insertCDR end [2025-07-28 15:25:37] Production.INFO: ==30426== Releasing lock... [2025-07-28 15:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-28 15:25:37] Production.INFO: 82 MB #Memory Used# [2025-07-28 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-28 13:25:05 [end_date_ymd] => 2025-07-28 16:25:05 [RateCDR] => 1 ) [2025-07-28 16: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` >= '2025-07-28 13:25:05' and `end` < '2025-07-28 16: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 ,'') [2025-07-28 16:25:30] Production.INFO: count ==8781 [2025-07-28 16:25:34] Production.ERROR: pbx CDR StartTime 2025-07-28 13:25:05 - End Time 2025-07-28 16:25:05 [2025-07-28 16:25:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-28 16:25:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15554831', 'tblTempUsageDetail_20' ) start [2025-07-28 16:25:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15554831', 'tblTempUsageDetail_20' ) end [2025-07-28 16:25:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15554831', 'tblTempVendorCDR_20' ) start [2025-07-28 16:25:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15554831', 'tblTempVendorCDR_20' ) end [2025-07-28 16:25:35] Production.INFO: ProcessCDR(1,15554831,1,1,2) [2025-07-28 16:25:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15554831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 16:25:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15554831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 16:25:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15554831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 16:25:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15554831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 16:25:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15554831', 'tblTempUsageDetail_20' ) start [2025-07-28 16:25:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15554831', 'tblTempUsageDetail_20' ) end [2025-07-28 16:25:45] Production.ERROR: pbx prc_insertCDR start [2025-07-28 16:25:47] Production.ERROR: pbx prc_insertCDR end [2025-07-28 16:25:47] Production.INFO: ==2324== Releasing lock... [2025-07-28 16:25:47] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-28 16:25:47] Production.INFO: 94.75 MB #Memory Used# [2025-07-28 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-28 14:25:05 [end_date_ymd] => 2025-07-28 17:25:05 [RateCDR] => 1 ) [2025-07-28 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` >= '2025-07-28 14:25:05' and `end` < '2025-07-28 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 ,'') [2025-07-28 17:25:18] Production.INFO: count ==8005 [2025-07-28 17:25:22] Production.ERROR: pbx CDR StartTime 2025-07-28 14:25:05 - End Time 2025-07-28 17:25:05 [2025-07-28 17:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-28 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15555078', 'tblTempUsageDetail_20' ) start [2025-07-28 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15555078', 'tblTempUsageDetail_20' ) end [2025-07-28 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15555078', 'tblTempVendorCDR_20' ) start [2025-07-28 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15555078', 'tblTempVendorCDR_20' ) end [2025-07-28 17:25:23] Production.INFO: ProcessCDR(1,15555078,1,1,2) [2025-07-28 17:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15555078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 17:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15555078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 17:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15555078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 17:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15555078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 17:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15555078', 'tblTempUsageDetail_20' ) start [2025-07-28 17:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15555078', 'tblTempUsageDetail_20' ) end [2025-07-28 17:25:31] Production.ERROR: pbx prc_insertCDR start [2025-07-28 17:25:33] Production.ERROR: pbx prc_insertCDR end [2025-07-28 17:25:33] Production.INFO: ==6787== Releasing lock... [2025-07-28 17:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-28 17:25:33] Production.INFO: 88.75 MB #Memory Used# [2025-07-28 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-28 15:25:05 [end_date_ymd] => 2025-07-28 18:25:05 [RateCDR] => 1 ) [2025-07-28 18: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` >= '2025-07-28 15:25:05' and `end` < '2025-07-28 18: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 ,'') [2025-07-28 18:25:19] Production.INFO: count ==6619 [2025-07-28 18:25:22] Production.ERROR: pbx CDR StartTime 2025-07-28 15:25:05 - End Time 2025-07-28 18:25:05 [2025-07-28 18:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-28 18:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15555325', 'tblTempUsageDetail_20' ) start [2025-07-28 18:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15555325', 'tblTempUsageDetail_20' ) end [2025-07-28 18:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15555325', 'tblTempVendorCDR_20' ) start [2025-07-28 18:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15555325', 'tblTempVendorCDR_20' ) end [2025-07-28 18:25:23] Production.INFO: ProcessCDR(1,15555325,1,1,2) [2025-07-28 18:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15555325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 18:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15555325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 18:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15555325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 18:27:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15555325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 18:27:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15555325', 'tblTempUsageDetail_20' ) start [2025-07-28 18:27:50] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15555325', 'tblTempUsageDetail_20' ) end [2025-07-28 18:27:50] Production.ERROR: pbx prc_insertCDR start [2025-07-28 18:27:52] Production.ERROR: pbx prc_insertCDR end [2025-07-28 18:27:52] Production.INFO: ==11172== Releasing lock... [2025-07-28 18:27:52] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-28 18:27:52] Production.INFO: 77.75 MB #Memory Used# [2025-07-28 19:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-07-28 16:25:04 [end_date_ymd] => 2025-07-28 19:25:04 [RateCDR] => 1 ) [2025-07-28 19: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` >= '2025-07-28 16:25:04' and `end` < '2025-07-28 19: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 ,'') [2025-07-28 19:25:17] Production.INFO: count ==3862 [2025-07-28 19:25:19] Production.ERROR: pbx CDR StartTime 2025-07-28 16:25:04 - End Time 2025-07-28 19:25:04 [2025-07-28 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-28 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15555570', 'tblTempUsageDetail_20' ) start [2025-07-28 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15555570', 'tblTempUsageDetail_20' ) end [2025-07-28 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15555570', 'tblTempVendorCDR_20' ) start [2025-07-28 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15555570', 'tblTempVendorCDR_20' ) end [2025-07-28 19:25:19] Production.INFO: ProcessCDR(1,15555570,1,1,2) [2025-07-28 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15555570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15555570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15555570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 19:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15555570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15555570', 'tblTempUsageDetail_20' ) start [2025-07-28 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15555570', 'tblTempUsageDetail_20' ) end [2025-07-28 19:25:27] Production.ERROR: pbx prc_insertCDR start [2025-07-28 19:25:28] Production.ERROR: pbx prc_insertCDR end [2025-07-28 19:25:28] Production.INFO: ==15942== Releasing lock... [2025-07-28 19:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-28 19:25:28] Production.INFO: 57 MB #Memory Used# [2025-07-28 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-28 17:25:05 [end_date_ymd] => 2025-07-28 20:25:05 [RateCDR] => 1 ) [2025-07-28 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` >= '2025-07-28 17:25:05' and `end` < '2025-07-28 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 ,'') [2025-07-28 20:25:18] Production.INFO: count ==2557 [2025-07-28 20:25:19] Production.ERROR: pbx CDR StartTime 2025-07-28 17:25:05 - End Time 2025-07-28 20:25:05 [2025-07-28 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-28 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15555817', 'tblTempUsageDetail_20' ) start [2025-07-28 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15555817', 'tblTempUsageDetail_20' ) end [2025-07-28 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15555817', 'tblTempVendorCDR_20' ) start [2025-07-28 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15555817', 'tblTempVendorCDR_20' ) end [2025-07-28 20:25:19] Production.INFO: ProcessCDR(1,15555817,1,1,2) [2025-07-28 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15555817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15555817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15555817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 20:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15555817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15555817', 'tblTempUsageDetail_20' ) start [2025-07-28 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15555817', 'tblTempUsageDetail_20' ) end [2025-07-28 20:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-28 20:25:27] Production.ERROR: pbx prc_insertCDR end [2025-07-28 20:25:27] Production.INFO: ==20416== Releasing lock... [2025-07-28 20:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-28 20:25:27] Production.INFO: 47.5 MB #Memory Used# [2025-07-28 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-28 18:25:05 [end_date_ymd] => 2025-07-28 21:25:05 [RateCDR] => 1 ) [2025-07-28 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` >= '2025-07-28 18:25:05' and `end` < '2025-07-28 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 ,'') [2025-07-28 21:25:18] Production.INFO: count ==1792 [2025-07-28 21:25:18] Production.ERROR: pbx CDR StartTime 2025-07-28 18:25:05 - End Time 2025-07-28 21:25:05 [2025-07-28 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-28 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15556064', 'tblTempUsageDetail_20' ) start [2025-07-28 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15556064', 'tblTempUsageDetail_20' ) end [2025-07-28 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15556064', 'tblTempVendorCDR_20' ) start [2025-07-28 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15556064', 'tblTempVendorCDR_20' ) end [2025-07-28 21:25:18] Production.INFO: ProcessCDR(1,15556064,1,1,2) [2025-07-28 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15556064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15556064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15556064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 21:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15556064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15556064', 'tblTempUsageDetail_20' ) start [2025-07-28 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15556064', 'tblTempUsageDetail_20' ) end [2025-07-28 21:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-28 21:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-28 21:25:26] Production.INFO: ==24659== Releasing lock... [2025-07-28 21:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-28 21:25:26] Production.INFO: 41.5 MB #Memory Used# [2025-07-28 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-28 19:25:05 [end_date_ymd] => 2025-07-28 22:25:05 [RateCDR] => 1 ) [2025-07-28 22: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` >= '2025-07-28 19:25:05' and `end` < '2025-07-28 22: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 ,'') [2025-07-28 22:25:18] Production.INFO: count ==1173 [2025-07-28 22:25:18] Production.ERROR: pbx CDR StartTime 2025-07-28 19:25:05 - End Time 2025-07-28 22:25:05 [2025-07-28 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-28 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15556311', 'tblTempUsageDetail_20' ) start [2025-07-28 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15556311', 'tblTempUsageDetail_20' ) end [2025-07-28 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15556311', 'tblTempVendorCDR_20' ) start [2025-07-28 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15556311', 'tblTempVendorCDR_20' ) end [2025-07-28 22:25:18] Production.INFO: ProcessCDR(1,15556311,1,1,2) [2025-07-28 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15556311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15556311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15556311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 22:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15556311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15556311', 'tblTempUsageDetail_20' ) start [2025-07-28 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15556311', 'tblTempUsageDetail_20' ) end [2025-07-28 22:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-28 22:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-28 22:25:25] Production.INFO: ==29167== Releasing lock... [2025-07-28 22:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-28 22:25:25] Production.INFO: 37.5 MB #Memory Used# [2025-07-28 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-28 20:25:05 [end_date_ymd] => 2025-07-28 23:25:05 [RateCDR] => 1 ) [2025-07-28 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` >= '2025-07-28 20:25:05' and `end` < '2025-07-28 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 ,'') [2025-07-28 23:25:18] Production.INFO: count ==822 [2025-07-28 23:25:18] Production.ERROR: pbx CDR StartTime 2025-07-28 20:25:05 - End Time 2025-07-28 23:25:05 [2025-07-28 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-28 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15556558', 'tblTempUsageDetail_20' ) start [2025-07-28 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15556558', 'tblTempUsageDetail_20' ) end [2025-07-28 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15556558', 'tblTempVendorCDR_20' ) start [2025-07-28 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15556558', 'tblTempVendorCDR_20' ) end [2025-07-28 23:25:18] Production.INFO: ProcessCDR(1,15556558,1,1,2) [2025-07-28 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15556558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15556558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-28 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15556558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 23:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15556558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-28 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15556558', 'tblTempUsageDetail_20' ) start [2025-07-28 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15556558', 'tblTempUsageDetail_20' ) end [2025-07-28 23:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-28 23:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-28 23:25:25] Production.INFO: ==1421== Releasing lock... [2025-07-28 23:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-28 23:25:25] Production.INFO: 34.75 MB #Memory Used#