[2025-09-24 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-23 21:25:05 [end_date_ymd] => 2025-09-24 00:25:05 [RateCDR] => 1 ) [2025-09-24 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-09-23 21:25:05' and `end` < '2025-09-24 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-09-24 00:25:21] Production.INFO: count ==552 [2025-09-24 00:25:21] Production.ERROR: pbx CDR StartTime 2025-09-23 21:25:05 - End Time 2025-09-24 00:25:05 [2025-09-24 00:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-24 00:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15894660', 'tblTempUsageDetail_20' ) start [2025-09-24 00:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15894660', 'tblTempUsageDetail_20' ) end [2025-09-24 00:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15894660', 'tblTempVendorCDR_20' ) start [2025-09-24 00:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15894660', 'tblTempVendorCDR_20' ) end [2025-09-24 00:25:21] Production.INFO: ProcessCDR(1,15894660,1,1,2) [2025-09-24 00:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15894660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 00:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15894660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 00:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15894660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 00:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15894660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 00:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15894660', 'tblTempUsageDetail_20' ) start [2025-09-24 00:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15894660', 'tblTempUsageDetail_20' ) end [2025-09-24 00:25:29] Production.ERROR: pbx prc_insertCDR start [2025-09-24 00:25:29] Production.ERROR: pbx prc_insertCDR end [2025-09-24 00:25:30] Production.INFO: ==25701== Releasing lock... [2025-09-24 00:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-24 00:25:30] Production.INFO: 36.25 MB #Memory Used# [2025-09-24 01:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-23 22:25:06 [end_date_ymd] => 2025-09-24 01:25:06 [RateCDR] => 1 ) [2025-09-24 01: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-09-23 22:25:06' and `end` < '2025-09-24 01: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-09-24 01:25:18] Production.INFO: count ==477 [2025-09-24 01:25:18] Production.ERROR: pbx CDR StartTime 2025-09-23 22:25:06 - End Time 2025-09-24 01:25:06 [2025-09-24 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-24 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15894907', 'tblTempUsageDetail_20' ) start [2025-09-24 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15894907', 'tblTempUsageDetail_20' ) end [2025-09-24 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15894907', 'tblTempVendorCDR_20' ) start [2025-09-24 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15894907', 'tblTempVendorCDR_20' ) end [2025-09-24 01:25:18] Production.INFO: ProcessCDR(1,15894907,1,1,2) [2025-09-24 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15894907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 01:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15894907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 01:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15894907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 01:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15894907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15894907', 'tblTempUsageDetail_20' ) start [2025-09-24 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15894907', 'tblTempUsageDetail_20' ) end [2025-09-24 01:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-24 01:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-24 01:25:26] Production.INFO: ==30342== Releasing lock... [2025-09-24 01:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-24 01:25:26] Production.INFO: 32.25 MB #Memory Used# [2025-09-24 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-23 23:25:05 [end_date_ymd] => 2025-09-24 02:25:05 [RateCDR] => 1 ) [2025-09-24 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-09-23 23:25:05' and `end` < '2025-09-24 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-09-24 02:25:17] Production.INFO: count ==318 [2025-09-24 02:25:17] Production.ERROR: pbx CDR StartTime 2025-09-23 23:25:05 - End Time 2025-09-24 02:25:05 [2025-09-24 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-24 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15895154', 'tblTempUsageDetail_20' ) start [2025-09-24 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15895154', 'tblTempUsageDetail_20' ) end [2025-09-24 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15895154', 'tblTempVendorCDR_20' ) start [2025-09-24 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15895154', 'tblTempVendorCDR_20' ) end [2025-09-24 02:25:17] Production.INFO: ProcessCDR(1,15895154,1,1,2) [2025-09-24 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15895154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15895154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15895154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 02:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15895154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15895154', 'tblTempUsageDetail_20' ) start [2025-09-24 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15895154', 'tblTempUsageDetail_20' ) end [2025-09-24 02:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-24 02:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-24 02:25:25] Production.INFO: ==2778== Releasing lock... [2025-09-24 02:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-24 02:25:25] Production.INFO: 31.25 MB #Memory Used# [2025-09-24 03:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-24 00:25:05 [end_date_ymd] => 2025-09-24 03:25:05 [RateCDR] => 1 ) [2025-09-24 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-09-24 00:25:05' and `end` < '2025-09-24 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-09-24 03:25:18] Production.INFO: count ==255 [2025-09-24 03:25:18] Production.ERROR: pbx CDR StartTime 2025-09-24 00:25:05 - End Time 2025-09-24 03:25:05 [2025-09-24 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-24 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15895401', 'tblTempUsageDetail_20' ) start [2025-09-24 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15895401', 'tblTempUsageDetail_20' ) end [2025-09-24 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15895401', 'tblTempVendorCDR_20' ) start [2025-09-24 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15895401', 'tblTempVendorCDR_20' ) end [2025-09-24 03:25:18] Production.INFO: ProcessCDR(1,15895401,1,1,2) [2025-09-24 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15895401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 03:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15895401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 03:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15895401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 03:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15895401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 03:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15895401', 'tblTempUsageDetail_20' ) start [2025-09-24 03:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15895401', 'tblTempUsageDetail_20' ) end [2025-09-24 03:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-24 03:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-24 03:25:26] Production.INFO: ==7191== Releasing lock... [2025-09-24 03:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-24 03:25:26] Production.INFO: 30.25 MB #Memory Used# [2025-09-24 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-24 01:25:05 [end_date_ymd] => 2025-09-24 04:25:05 [RateCDR] => 1 ) [2025-09-24 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-09-24 01:25:05' and `end` < '2025-09-24 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-09-24 04:25:17] Production.INFO: count ==172 [2025-09-24 04:25:17] Production.ERROR: pbx CDR StartTime 2025-09-24 01:25:05 - End Time 2025-09-24 04:25:05 [2025-09-24 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-24 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15895649', 'tblTempUsageDetail_20' ) start [2025-09-24 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15895649', 'tblTempUsageDetail_20' ) end [2025-09-24 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15895649', 'tblTempVendorCDR_20' ) start [2025-09-24 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15895649', 'tblTempVendorCDR_20' ) end [2025-09-24 04:25:17] Production.INFO: ProcessCDR(1,15895649,1,1,2) [2025-09-24 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15895649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15895649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15895649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 04:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15895649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15895649', 'tblTempUsageDetail_20' ) start [2025-09-24 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15895649', 'tblTempUsageDetail_20' ) end [2025-09-24 04:25:22] Production.ERROR: pbx prc_insertCDR start [2025-09-24 04:25:22] Production.ERROR: pbx prc_insertCDR end [2025-09-24 04:25:22] Production.INFO: ==11602== Releasing lock... [2025-09-24 04:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-24 04:25:22] Production.INFO: 29.5 MB #Memory Used# [2025-09-24 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-24 02:25:05 [end_date_ymd] => 2025-09-24 05:25:05 [RateCDR] => 1 ) [2025-09-24 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-09-24 02:25:05' and `end` < '2025-09-24 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-09-24 05:25:17] Production.INFO: count ==133 [2025-09-24 05:25:17] Production.ERROR: pbx CDR StartTime 2025-09-24 02:25:05 - End Time 2025-09-24 05:25:05 [2025-09-24 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-24 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15895897', 'tblTempUsageDetail_20' ) start [2025-09-24 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15895897', 'tblTempUsageDetail_20' ) end [2025-09-24 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15895897', 'tblTempVendorCDR_20' ) start [2025-09-24 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15895897', 'tblTempVendorCDR_20' ) end [2025-09-24 05:25:17] Production.INFO: ProcessCDR(1,15895897,1,1,2) [2025-09-24 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15895897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15895897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15895897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 05:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15895897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15895897', 'tblTempUsageDetail_20' ) start [2025-09-24 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15895897', 'tblTempUsageDetail_20' ) end [2025-09-24 05:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-24 05:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-24 05:25:25] Production.INFO: ==16029== Releasing lock... [2025-09-24 05:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-24 05:25:25] Production.INFO: 29.25 MB #Memory Used# [2025-09-24 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-24 03:25:05 [end_date_ymd] => 2025-09-24 06:25:05 [RateCDR] => 1 ) [2025-09-24 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-09-24 03:25:05' and `end` < '2025-09-24 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-09-24 06:25:17] Production.INFO: count ==93 [2025-09-24 06:25:17] Production.ERROR: pbx CDR StartTime 2025-09-24 03:25:05 - End Time 2025-09-24 06:25:05 [2025-09-24 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-24 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15896144', 'tblTempUsageDetail_20' ) start [2025-09-24 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15896144', 'tblTempUsageDetail_20' ) end [2025-09-24 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15896144', 'tblTempVendorCDR_20' ) start [2025-09-24 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15896144', 'tblTempVendorCDR_20' ) end [2025-09-24 06:25:17] Production.INFO: ProcessCDR(1,15896144,1,1,2) [2025-09-24 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15896144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15896144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15896144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 06:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15896144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15896144', 'tblTempUsageDetail_20' ) start [2025-09-24 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15896144', 'tblTempUsageDetail_20' ) end [2025-09-24 06:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-24 06:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-24 06:25:25] Production.INFO: ==20343== Releasing lock... [2025-09-24 06:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-24 06:25:25] Production.INFO: 28.5 MB #Memory Used# [2025-09-24 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-24 04:25:05 [end_date_ymd] => 2025-09-24 07:25:05 [RateCDR] => 1 ) [2025-09-24 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-09-24 04:25:05' and `end` < '2025-09-24 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-09-24 07:25:17] Production.INFO: count ==119 [2025-09-24 07:25:17] Production.ERROR: pbx CDR StartTime 2025-09-24 04:25:05 - End Time 2025-09-24 07:25:05 [2025-09-24 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-24 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15896391', 'tblTempUsageDetail_20' ) start [2025-09-24 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15896391', 'tblTempUsageDetail_20' ) end [2025-09-24 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15896391', 'tblTempVendorCDR_20' ) start [2025-09-24 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15896391', 'tblTempVendorCDR_20' ) end [2025-09-24 07:25:17] Production.INFO: ProcessCDR(1,15896391,1,1,2) [2025-09-24 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15896391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15896391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15896391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 07:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15896391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15896391', 'tblTempUsageDetail_20' ) start [2025-09-24 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15896391', 'tblTempUsageDetail_20' ) end [2025-09-24 07:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-24 07:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-24 07:25:25] Production.INFO: ==24659== Releasing lock... [2025-09-24 07:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-24 07:25:25] Production.INFO: 29 MB #Memory Used# [2025-09-24 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-24 05:25:05 [end_date_ymd] => 2025-09-24 08:25:05 [RateCDR] => 1 ) [2025-09-24 08: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-09-24 05:25:05' and `end` < '2025-09-24 08: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-09-24 08:25:17] Production.INFO: count ==331 [2025-09-24 08:25:17] Production.ERROR: pbx CDR StartTime 2025-09-24 05:25:05 - End Time 2025-09-24 08:25:05 [2025-09-24 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-24 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15896638', 'tblTempUsageDetail_20' ) start [2025-09-24 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15896638', 'tblTempUsageDetail_20' ) end [2025-09-24 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15896638', 'tblTempVendorCDR_20' ) start [2025-09-24 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15896638', 'tblTempVendorCDR_20' ) end [2025-09-24 08:25:17] Production.INFO: ProcessCDR(1,15896638,1,1,2) [2025-09-24 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15896638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15896638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15896638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 08:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15896638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15896638', 'tblTempUsageDetail_20' ) start [2025-09-24 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15896638', 'tblTempUsageDetail_20' ) end [2025-09-24 08:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-24 08:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-24 08:25:25] Production.INFO: ==29468== Releasing lock... [2025-09-24 08:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-24 08:25:25] Production.INFO: 31 MB #Memory Used# [2025-09-24 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-24 06:25:05 [end_date_ymd] => 2025-09-24 09:25:05 [RateCDR] => 1 ) [2025-09-24 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-09-24 06:25:05' and `end` < '2025-09-24 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-09-24 09:25:17] Production.INFO: count ==1099 [2025-09-24 09:25:18] Production.ERROR: pbx CDR StartTime 2025-09-24 06:25:05 - End Time 2025-09-24 09:25:05 [2025-09-24 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-24 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15896885', 'tblTempUsageDetail_20' ) start [2025-09-24 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15896885', 'tblTempUsageDetail_20' ) end [2025-09-24 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15896885', 'tblTempVendorCDR_20' ) start [2025-09-24 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15896885', 'tblTempVendorCDR_20' ) end [2025-09-24 09:25:18] Production.INFO: ProcessCDR(1,15896885,1,1,2) [2025-09-24 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15896885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15896885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15896885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 09:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15896885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15896885', 'tblTempUsageDetail_20' ) start [2025-09-24 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15896885', 'tblTempUsageDetail_20' ) end [2025-09-24 09:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-24 09:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-24 09:25:27] Production.INFO: ==1748== Releasing lock... [2025-09-24 09:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-24 09:25:27] Production.INFO: 37 MB #Memory Used# [2025-09-24 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-24 07:25:05 [end_date_ymd] => 2025-09-24 10:25:05 [RateCDR] => 1 ) [2025-09-24 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-09-24 07:25:05' and `end` < '2025-09-24 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-09-24 10:25:18] Production.INFO: count ==2739 [2025-09-24 10:25:19] Production.ERROR: pbx CDR StartTime 2025-09-24 07:25:05 - End Time 2025-09-24 10:25:05 [2025-09-24 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-24 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15897132', 'tblTempUsageDetail_20' ) start [2025-09-24 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15897132', 'tblTempUsageDetail_20' ) end [2025-09-24 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15897132', 'tblTempVendorCDR_20' ) start [2025-09-24 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15897132', 'tblTempVendorCDR_20' ) end [2025-09-24 10:25:20] Production.INFO: ProcessCDR(1,15897132,1,1,2) [2025-09-24 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15897132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 10:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15897132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 10:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15897132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 10:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15897132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 10:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15897132', 'tblTempUsageDetail_20' ) start [2025-09-24 10:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15897132', 'tblTempUsageDetail_20' ) end [2025-09-24 10:25:29] Production.ERROR: pbx prc_insertCDR start [2025-09-24 10:25:31] Production.ERROR: pbx prc_insertCDR end [2025-09-24 10:25:31] Production.INFO: ==6544== Releasing lock... [2025-09-24 10:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-24 10:25:31] Production.INFO: 49.25 MB #Memory Used# [2025-09-24 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-24 08:25:05 [end_date_ymd] => 2025-09-24 11:25:05 [RateCDR] => 1 ) [2025-09-24 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-09-24 08:25:05' and `end` < '2025-09-24 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-09-24 11:25:19] Production.INFO: count ==4227 [2025-09-24 11:25:21] Production.ERROR: pbx CDR StartTime 2025-09-24 08:25:05 - End Time 2025-09-24 11:25:05 [2025-09-24 11:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-24 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15897378', 'tblTempUsageDetail_20' ) start [2025-09-24 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15897378', 'tblTempUsageDetail_20' ) end [2025-09-24 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15897378', 'tblTempVendorCDR_20' ) start [2025-09-24 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15897378', 'tblTempVendorCDR_20' ) end [2025-09-24 11:25:22] Production.INFO: ProcessCDR(1,15897378,1,1,2) [2025-09-24 11:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15897378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 11:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15897378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 11:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15897378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 11:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15897378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15897378', 'tblTempUsageDetail_20' ) start [2025-09-24 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15897378', 'tblTempUsageDetail_20' ) end [2025-09-24 11:25:31] Production.ERROR: pbx prc_insertCDR start [2025-09-24 11:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-24 11:25:34] Production.INFO: ==11072== Releasing lock... [2025-09-24 11:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-24 11:25:34] Production.INFO: 59.75 MB #Memory Used# [2025-09-24 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-24 09:25:05 [end_date_ymd] => 2025-09-24 12:25:05 [RateCDR] => 1 ) [2025-09-24 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-09-24 09:25:05' and `end` < '2025-09-24 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-09-24 12:25:19] Production.INFO: count ==5410 [2025-09-24 12:25:21] Production.ERROR: pbx CDR StartTime 2025-09-24 09:25:05 - End Time 2025-09-24 12:25:05 [2025-09-24 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-24 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15897626', 'tblTempUsageDetail_20' ) start [2025-09-24 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15897626', 'tblTempUsageDetail_20' ) end [2025-09-24 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15897626', 'tblTempVendorCDR_20' ) start [2025-09-24 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15897626', 'tblTempVendorCDR_20' ) end [2025-09-24 12:25:22] Production.INFO: ProcessCDR(1,15897626,1,1,2) [2025-09-24 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15897626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 12:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15897626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 12:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15897626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 12:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15897626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 12:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15897626', 'tblTempUsageDetail_20' ) start [2025-09-24 12:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15897626', 'tblTempUsageDetail_20' ) end [2025-09-24 12:25:32] Production.ERROR: pbx prc_insertCDR start [2025-09-24 12:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-24 12:25:34] Production.INFO: ==15642== Releasing lock... [2025-09-24 12:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-24 12:25:34] Production.INFO: 68.75 MB #Memory Used# [2025-09-24 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-24 10:25:05 [end_date_ymd] => 2025-09-24 13:25:05 [RateCDR] => 1 ) [2025-09-24 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-09-24 10:25:05' and `end` < '2025-09-24 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-09-24 13:25:18] Production.INFO: count ==5312 [2025-09-24 13:25:21] Production.ERROR: pbx CDR StartTime 2025-09-24 10:25:05 - End Time 2025-09-24 13:25:05 [2025-09-24 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-24 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15897873', 'tblTempUsageDetail_20' ) start [2025-09-24 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15897873', 'tblTempUsageDetail_20' ) end [2025-09-24 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15897873', 'tblTempVendorCDR_20' ) start [2025-09-24 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15897873', 'tblTempVendorCDR_20' ) end [2025-09-24 13:25:21] Production.INFO: ProcessCDR(1,15897873,1,1,2) [2025-09-24 13:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15897873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 13:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15897873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 13:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15897873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 13:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15897873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 13:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15897873', 'tblTempUsageDetail_20' ) start [2025-09-24 13:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15897873', 'tblTempUsageDetail_20' ) end [2025-09-24 13:25:30] Production.ERROR: pbx prc_insertCDR start [2025-09-24 13:25:32] Production.ERROR: pbx prc_insertCDR end [2025-09-24 13:25:32] Production.INFO: ==20070== Releasing lock... [2025-09-24 13:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-24 13:25:32] Production.INFO: 68 MB #Memory Used# [2025-09-24 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-24 11:25:05 [end_date_ymd] => 2025-09-24 14:25:05 [RateCDR] => 1 ) [2025-09-24 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-09-24 11:25:05' and `end` < '2025-09-24 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-09-24 14:25:19] Production.INFO: count ==5300 [2025-09-24 14:25:21] Production.ERROR: pbx CDR StartTime 2025-09-24 11:25:05 - End Time 2025-09-24 14:25:05 [2025-09-24 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-24 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15898120', 'tblTempUsageDetail_20' ) start [2025-09-24 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15898120', 'tblTempUsageDetail_20' ) end [2025-09-24 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15898120', 'tblTempVendorCDR_20' ) start [2025-09-24 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15898120', 'tblTempVendorCDR_20' ) end [2025-09-24 14:25:22] Production.INFO: ProcessCDR(1,15898120,1,1,2) [2025-09-24 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15898120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 14:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15898120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 14:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15898120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 14:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15898120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 14:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15898120', 'tblTempUsageDetail_20' ) start [2025-09-24 14:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15898120', 'tblTempUsageDetail_20' ) end [2025-09-24 14:25:32] Production.ERROR: pbx prc_insertCDR start [2025-09-24 14:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-24 14:25:34] Production.INFO: ==25439== Releasing lock... [2025-09-24 14:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-24 14:25:34] Production.INFO: 68 MB #Memory Used# [2025-09-24 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-24 12:25:05 [end_date_ymd] => 2025-09-24 15:25:05 [RateCDR] => 1 ) [2025-09-24 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-09-24 12:25:05' and `end` < '2025-09-24 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-09-24 15:25:19] Production.INFO: count ==4911 [2025-09-24 15:25:21] Production.ERROR: pbx CDR StartTime 2025-09-24 12:25:05 - End Time 2025-09-24 15:25:05 [2025-09-24 15:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-24 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15898367', 'tblTempUsageDetail_20' ) start [2025-09-24 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15898367', 'tblTempUsageDetail_20' ) end [2025-09-24 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15898367', 'tblTempVendorCDR_20' ) start [2025-09-24 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15898367', 'tblTempVendorCDR_20' ) end [2025-09-24 15:25:21] Production.INFO: ProcessCDR(1,15898367,1,1,2) [2025-09-24 15:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15898367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 15:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15898367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 15:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15898367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 15:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15898367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 15:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15898367', 'tblTempUsageDetail_20' ) start [2025-09-24 15:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15898367', 'tblTempUsageDetail_20' ) end [2025-09-24 15:25:31] Production.ERROR: pbx prc_insertCDR start [2025-09-24 15:25:33] Production.ERROR: pbx prc_insertCDR end [2025-09-24 15:25:33] Production.INFO: ==31087== Releasing lock... [2025-09-24 15:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-24 15:25:33] Production.INFO: 65 MB #Memory Used# [2025-09-24 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-24 13:25:05 [end_date_ymd] => 2025-09-24 16:25:05 [RateCDR] => 1 ) [2025-09-24 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-09-24 13:25:05' and `end` < '2025-09-24 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-09-24 16:25:22] Production.INFO: count ==5098 [2025-09-24 16:25:24] Production.ERROR: pbx CDR StartTime 2025-09-24 13:25:05 - End Time 2025-09-24 16:25:05 [2025-09-24 16:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-24 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15898614', 'tblTempUsageDetail_20' ) start [2025-09-24 16:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15898614', 'tblTempUsageDetail_20' ) end [2025-09-24 16:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15898614', 'tblTempVendorCDR_20' ) start [2025-09-24 16:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15898614', 'tblTempVendorCDR_20' ) end [2025-09-24 16:25:25] Production.INFO: ProcessCDR(1,15898614,1,1,2) [2025-09-24 16:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15898614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 16:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15898614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 16:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15898614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 16:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15898614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 16:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15898614', 'tblTempUsageDetail_20' ) start [2025-09-24 16:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15898614', 'tblTempUsageDetail_20' ) end [2025-09-24 16:25:34] Production.ERROR: pbx prc_insertCDR start [2025-09-24 16:25:36] Production.ERROR: pbx prc_insertCDR end [2025-09-24 16:25:36] Production.INFO: ==3403== Releasing lock... [2025-09-24 16:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-24 16:25:36] Production.INFO: 66.5 MB #Memory Used# [2025-09-24 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-24 14:25:05 [end_date_ymd] => 2025-09-24 17:25:05 [RateCDR] => 1 ) [2025-09-24 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-09-24 14:25:05' and `end` < '2025-09-24 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-09-24 17:25:18] Production.INFO: count ==4862 [2025-09-24 17:25:21] Production.ERROR: pbx CDR StartTime 2025-09-24 14:25:05 - End Time 2025-09-24 17:25:05 [2025-09-24 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-24 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15898861', 'tblTempUsageDetail_20' ) start [2025-09-24 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15898861', 'tblTempUsageDetail_20' ) end [2025-09-24 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15898861', 'tblTempVendorCDR_20' ) start [2025-09-24 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15898861', 'tblTempVendorCDR_20' ) end [2025-09-24 17:25:21] Production.INFO: ProcessCDR(1,15898861,1,1,2) [2025-09-24 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15898861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 17:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15898861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 17:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15898861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 17:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15898861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 17:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15898861', 'tblTempUsageDetail_20' ) start [2025-09-24 17:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15898861', 'tblTempUsageDetail_20' ) end [2025-09-24 17:25:31] Production.ERROR: pbx prc_insertCDR start [2025-09-24 17:25:33] Production.ERROR: pbx prc_insertCDR end [2025-09-24 17:25:33] Production.INFO: ==8279== Releasing lock... [2025-09-24 17:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-24 17:25:33] Production.INFO: 64.5 MB #Memory Used# [2025-09-24 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-24 15:25:05 [end_date_ymd] => 2025-09-24 18:25:05 [RateCDR] => 1 ) [2025-09-24 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-09-24 15:25:05' and `end` < '2025-09-24 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-09-24 18:25:18] Production.INFO: count ==4252 [2025-09-24 18:25:20] Production.ERROR: pbx CDR StartTime 2025-09-24 15:25:05 - End Time 2025-09-24 18:25:05 [2025-09-24 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-24 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15899108', 'tblTempUsageDetail_20' ) start [2025-09-24 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15899108', 'tblTempUsageDetail_20' ) end [2025-09-24 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15899108', 'tblTempVendorCDR_20' ) start [2025-09-24 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15899108', 'tblTempVendorCDR_20' ) end [2025-09-24 18:25:20] Production.INFO: ProcessCDR(1,15899108,1,1,2) [2025-09-24 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15899108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15899108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15899108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 18:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15899108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15899108', 'tblTempUsageDetail_20' ) start [2025-09-24 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15899108', 'tblTempUsageDetail_20' ) end [2025-09-24 18:25:29] Production.ERROR: pbx prc_insertCDR start [2025-09-24 18:25:30] Production.ERROR: pbx prc_insertCDR end [2025-09-24 18:25:30] Production.INFO: ==14178== Releasing lock... [2025-09-24 18:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-24 18:25:30] Production.INFO: 60 MB #Memory Used# [2025-09-24 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-24 16:25:06 [end_date_ymd] => 2025-09-24 19:25:06 [RateCDR] => 1 ) [2025-09-24 19: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-09-24 16:25:06' and `end` < '2025-09-24 19: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-09-24 19:25:18] Production.INFO: count ==3148 [2025-09-24 19:25:19] Production.ERROR: pbx CDR StartTime 2025-09-24 16:25:06 - End Time 2025-09-24 19:25:06 [2025-09-24 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-24 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15899352', 'tblTempUsageDetail_20' ) start [2025-09-24 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15899352', 'tblTempUsageDetail_20' ) end [2025-09-24 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15899352', 'tblTempVendorCDR_20' ) start [2025-09-24 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15899352', 'tblTempVendorCDR_20' ) end [2025-09-24 19:25:20] Production.INFO: ProcessCDR(1,15899352,1,1,2) [2025-09-24 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15899352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15899352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15899352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 19:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15899352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15899352', 'tblTempUsageDetail_20' ) start [2025-09-24 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15899352', 'tblTempUsageDetail_20' ) end [2025-09-24 19:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-24 19:25:29] Production.ERROR: pbx prc_insertCDR end [2025-09-24 19:25:29] Production.INFO: ==19187== Releasing lock... [2025-09-24 19:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-24 19:25:29] Production.INFO: 52 MB #Memory Used# [2025-09-24 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-24 17:25:06 [end_date_ymd] => 2025-09-24 20:25:06 [RateCDR] => 1 ) [2025-09-24 20: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-09-24 17:25:06' and `end` < '2025-09-24 20: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-09-24 20:25:18] Production.INFO: count ==2280 [2025-09-24 20:25:19] Production.ERROR: pbx CDR StartTime 2025-09-24 17:25:06 - End Time 2025-09-24 20:25:06 [2025-09-24 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-24 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15899599', 'tblTempUsageDetail_20' ) start [2025-09-24 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15899599', 'tblTempUsageDetail_20' ) end [2025-09-24 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15899599', 'tblTempVendorCDR_20' ) start [2025-09-24 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15899599', 'tblTempVendorCDR_20' ) end [2025-09-24 20:25:20] Production.INFO: ProcessCDR(1,15899599,1,1,2) [2025-09-24 20:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15899599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 20:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15899599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 20:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15899599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 20:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15899599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 20:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15899599', 'tblTempUsageDetail_20' ) start [2025-09-24 20:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15899599', 'tblTempUsageDetail_20' ) end [2025-09-24 20:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-24 20:25:29] Production.ERROR: pbx prc_insertCDR end [2025-09-24 20:25:29] Production.INFO: ==24366== Releasing lock... [2025-09-24 20:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-24 20:25:29] Production.INFO: 45.25 MB #Memory Used# [2025-09-24 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-24 18:25:05 [end_date_ymd] => 2025-09-24 21:25:05 [RateCDR] => 1 ) [2025-09-24 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-09-24 18:25:05' and `end` < '2025-09-24 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-09-24 21:25:17] Production.INFO: count ==1572 [2025-09-24 21:25:18] Production.ERROR: pbx CDR StartTime 2025-09-24 18:25:05 - End Time 2025-09-24 21:25:05 [2025-09-24 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-24 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15899846', 'tblTempUsageDetail_20' ) start [2025-09-24 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15899846', 'tblTempUsageDetail_20' ) end [2025-09-24 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15899846', 'tblTempVendorCDR_20' ) start [2025-09-24 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15899846', 'tblTempVendorCDR_20' ) end [2025-09-24 21:25:18] Production.INFO: ProcessCDR(1,15899846,1,1,2) [2025-09-24 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15899846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15899846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15899846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 21:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15899846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15899846', 'tblTempUsageDetail_20' ) start [2025-09-24 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15899846', 'tblTempUsageDetail_20' ) end [2025-09-24 21:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-24 21:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-24 21:25:26] Production.INFO: ==29681== Releasing lock... [2025-09-24 21:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-24 21:25:26] Production.INFO: 40.5 MB #Memory Used# [2025-09-24 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-24 19:25:05 [end_date_ymd] => 2025-09-24 22:25:05 [RateCDR] => 1 ) [2025-09-24 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-09-24 19:25:05' and `end` < '2025-09-24 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-09-24 22:25:17] Production.INFO: count ==1092 [2025-09-24 22:25:17] Production.ERROR: pbx CDR StartTime 2025-09-24 19:25:05 - End Time 2025-09-24 22:25:05 [2025-09-24 22:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-24 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15900093', 'tblTempUsageDetail_20' ) start [2025-09-24 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15900093', 'tblTempUsageDetail_20' ) end [2025-09-24 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15900093', 'tblTempVendorCDR_20' ) start [2025-09-24 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15900093', 'tblTempVendorCDR_20' ) end [2025-09-24 22:25:18] Production.INFO: ProcessCDR(1,15900093,1,1,2) [2025-09-24 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15900093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15900093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15900093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 22:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15900093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15900093', 'tblTempUsageDetail_20' ) start [2025-09-24 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15900093', 'tblTempUsageDetail_20' ) end [2025-09-24 22:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-24 22:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-24 22:25:26] Production.INFO: ==2721== Releasing lock... [2025-09-24 22:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-24 22:25:26] Production.INFO: 36.75 MB #Memory Used# [2025-09-24 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-24 20:25:05 [end_date_ymd] => 2025-09-24 23:25:05 [RateCDR] => 1 ) [2025-09-24 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-09-24 20:25:05' and `end` < '2025-09-24 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-09-24 23:25:18] Production.INFO: count ==773 [2025-09-24 23:25:18] Production.ERROR: pbx CDR StartTime 2025-09-24 20:25:05 - End Time 2025-09-24 23:25:05 [2025-09-24 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-24 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15900340', 'tblTempUsageDetail_20' ) start [2025-09-24 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15900340', 'tblTempUsageDetail_20' ) end [2025-09-24 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15900340', 'tblTempVendorCDR_20' ) start [2025-09-24 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15900340', 'tblTempVendorCDR_20' ) end [2025-09-24 23:25:18] Production.INFO: ProcessCDR(1,15900340,1,1,2) [2025-09-24 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15900340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15900340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-24 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15900340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 23:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15900340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-24 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15900340', 'tblTempUsageDetail_20' ) start [2025-09-24 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15900340', 'tblTempUsageDetail_20' ) end [2025-09-24 23:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-24 23:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-24 23:25:27] Production.INFO: ==8381== Releasing lock... [2025-09-24 23:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-24 23:25:27] Production.INFO: 34 MB #Memory Used#