[2025-07-11 00:25:04] Production.INFO: next invoice date [2025-07-11 00:25:04] Production.INFO: 2025-08-11 [2025-07-11 00:25:04] Production.INFO: getdaysdiff [2025-07-11 00:25:04] Production.INFO: +31 [2025-07-11 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (229,16,1,31,31,'RMScheduler',2025-07-11 00:25:04,1,0,,,0) [2025-07-11 00:25:04] Production.INFO: next invoice date [2025-07-11 00:25:04] Production.INFO: 2025-08-11 [2025-07-11 00:25:04] Production.INFO: getdaysdiff [2025-07-11 00:25:04] Production.INFO: +31 [2025-07-11 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (229,13,2,31,31,'RMScheduler',2025-07-11 00:25:04,1,0,,,0) [2025-07-11 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-10 21:25:05 [end_date_ymd] => 2025-07-11 00:25:05 [RateCDR] => 1 ) [2025-07-11 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` >= '2025-07-10 21:25:05' and `end` < '2025-07-11 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 ,'') [2025-07-11 00:25:18] Production.INFO: count ==851 [2025-07-11 00:25:18] Production.ERROR: pbx CDR StartTime 2025-07-10 21:25:05 - End Time 2025-07-11 00:25:05 [2025-07-11 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-11 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15450121', 'tblTempUsageDetail_20' ) start [2025-07-11 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15450121', 'tblTempUsageDetail_20' ) end [2025-07-11 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15450121', 'tblTempVendorCDR_20' ) start [2025-07-11 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15450121', 'tblTempVendorCDR_20' ) end [2025-07-11 00:25:18] Production.INFO: ProcessCDR(1,15450121,1,1,2) [2025-07-11 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15450121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 00:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15450121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 00:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15450121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 00:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15450121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15450121', 'tblTempUsageDetail_20' ) start [2025-07-11 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15450121', 'tblTempUsageDetail_20' ) end [2025-07-11 00:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-11 00:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-11 00:25:27] Production.INFO: ==15759== Releasing lock... [2025-07-11 00:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-11 00:25:27] Production.INFO: 39.25 MB #Memory Used# [2025-07-11 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-10 22:25:05 [end_date_ymd] => 2025-07-11 01:25:05 [RateCDR] => 1 ) [2025-07-11 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-10 22:25:05' and `end` < '2025-07-11 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-11 01:25:18] Production.INFO: count ==873 [2025-07-11 01:25:18] Production.ERROR: pbx CDR StartTime 2025-07-10 22:25:05 - End Time 2025-07-11 01:25:05 [2025-07-11 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-11 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15450368', 'tblTempUsageDetail_20' ) start [2025-07-11 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15450368', 'tblTempUsageDetail_20' ) end [2025-07-11 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15450368', 'tblTempVendorCDR_20' ) start [2025-07-11 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15450368', 'tblTempVendorCDR_20' ) end [2025-07-11 01:25:18] Production.INFO: ProcessCDR(1,15450368,1,1,2) [2025-07-11 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15450368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 01:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15450368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 01:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15450368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 01:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15450368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15450368', 'tblTempUsageDetail_20' ) start [2025-07-11 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15450368', 'tblTempUsageDetail_20' ) end [2025-07-11 01:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-11 01:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-11 01:25:25] Production.INFO: ==20576== Releasing lock... [2025-07-11 01:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-11 01:25:25] Production.INFO: 35.25 MB #Memory Used# [2025-07-11 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-10 23:25:05 [end_date_ymd] => 2025-07-11 02:25:05 [RateCDR] => 1 ) [2025-07-11 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-10 23:25:05' and `end` < '2025-07-11 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-11 02:25:18] Production.INFO: count ==547 [2025-07-11 02:25:18] Production.ERROR: pbx CDR StartTime 2025-07-10 23:25:05 - End Time 2025-07-11 02:25:05 [2025-07-11 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-11 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15450615', 'tblTempUsageDetail_20' ) start [2025-07-11 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15450615', 'tblTempUsageDetail_20' ) end [2025-07-11 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15450615', 'tblTempVendorCDR_20' ) start [2025-07-11 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15450615', 'tblTempVendorCDR_20' ) end [2025-07-11 02:25:18] Production.INFO: ProcessCDR(1,15450615,1,1,2) [2025-07-11 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15450615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15450615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15450615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 02:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15450615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15450615', 'tblTempUsageDetail_20' ) start [2025-07-11 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15450615', 'tblTempUsageDetail_20' ) end [2025-07-11 02:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-11 02:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-11 02:25:24] Production.INFO: ==26462== Releasing lock... [2025-07-11 02:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-11 02:25:24] Production.INFO: 32.5 MB #Memory Used# [2025-07-11 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-11 00:25:05 [end_date_ymd] => 2025-07-11 03:25:05 [RateCDR] => 1 ) [2025-07-11 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` >= '2025-07-11 00:25:05' and `end` < '2025-07-11 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 ,'') [2025-07-11 03:25:17] Production.INFO: count ==679 [2025-07-11 03:25:17] Production.ERROR: pbx CDR StartTime 2025-07-11 00:25:05 - End Time 2025-07-11 03:25:05 [2025-07-11 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-11 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15450862', 'tblTempUsageDetail_20' ) start [2025-07-11 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15450862', 'tblTempUsageDetail_20' ) end [2025-07-11 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15450862', 'tblTempVendorCDR_20' ) start [2025-07-11 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15450862', 'tblTempVendorCDR_20' ) end [2025-07-11 03:25:17] Production.INFO: ProcessCDR(1,15450862,1,1,2) [2025-07-11 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15450862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 03:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15450862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 03:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15450862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 03:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15450862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15450862', 'tblTempUsageDetail_20' ) start [2025-07-11 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15450862', 'tblTempUsageDetail_20' ) end [2025-07-11 03:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-11 03:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-11 03:25:24] Production.INFO: ==31715== Releasing lock... [2025-07-11 03:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-11 03:25:24] Production.INFO: 33.5 MB #Memory Used# [2025-07-11 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-11 01:25:05 [end_date_ymd] => 2025-07-11 04:25:05 [RateCDR] => 1 ) [2025-07-11 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-11 01:25:05' and `end` < '2025-07-11 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-11 04:25:18] Production.INFO: count ==506 [2025-07-11 04:25:18] Production.ERROR: pbx CDR StartTime 2025-07-11 01:25:05 - End Time 2025-07-11 04:25:05 [2025-07-11 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-11 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15451110', 'tblTempUsageDetail_20' ) start [2025-07-11 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15451110', 'tblTempUsageDetail_20' ) end [2025-07-11 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15451110', 'tblTempVendorCDR_20' ) start [2025-07-11 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15451110', 'tblTempVendorCDR_20' ) end [2025-07-11 04:25:18] Production.INFO: ProcessCDR(1,15451110,1,1,2) [2025-07-11 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15451110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15451110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15451110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 04:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15451110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15451110', 'tblTempUsageDetail_20' ) start [2025-07-11 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15451110', 'tblTempUsageDetail_20' ) end [2025-07-11 04:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-11 04:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-11 04:25:24] Production.INFO: ==3954== Releasing lock... [2025-07-11 04:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-11 04:25:24] Production.INFO: 32.25 MB #Memory Used# [2025-07-11 05:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-11 02:25:06 [end_date_ymd] => 2025-07-11 05:25:06 [RateCDR] => 1 ) [2025-07-11 05: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-11 02:25:06' and `end` < '2025-07-11 05: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-11 05:25:18] Production.INFO: count ==469 [2025-07-11 05:25:18] Production.ERROR: pbx CDR StartTime 2025-07-11 02:25:06 - End Time 2025-07-11 05:25:06 [2025-07-11 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-11 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15451358', 'tblTempUsageDetail_20' ) start [2025-07-11 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15451358', 'tblTempUsageDetail_20' ) end [2025-07-11 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15451358', 'tblTempVendorCDR_20' ) start [2025-07-11 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15451358', 'tblTempVendorCDR_20' ) end [2025-07-11 05:25:19] Production.INFO: ProcessCDR(1,15451358,1,1,2) [2025-07-11 05:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15451358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 05:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15451358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 05:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15451358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 05:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15451358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15451358', 'tblTempUsageDetail_20' ) start [2025-07-11 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15451358', 'tblTempUsageDetail_20' ) end [2025-07-11 05:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-11 05:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-11 05:25:25] Production.INFO: ==8713== Releasing lock... [2025-07-11 05:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-11 05:25:25] Production.INFO: 31.5 MB #Memory Used# [2025-07-11 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-11 03:25:05 [end_date_ymd] => 2025-07-11 06:25:05 [RateCDR] => 1 ) [2025-07-11 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-11 03:25:05' and `end` < '2025-07-11 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-11 06:25:18] Production.INFO: count ==174 [2025-07-11 06:25:18] Production.ERROR: pbx CDR StartTime 2025-07-11 03:25:05 - End Time 2025-07-11 06:25:05 [2025-07-11 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-11 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15451605', 'tblTempUsageDetail_20' ) start [2025-07-11 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15451605', 'tblTempUsageDetail_20' ) end [2025-07-11 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15451605', 'tblTempVendorCDR_20' ) start [2025-07-11 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15451605', 'tblTempVendorCDR_20' ) end [2025-07-11 06:25:18] Production.INFO: ProcessCDR(1,15451605,1,1,2) [2025-07-11 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15451605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15451605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15451605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 06:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15451605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15451605', 'tblTempUsageDetail_20' ) start [2025-07-11 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15451605', 'tblTempUsageDetail_20' ) end [2025-07-11 06:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-11 06:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-11 06:25:24] Production.INFO: ==13314== Releasing lock... [2025-07-11 06:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-11 06:25:24] Production.INFO: 29.75 MB #Memory Used# [2025-07-11 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-11 04:25:05 [end_date_ymd] => 2025-07-11 07:25:05 [RateCDR] => 1 ) [2025-07-11 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` >= '2025-07-11 04:25:05' and `end` < '2025-07-11 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 ,'') [2025-07-11 07:25:18] Production.INFO: count ==184 [2025-07-11 07:25:18] Production.ERROR: pbx CDR StartTime 2025-07-11 04:25:05 - End Time 2025-07-11 07:25:05 [2025-07-11 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-11 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15451852', 'tblTempUsageDetail_20' ) start [2025-07-11 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15451852', 'tblTempUsageDetail_20' ) end [2025-07-11 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15451852', 'tblTempVendorCDR_20' ) start [2025-07-11 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15451852', 'tblTempVendorCDR_20' ) end [2025-07-11 07:25:18] Production.INFO: ProcessCDR(1,15451852,1,1,2) [2025-07-11 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15451852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15451852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15451852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 07:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15451852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15451852', 'tblTempUsageDetail_20' ) start [2025-07-11 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15451852', 'tblTempUsageDetail_20' ) end [2025-07-11 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-11 07:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-11 07:25:24] Production.INFO: ==18729== Releasing lock... [2025-07-11 07:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-11 07:25:24] Production.INFO: 30 MB #Memory Used# [2025-07-11 08:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-07-11 05:25:04 [end_date_ymd] => 2025-07-11 08:25:04 [RateCDR] => 1 ) [2025-07-11 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-11 05:25:04' and `end` < '2025-07-11 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-11 08:25:17] Production.INFO: count ==378 [2025-07-11 08:25:17] Production.ERROR: pbx CDR StartTime 2025-07-11 05:25:04 - End Time 2025-07-11 08:25:04 [2025-07-11 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-11 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15452099', 'tblTempUsageDetail_20' ) start [2025-07-11 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15452099', 'tblTempUsageDetail_20' ) end [2025-07-11 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15452099', 'tblTempVendorCDR_20' ) start [2025-07-11 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15452099', 'tblTempVendorCDR_20' ) end [2025-07-11 08:25:17] Production.INFO: ProcessCDR(1,15452099,1,1,2) [2025-07-11 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15452099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15452099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15452099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 08:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15452099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15452099', 'tblTempUsageDetail_20' ) start [2025-07-11 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15452099', 'tblTempUsageDetail_20' ) end [2025-07-11 08:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-11 08:25:23] Production.ERROR: pbx prc_insertCDR end [2025-07-11 08:25:23] Production.INFO: ==23295== Releasing lock... [2025-07-11 08:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-11 08:25:23] Production.INFO: 32 MB #Memory Used# [2025-07-11 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-11 06:25:05 [end_date_ymd] => 2025-07-11 09:25:05 [RateCDR] => 1 ) [2025-07-11 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-11 06:25:05' and `end` < '2025-07-11 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-11 09:25:18] Production.INFO: count ==1233 [2025-07-11 09:25:18] Production.ERROR: pbx CDR StartTime 2025-07-11 06:25:05 - End Time 2025-07-11 09:25:05 [2025-07-11 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-11 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15452346', 'tblTempUsageDetail_20' ) start [2025-07-11 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15452346', 'tblTempUsageDetail_20' ) end [2025-07-11 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15452346', 'tblTempVendorCDR_20' ) start [2025-07-11 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15452346', 'tblTempVendorCDR_20' ) end [2025-07-11 09:25:18] Production.INFO: ProcessCDR(1,15452346,1,1,2) [2025-07-11 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15452346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15452346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15452346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 09:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15452346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15452346', 'tblTempUsageDetail_20' ) start [2025-07-11 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15452346', 'tblTempUsageDetail_20' ) end [2025-07-11 09:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-11 09:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-11 09:25:26] Production.INFO: ==27849== Releasing lock... [2025-07-11 09:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-11 09:25:26] Production.INFO: 38.25 MB #Memory Used# [2025-07-11 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-11 07:25:05 [end_date_ymd] => 2025-07-11 10:25:05 [RateCDR] => 1 ) [2025-07-11 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-11 07:25:05' and `end` < '2025-07-11 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-11 10:25:19] Production.INFO: count ==2852 [2025-07-11 10:25:20] Production.ERROR: pbx CDR StartTime 2025-07-11 07:25:05 - End Time 2025-07-11 10:25:05 [2025-07-11 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-11 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15452593', 'tblTempUsageDetail_20' ) start [2025-07-11 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15452593', 'tblTempUsageDetail_20' ) end [2025-07-11 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15452593', 'tblTempVendorCDR_20' ) start [2025-07-11 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15452593', 'tblTempVendorCDR_20' ) end [2025-07-11 10:25:20] Production.INFO: ProcessCDR(1,15452593,1,1,2) [2025-07-11 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15452593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 10:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15452593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 10:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15452593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 10:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15452593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 10:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15452593', 'tblTempUsageDetail_20' ) start [2025-07-11 10:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15452593', 'tblTempUsageDetail_20' ) end [2025-07-11 10:25:28] Production.ERROR: pbx prc_insertCDR start [2025-07-11 10:25:30] Production.ERROR: pbx prc_insertCDR end [2025-07-11 10:25:30] Production.INFO: ==32292== Releasing lock... [2025-07-11 10:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-11 10:25:30] Production.INFO: 49.25 MB #Memory Used# [2025-07-11 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-11 08:25:05 [end_date_ymd] => 2025-07-11 11:25:05 [RateCDR] => 1 ) [2025-07-11 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-11 08:25:05' and `end` < '2025-07-11 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-11 11:25:19] Production.INFO: count ==4427 [2025-07-11 11:25:21] Production.ERROR: pbx CDR StartTime 2025-07-11 08:25:05 - End Time 2025-07-11 11:25:05 [2025-07-11 11:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-11 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15452840', 'tblTempUsageDetail_20' ) start [2025-07-11 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15452840', 'tblTempUsageDetail_20' ) end [2025-07-11 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15452840', 'tblTempVendorCDR_20' ) start [2025-07-11 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15452840', 'tblTempVendorCDR_20' ) end [2025-07-11 11:25:21] Production.INFO: ProcessCDR(1,15452840,1,1,2) [2025-07-11 11:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15452840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 11:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15452840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 11:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15452840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 11:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15452840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 11:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15452840', 'tblTempUsageDetail_20' ) start [2025-07-11 11:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15452840', 'tblTempUsageDetail_20' ) end [2025-07-11 11:25:29] Production.ERROR: pbx prc_insertCDR start [2025-07-11 11:25:31] Production.ERROR: pbx prc_insertCDR end [2025-07-11 11:25:31] Production.INFO: ==4478== Releasing lock... [2025-07-11 11:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-11 11:25:31] Production.INFO: 61.25 MB #Memory Used# [2025-07-11 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-11 09:25:06 [end_date_ymd] => 2025-07-11 12:25:06 [RateCDR] => 1 ) [2025-07-11 12: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-11 09:25:06' and `end` < '2025-07-11 12: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-11 12:25:23] Production.INFO: count ==5193 [2025-07-11 12:25:25] Production.ERROR: pbx CDR StartTime 2025-07-11 09:25:06 - End Time 2025-07-11 12:25:06 [2025-07-11 12:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-11 12:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15453087', 'tblTempUsageDetail_20' ) start [2025-07-11 12:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15453087', 'tblTempUsageDetail_20' ) end [2025-07-11 12:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15453087', 'tblTempVendorCDR_20' ) start [2025-07-11 12:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15453087', 'tblTempVendorCDR_20' ) end [2025-07-11 12:25:26] Production.INFO: ProcessCDR(1,15453087,1,1,2) [2025-07-11 12:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15453087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 12:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15453087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 12:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15453087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 12:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15453087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 12:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15453087', 'tblTempUsageDetail_20' ) start [2025-07-11 12:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15453087', 'tblTempUsageDetail_20' ) end [2025-07-11 12:25:34] Production.ERROR: pbx prc_insertCDR start [2025-07-11 12:25:36] Production.ERROR: pbx prc_insertCDR end [2025-07-11 12:25:36] Production.INFO: ==9077== Releasing lock... [2025-07-11 12:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-11 12:25:36] Production.INFO: 67 MB #Memory Used# [2025-07-11 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-11 10:25:05 [end_date_ymd] => 2025-07-11 13:25:05 [RateCDR] => 1 ) [2025-07-11 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-11 10:25:05' and `end` < '2025-07-11 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-11 13:25:22] Production.INFO: count ==5171 [2025-07-11 13:25:24] Production.ERROR: pbx CDR StartTime 2025-07-11 10:25:05 - End Time 2025-07-11 13:25:05 [2025-07-11 13:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-11 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15453334', 'tblTempUsageDetail_20' ) start [2025-07-11 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15453334', 'tblTempUsageDetail_20' ) end [2025-07-11 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15453334', 'tblTempVendorCDR_20' ) start [2025-07-11 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15453334', 'tblTempVendorCDR_20' ) end [2025-07-11 13:25:24] Production.INFO: ProcessCDR(1,15453334,1,1,2) [2025-07-11 13:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15453334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 13:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15453334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 13:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15453334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 13:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15453334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 13:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15453334', 'tblTempUsageDetail_20' ) start [2025-07-11 13:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15453334', 'tblTempUsageDetail_20' ) end [2025-07-11 13:25:33] Production.ERROR: pbx prc_insertCDR start [2025-07-11 13:25:35] Production.ERROR: pbx prc_insertCDR end [2025-07-11 13:25:35] Production.INFO: ==13363== Releasing lock... [2025-07-11 13:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-11 13:25:35] Production.INFO: 67 MB #Memory Used# [2025-07-11 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-11 11:25:05 [end_date_ymd] => 2025-07-11 14:25:05 [RateCDR] => 1 ) [2025-07-11 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-11 11:25:05' and `end` < '2025-07-11 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-11 14:25:21] Production.INFO: count ==5070 [2025-07-11 14:25:23] Production.ERROR: pbx CDR StartTime 2025-07-11 11:25:05 - End Time 2025-07-11 14:25:05 [2025-07-11 14:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-11 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15453581', 'tblTempUsageDetail_20' ) start [2025-07-11 14:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15453581', 'tblTempUsageDetail_20' ) end [2025-07-11 14:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15453581', 'tblTempVendorCDR_20' ) start [2025-07-11 14:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15453581', 'tblTempVendorCDR_20' ) end [2025-07-11 14:25:24] Production.INFO: ProcessCDR(1,15453581,1,1,2) [2025-07-11 14:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15453581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 14:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15453581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 14:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15453581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 14:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15453581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 14:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15453581', 'tblTempUsageDetail_20' ) start [2025-07-11 14:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15453581', 'tblTempUsageDetail_20' ) end [2025-07-11 14:25:32] Production.ERROR: pbx prc_insertCDR start [2025-07-11 14:25:34] Production.ERROR: pbx prc_insertCDR end [2025-07-11 14:25:34] Production.INFO: ==17998== Releasing lock... [2025-07-11 14:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-11 14:25:34] Production.INFO: 66.25 MB #Memory Used# [2025-07-11 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-11 12:25:05 [end_date_ymd] => 2025-07-11 15:25:05 [RateCDR] => 1 ) [2025-07-11 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-11 12:25:05' and `end` < '2025-07-11 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-11 15:25:19] Production.INFO: count ==5012 [2025-07-11 15:25:21] Production.ERROR: pbx CDR StartTime 2025-07-11 12:25:05 - End Time 2025-07-11 15:25:05 [2025-07-11 15:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-11 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15453828', 'tblTempUsageDetail_20' ) start [2025-07-11 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15453828', 'tblTempUsageDetail_20' ) end [2025-07-11 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15453828', 'tblTempVendorCDR_20' ) start [2025-07-11 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15453828', 'tblTempVendorCDR_20' ) end [2025-07-11 15:25:21] Production.INFO: ProcessCDR(1,15453828,1,1,2) [2025-07-11 15:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15453828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 15:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15453828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 15:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15453828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 15:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15453828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 15:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15453828', 'tblTempUsageDetail_20' ) start [2025-07-11 15:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15453828', 'tblTempUsageDetail_20' ) end [2025-07-11 15:25:29] Production.ERROR: pbx prc_insertCDR start [2025-07-11 15:25:31] Production.ERROR: pbx prc_insertCDR end [2025-07-11 15:25:32] Production.INFO: ==22998== Releasing lock... [2025-07-11 15:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-11 15:25:32] Production.INFO: 65.75 MB #Memory Used# [2025-07-11 16:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-07-11 13:25:04 [end_date_ymd] => 2025-07-11 16:25:04 [RateCDR] => 1 ) [2025-07-11 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` >= '2025-07-11 13:25:04' and `end` < '2025-07-11 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 ,'') [2025-07-11 16:25:19] Production.INFO: count ==4949 [2025-07-11 16:25:22] Production.ERROR: pbx CDR StartTime 2025-07-11 13:25:04 - End Time 2025-07-11 16:25:04 [2025-07-11 16:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-11 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15454075', 'tblTempUsageDetail_20' ) start [2025-07-11 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15454075', 'tblTempUsageDetail_20' ) end [2025-07-11 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15454075', 'tblTempVendorCDR_20' ) start [2025-07-11 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15454075', 'tblTempVendorCDR_20' ) end [2025-07-11 16:25:22] Production.INFO: ProcessCDR(1,15454075,1,1,2) [2025-07-11 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15454075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 16:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15454075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 16:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15454075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 16:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15454075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 16:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15454075', 'tblTempUsageDetail_20' ) start [2025-07-11 16:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15454075', 'tblTempUsageDetail_20' ) end [2025-07-11 16:25:32] Production.ERROR: pbx prc_insertCDR start [2025-07-11 16:25:34] Production.ERROR: pbx prc_insertCDR end [2025-07-11 16:25:34] Production.INFO: ==27521== Releasing lock... [2025-07-11 16:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-11 16:25:34] Production.INFO: 65.25 MB #Memory Used# [2025-07-11 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-11 14:25:05 [end_date_ymd] => 2025-07-11 17:25:05 [RateCDR] => 1 ) [2025-07-11 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-11 14:25:05' and `end` < '2025-07-11 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-11 17:25:19] Production.INFO: count ==4696 [2025-07-11 17:25:21] Production.ERROR: pbx CDR StartTime 2025-07-11 14:25:05 - End Time 2025-07-11 17:25:05 [2025-07-11 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-11 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15454322', 'tblTempUsageDetail_20' ) start [2025-07-11 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15454322', 'tblTempUsageDetail_20' ) end [2025-07-11 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15454322', 'tblTempVendorCDR_20' ) start [2025-07-11 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15454322', 'tblTempVendorCDR_20' ) end [2025-07-11 17:25:22] Production.INFO: ProcessCDR(1,15454322,1,1,2) [2025-07-11 17:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15454322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 17:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15454322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 17:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15454322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 17:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15454322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 17:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15454322', 'tblTempUsageDetail_20' ) start [2025-07-11 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15454322', 'tblTempUsageDetail_20' ) end [2025-07-11 17:25:30] Production.ERROR: pbx prc_insertCDR start [2025-07-11 17:25:32] Production.ERROR: pbx prc_insertCDR end [2025-07-11 17:25:32] Production.INFO: ==31830== Releasing lock... [2025-07-11 17:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-11 17:25:32] Production.INFO: 63.25 MB #Memory Used# [2025-07-11 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-11 15:25:05 [end_date_ymd] => 2025-07-11 18:25:05 [RateCDR] => 1 ) [2025-07-11 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-11 15:25:05' and `end` < '2025-07-11 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-11 18:25:19] Production.INFO: count ==4140 [2025-07-11 18:25:21] Production.ERROR: pbx CDR StartTime 2025-07-11 15:25:05 - End Time 2025-07-11 18:25:05 [2025-07-11 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-11 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15454569', 'tblTempUsageDetail_20' ) start [2025-07-11 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15454569', 'tblTempUsageDetail_20' ) end [2025-07-11 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15454569', 'tblTempVendorCDR_20' ) start [2025-07-11 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15454569', 'tblTempVendorCDR_20' ) end [2025-07-11 18:25:21] Production.INFO: ProcessCDR(1,15454569,1,1,2) [2025-07-11 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15454569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15454569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15454569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 18:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15454569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 18:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15454569', 'tblTempUsageDetail_20' ) start [2025-07-11 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15454569', 'tblTempUsageDetail_20' ) end [2025-07-11 18:25:29] Production.ERROR: pbx prc_insertCDR start [2025-07-11 18:25:30] Production.ERROR: pbx prc_insertCDR end [2025-07-11 18:25:30] Production.INFO: ==3820== Releasing lock... [2025-07-11 18:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-11 18:25:30] Production.INFO: 59.25 MB #Memory Used# [2025-07-11 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-11 16:25:05 [end_date_ymd] => 2025-07-11 19:25:05 [RateCDR] => 1 ) [2025-07-11 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` >= '2025-07-11 16:25:05' and `end` < '2025-07-11 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 ,'') [2025-07-11 19:25:18] Production.INFO: count ==3343 [2025-07-11 19:25:20] Production.ERROR: pbx CDR StartTime 2025-07-11 16:25:05 - End Time 2025-07-11 19:25:05 [2025-07-11 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-11 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15454812', 'tblTempUsageDetail_20' ) start [2025-07-11 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15454812', 'tblTempUsageDetail_20' ) end [2025-07-11 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15454812', 'tblTempVendorCDR_20' ) start [2025-07-11 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15454812', 'tblTempVendorCDR_20' ) end [2025-07-11 19:25:20] Production.INFO: ProcessCDR(1,15454812,1,1,2) [2025-07-11 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15454812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15454812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15454812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 19:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15454812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15454812', 'tblTempUsageDetail_20' ) start [2025-07-11 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15454812', 'tblTempUsageDetail_20' ) end [2025-07-11 19:25:28] Production.ERROR: pbx prc_insertCDR start [2025-07-11 19:25:28] Production.ERROR: pbx prc_insertCDR end [2025-07-11 19:25:28] Production.INFO: ==8132== Releasing lock... [2025-07-11 19:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-11 19:25:28] Production.INFO: 53.25 MB #Memory Used# [2025-07-11 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-11 17:25:05 [end_date_ymd] => 2025-07-11 20:25:05 [RateCDR] => 1 ) [2025-07-11 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-11 17:25:05' and `end` < '2025-07-11 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-11 20:25:18] Production.INFO: count ==2619 [2025-07-11 20:25:19] Production.ERROR: pbx CDR StartTime 2025-07-11 17:25:05 - End Time 2025-07-11 20:25:05 [2025-07-11 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-11 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15455059', 'tblTempUsageDetail_20' ) start [2025-07-11 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15455059', 'tblTempUsageDetail_20' ) end [2025-07-11 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15455059', 'tblTempVendorCDR_20' ) start [2025-07-11 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15455059', 'tblTempVendorCDR_20' ) end [2025-07-11 20:25:19] Production.INFO: ProcessCDR(1,15455059,1,1,2) [2025-07-11 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15455059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15455059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15455059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 20:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15455059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15455059', 'tblTempUsageDetail_20' ) start [2025-07-11 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15455059', 'tblTempUsageDetail_20' ) end [2025-07-11 20:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-11 20:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-11 20:25:26] Production.INFO: ==12774== Releasing lock... [2025-07-11 20:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-11 20:25:26] Production.INFO: 47.75 MB #Memory Used# [2025-07-11 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-11 18:25:05 [end_date_ymd] => 2025-07-11 21:25:05 [RateCDR] => 1 ) [2025-07-11 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-11 18:25:05' and `end` < '2025-07-11 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-11 21:25:17] Production.INFO: count ==2011 [2025-07-11 21:25:18] Production.ERROR: pbx CDR StartTime 2025-07-11 18:25:05 - End Time 2025-07-11 21:25:05 [2025-07-11 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-11 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15455306', 'tblTempUsageDetail_20' ) start [2025-07-11 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15455306', 'tblTempUsageDetail_20' ) end [2025-07-11 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15455306', 'tblTempVendorCDR_20' ) start [2025-07-11 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15455306', 'tblTempVendorCDR_20' ) end [2025-07-11 21:25:18] Production.INFO: ProcessCDR(1,15455306,1,1,2) [2025-07-11 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15455306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15455306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15455306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 21:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15455306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15455306', 'tblTempUsageDetail_20' ) start [2025-07-11 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15455306', 'tblTempUsageDetail_20' ) end [2025-07-11 21:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-11 21:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-11 21:25:25] Production.INFO: ==17618== Releasing lock... [2025-07-11 21:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-11 21:25:25] Production.INFO: 43.25 MB #Memory Used# [2025-07-11 22:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-11 19:25:06 [end_date_ymd] => 2025-07-11 22:25:06 [RateCDR] => 1 ) [2025-07-11 22: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-11 19:25:06' and `end` < '2025-07-11 22: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-11 22:25:18] Production.INFO: count ==1607 [2025-07-11 22:25:19] Production.ERROR: pbx CDR StartTime 2025-07-11 19:25:06 - End Time 2025-07-11 22:25:06 [2025-07-11 22:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-11 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15455553', 'tblTempUsageDetail_20' ) start [2025-07-11 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15455553', 'tblTempUsageDetail_20' ) end [2025-07-11 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15455553', 'tblTempVendorCDR_20' ) start [2025-07-11 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15455553', 'tblTempVendorCDR_20' ) end [2025-07-11 22:25:19] Production.INFO: ProcessCDR(1,15455553,1,1,2) [2025-07-11 22:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15455553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15455553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15455553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 22:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15455553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15455553', 'tblTempUsageDetail_20' ) start [2025-07-11 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15455553', 'tblTempUsageDetail_20' ) end [2025-07-11 22:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-11 22:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-11 22:25:26] Production.INFO: ==22410== Releasing lock... [2025-07-11 22:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-11 22:25:26] Production.INFO: 40.5 MB #Memory Used# [2025-07-11 23:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-11 20:25:06 [end_date_ymd] => 2025-07-11 23:25:06 [RateCDR] => 1 ) [2025-07-11 23: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-11 20:25:06' and `end` < '2025-07-11 23: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-11 23:25:18] Production.INFO: count ==1220 [2025-07-11 23:25:18] Production.ERROR: pbx CDR StartTime 2025-07-11 20:25:06 - End Time 2025-07-11 23:25:06 [2025-07-11 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-11 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15455800', 'tblTempUsageDetail_20' ) start [2025-07-11 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15455800', 'tblTempUsageDetail_20' ) end [2025-07-11 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15455800', 'tblTempVendorCDR_20' ) start [2025-07-11 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15455800', 'tblTempVendorCDR_20' ) end [2025-07-11 23:25:18] Production.INFO: ProcessCDR(1,15455800,1,1,2) [2025-07-11 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15455800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15455800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-11 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15455800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 23:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15455800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-11 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15455800', 'tblTempUsageDetail_20' ) start [2025-07-11 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15455800', 'tblTempUsageDetail_20' ) end [2025-07-11 23:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-11 23:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-11 23:25:25] Production.INFO: ==26894== Releasing lock... [2025-07-11 23:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-11 23:25:25] Production.INFO: 37.75 MB #Memory Used#