[2025-09-13 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-12 21:25:05 [end_date_ymd] => 2025-09-13 00:25:05 [RateCDR] => 1 ) [2025-09-13 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-12 21:25:05' and `end` < '2025-09-13 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-13 00:25:17] Production.INFO: count ==1060 [2025-09-13 00:25:18] Production.ERROR: pbx CDR StartTime 2025-09-12 21:25:05 - End Time 2025-09-13 00:25:05 [2025-09-13 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-13 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15829457', 'tblTempUsageDetail_20' ) start [2025-09-13 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15829457', 'tblTempUsageDetail_20' ) end [2025-09-13 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15829457', 'tblTempVendorCDR_20' ) start [2025-09-13 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15829457', 'tblTempVendorCDR_20' ) end [2025-09-13 00:25:18] Production.INFO: ProcessCDR(1,15829457,1,1,2) [2025-09-13 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15829457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 00:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15829457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 00:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15829457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 00:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15829457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15829457', 'tblTempUsageDetail_20' ) start [2025-09-13 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15829457', 'tblTempUsageDetail_20' ) end [2025-09-13 00:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-13 00:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-13 00:25:28] Production.INFO: ==16215== Releasing lock... [2025-09-13 00:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-13 00:25:28] Production.INFO: 37.75 MB #Memory Used# [2025-09-13 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-12 22:25:05 [end_date_ymd] => 2025-09-13 01:25:05 [RateCDR] => 1 ) [2025-09-13 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-09-12 22:25:05' and `end` < '2025-09-13 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-09-13 01:25:17] Production.INFO: count ==833 [2025-09-13 01:25:17] Production.ERROR: pbx CDR StartTime 2025-09-12 22:25:05 - End Time 2025-09-13 01:25:05 [2025-09-13 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-13 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15829704', 'tblTempUsageDetail_20' ) start [2025-09-13 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15829704', 'tblTempUsageDetail_20' ) end [2025-09-13 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15829704', 'tblTempVendorCDR_20' ) start [2025-09-13 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15829704', 'tblTempVendorCDR_20' ) end [2025-09-13 01:25:17] Production.INFO: ProcessCDR(1,15829704,1,1,2) [2025-09-13 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15829704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 01:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15829704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 01:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15829704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 01:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15829704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15829704', 'tblTempUsageDetail_20' ) start [2025-09-13 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15829704', 'tblTempUsageDetail_20' ) end [2025-09-13 01:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-13 01:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-13 01:25:26] Production.INFO: ==20663== Releasing lock... [2025-09-13 01:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-13 01:25:26] Production.INFO: 34.75 MB #Memory Used# [2025-09-13 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-12 23:25:05 [end_date_ymd] => 2025-09-13 02:25:05 [RateCDR] => 1 ) [2025-09-13 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-12 23:25:05' and `end` < '2025-09-13 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-13 02:25:17] Production.INFO: count ==727 [2025-09-13 02:25:18] Production.ERROR: pbx CDR StartTime 2025-09-12 23:25:05 - End Time 2025-09-13 02:25:05 [2025-09-13 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-13 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15829951', 'tblTempUsageDetail_20' ) start [2025-09-13 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15829951', 'tblTempUsageDetail_20' ) end [2025-09-13 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15829951', 'tblTempVendorCDR_20' ) start [2025-09-13 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15829951', 'tblTempVendorCDR_20' ) end [2025-09-13 02:25:18] Production.INFO: ProcessCDR(1,15829951,1,1,2) [2025-09-13 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15829951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15829951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15829951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 02:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15829951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15829951', 'tblTempUsageDetail_20' ) start [2025-09-13 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15829951', 'tblTempUsageDetail_20' ) end [2025-09-13 02:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-13 02:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-13 02:25:26] Production.INFO: ==25157== Releasing lock... [2025-09-13 02:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-13 02:25:26] Production.INFO: 34 MB #Memory Used# [2025-09-13 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-13 00:25:05 [end_date_ymd] => 2025-09-13 03:25:05 [RateCDR] => 1 ) [2025-09-13 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-09-13 00:25:05' and `end` < '2025-09-13 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-13 03:25:17] Production.INFO: count ==500 [2025-09-13 03:25:18] Production.ERROR: pbx CDR StartTime 2025-09-13 00:25:05 - End Time 2025-09-13 03:25:05 [2025-09-13 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-13 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15830198', 'tblTempUsageDetail_20' ) start [2025-09-13 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15830198', 'tblTempUsageDetail_20' ) end [2025-09-13 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15830198', 'tblTempVendorCDR_20' ) start [2025-09-13 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15830198', 'tblTempVendorCDR_20' ) end [2025-09-13 03:25:18] Production.INFO: ProcessCDR(1,15830198,1,1,2) [2025-09-13 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15830198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15830198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15830198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 03:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15830198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15830198', 'tblTempUsageDetail_20' ) start [2025-09-13 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15830198', 'tblTempUsageDetail_20' ) end [2025-09-13 03:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-13 03:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-13 03:25:25] Production.INFO: ==30170== Releasing lock... [2025-09-13 03:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-13 03:25:25] Production.INFO: 32.5 MB #Memory Used# [2025-09-13 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-13 01:25:05 [end_date_ymd] => 2025-09-13 04:25:05 [RateCDR] => 1 ) [2025-09-13 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-13 01:25:05' and `end` < '2025-09-13 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-13 04:25:17] Production.INFO: count ==322 [2025-09-13 04:25:17] Production.ERROR: pbx CDR StartTime 2025-09-13 01:25:05 - End Time 2025-09-13 04:25:05 [2025-09-13 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-13 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15830446', 'tblTempUsageDetail_20' ) start [2025-09-13 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15830446', 'tblTempUsageDetail_20' ) end [2025-09-13 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15830446', 'tblTempVendorCDR_20' ) start [2025-09-13 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15830446', 'tblTempVendorCDR_20' ) end [2025-09-13 04:25:17] Production.INFO: ProcessCDR(1,15830446,1,1,2) [2025-09-13 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15830446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15830446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15830446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 04:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15830446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15830446', 'tblTempUsageDetail_20' ) start [2025-09-13 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15830446', 'tblTempUsageDetail_20' ) end [2025-09-13 04:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-13 04:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-13 04:25:25] Production.INFO: ==2522== Releasing lock... [2025-09-13 04:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-13 04:25:25] Production.INFO: 30.5 MB #Memory Used# [2025-09-13 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-13 02:25:05 [end_date_ymd] => 2025-09-13 05:25:05 [RateCDR] => 1 ) [2025-09-13 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-13 02:25:05' and `end` < '2025-09-13 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-13 05:25:17] Production.INFO: count ==231 [2025-09-13 05:25:17] Production.ERROR: pbx CDR StartTime 2025-09-13 02:25:05 - End Time 2025-09-13 05:25:05 [2025-09-13 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-13 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15830694', 'tblTempUsageDetail_20' ) start [2025-09-13 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15830694', 'tblTempUsageDetail_20' ) end [2025-09-13 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15830694', 'tblTempVendorCDR_20' ) start [2025-09-13 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15830694', 'tblTempVendorCDR_20' ) end [2025-09-13 05:25:17] Production.INFO: ProcessCDR(1,15830694,1,1,2) [2025-09-13 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15830694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15830694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15830694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 05:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15830694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15830694', 'tblTempUsageDetail_20' ) start [2025-09-13 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15830694', 'tblTempUsageDetail_20' ) end [2025-09-13 05:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-13 05:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-13 05:25:25] Production.INFO: ==7285== Releasing lock... [2025-09-13 05:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-13 05:25:25] Production.INFO: 29.75 MB #Memory Used# [2025-09-13 06:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-13 03:25:06 [end_date_ymd] => 2025-09-13 06:25:06 [RateCDR] => 1 ) [2025-09-13 06: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-13 03:25:06' and `end` < '2025-09-13 06: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-13 06:25:18] Production.INFO: count ==154 [2025-09-13 06:25:18] Production.ERROR: pbx CDR StartTime 2025-09-13 03:25:06 - End Time 2025-09-13 06:25:06 [2025-09-13 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-13 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15830941', 'tblTempUsageDetail_20' ) start [2025-09-13 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15830941', 'tblTempUsageDetail_20' ) end [2025-09-13 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15830941', 'tblTempVendorCDR_20' ) start [2025-09-13 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15830941', 'tblTempVendorCDR_20' ) end [2025-09-13 06:25:18] Production.INFO: ProcessCDR(1,15830941,1,1,2) [2025-09-13 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15830941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 06:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15830941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 06:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15830941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 06:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15830941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15830941', 'tblTempUsageDetail_20' ) start [2025-09-13 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15830941', 'tblTempUsageDetail_20' ) end [2025-09-13 06:25:24] Production.ERROR: pbx prc_insertCDR start [2025-09-13 06:25:24] Production.ERROR: pbx prc_insertCDR end [2025-09-13 06:25:24] Production.INFO: ==11649== Releasing lock... [2025-09-13 06:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-13 06:25:24] Production.INFO: 29.25 MB #Memory Used# [2025-09-13 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-13 04:25:05 [end_date_ymd] => 2025-09-13 07:25:05 [RateCDR] => 1 ) [2025-09-13 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-13 04:25:05' and `end` < '2025-09-13 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-13 07:25:17] Production.INFO: count ==127 [2025-09-13 07:25:17] Production.ERROR: pbx CDR StartTime 2025-09-13 04:25:05 - End Time 2025-09-13 07:25:05 [2025-09-13 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-13 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15831188', 'tblTempUsageDetail_20' ) start [2025-09-13 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15831188', 'tblTempUsageDetail_20' ) end [2025-09-13 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15831188', 'tblTempVendorCDR_20' ) start [2025-09-13 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15831188', 'tblTempVendorCDR_20' ) end [2025-09-13 07:25:17] Production.INFO: ProcessCDR(1,15831188,1,1,2) [2025-09-13 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15831188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15831188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15831188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 07:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15831188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15831188', 'tblTempUsageDetail_20' ) start [2025-09-13 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15831188', 'tblTempUsageDetail_20' ) end [2025-09-13 07:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-13 07:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-13 07:25:25] Production.INFO: ==15871== Releasing lock... [2025-09-13 07:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-13 07:25:25] Production.INFO: 29 MB #Memory Used# [2025-09-13 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-13 05:25:05 [end_date_ymd] => 2025-09-13 08:25:05 [RateCDR] => 1 ) [2025-09-13 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-13 05:25:05' and `end` < '2025-09-13 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-13 08:25:17] Production.INFO: count ==153 [2025-09-13 08:25:17] Production.ERROR: pbx CDR StartTime 2025-09-13 05:25:05 - End Time 2025-09-13 08:25:05 [2025-09-13 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-13 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15831435', 'tblTempUsageDetail_20' ) start [2025-09-13 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15831435', 'tblTempUsageDetail_20' ) end [2025-09-13 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15831435', 'tblTempVendorCDR_20' ) start [2025-09-13 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15831435', 'tblTempVendorCDR_20' ) end [2025-09-13 08:25:17] Production.INFO: ProcessCDR(1,15831435,1,1,2) [2025-09-13 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15831435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15831435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15831435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 08:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15831435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15831435', 'tblTempUsageDetail_20' ) start [2025-09-13 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15831435', 'tblTempUsageDetail_20' ) end [2025-09-13 08:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-13 08:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-13 08:25:25] Production.INFO: ==20312== Releasing lock... [2025-09-13 08:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-13 08:25:25] Production.INFO: 29.5 MB #Memory Used# [2025-09-13 09:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-13 06:25:06 [end_date_ymd] => 2025-09-13 09:25:06 [RateCDR] => 1 ) [2025-09-13 09: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-13 06:25:06' and `end` < '2025-09-13 09: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-13 09:25:18] Production.INFO: count ==558 [2025-09-13 09:25:18] Production.ERROR: pbx CDR StartTime 2025-09-13 06:25:06 - End Time 2025-09-13 09:25:06 [2025-09-13 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-13 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15831682', 'tblTempUsageDetail_20' ) start [2025-09-13 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15831682', 'tblTempUsageDetail_20' ) end [2025-09-13 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15831682', 'tblTempVendorCDR_20' ) start [2025-09-13 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15831682', 'tblTempVendorCDR_20' ) end [2025-09-13 09:25:18] Production.INFO: ProcessCDR(1,15831682,1,1,2) [2025-09-13 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15831682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15831682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15831682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 09:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15831682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15831682', 'tblTempUsageDetail_20' ) start [2025-09-13 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15831682', 'tblTempUsageDetail_20' ) end [2025-09-13 09:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-13 09:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-13 09:25:26] Production.INFO: ==24547== Releasing lock... [2025-09-13 09:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-13 09:25:26] Production.INFO: 32.5 MB #Memory Used# [2025-09-13 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-13 07:25:05 [end_date_ymd] => 2025-09-13 10:25:05 [RateCDR] => 1 ) [2025-09-13 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-13 07:25:05' and `end` < '2025-09-13 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-13 10:25:17] Production.INFO: count ==1182 [2025-09-13 10:25:17] Production.ERROR: pbx CDR StartTime 2025-09-13 07:25:05 - End Time 2025-09-13 10:25:05 [2025-09-13 10:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-13 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15831929', 'tblTempUsageDetail_20' ) start [2025-09-13 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15831929', 'tblTempUsageDetail_20' ) end [2025-09-13 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15831929', 'tblTempVendorCDR_20' ) start [2025-09-13 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15831929', 'tblTempVendorCDR_20' ) end [2025-09-13 10:25:17] Production.INFO: ProcessCDR(1,15831929,1,1,2) [2025-09-13 10:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15831929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 10:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15831929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 10:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15831929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 10:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15831929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 10:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15831929', 'tblTempUsageDetail_20' ) start [2025-09-13 10:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15831929', 'tblTempUsageDetail_20' ) end [2025-09-13 10:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-13 10:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-13 10:25:27] Production.INFO: ==28812== Releasing lock... [2025-09-13 10:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-13 10:25:27] Production.INFO: 37.5 MB #Memory Used# [2025-09-13 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-13 08:25:05 [end_date_ymd] => 2025-09-13 11:25:05 [RateCDR] => 1 ) [2025-09-13 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-13 08:25:05' and `end` < '2025-09-13 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-13 11:25:17] Production.INFO: count ==1661 [2025-09-13 11:25:18] Production.ERROR: pbx CDR StartTime 2025-09-13 08:25:05 - End Time 2025-09-13 11:25:05 [2025-09-13 11:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-13 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15832176', 'tblTempUsageDetail_20' ) start [2025-09-13 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15832176', 'tblTempUsageDetail_20' ) end [2025-09-13 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15832176', 'tblTempVendorCDR_20' ) start [2025-09-13 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15832176', 'tblTempVendorCDR_20' ) end [2025-09-13 11:25:18] Production.INFO: ProcessCDR(1,15832176,1,1,2) [2025-09-13 11:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15832176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 11:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15832176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 11:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15832176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 11:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15832176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15832176', 'tblTempUsageDetail_20' ) start [2025-09-13 11:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15832176', 'tblTempUsageDetail_20' ) end [2025-09-13 11:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-13 11:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-13 11:25:27] Production.INFO: ==962== Releasing lock... [2025-09-13 11:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-13 11:25:27] Production.INFO: 40.5 MB #Memory Used# [2025-09-13 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-13 09:25:05 [end_date_ymd] => 2025-09-13 12:25:05 [RateCDR] => 1 ) [2025-09-13 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-13 09:25:05' and `end` < '2025-09-13 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-13 12:25:17] Production.INFO: count ==1896 [2025-09-13 12:25:18] Production.ERROR: pbx CDR StartTime 2025-09-13 09:25:05 - End Time 2025-09-13 12:25:05 [2025-09-13 12:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-13 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15832423', 'tblTempUsageDetail_20' ) start [2025-09-13 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15832423', 'tblTempUsageDetail_20' ) end [2025-09-13 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15832423', 'tblTempVendorCDR_20' ) start [2025-09-13 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15832423', 'tblTempVendorCDR_20' ) end [2025-09-13 12:25:18] Production.INFO: ProcessCDR(1,15832423,1,1,2) [2025-09-13 12:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15832423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 12:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15832423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 12:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15832423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 12:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15832423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 12:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15832423', 'tblTempUsageDetail_20' ) start [2025-09-13 12:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15832423', 'tblTempUsageDetail_20' ) end [2025-09-13 12:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-13 12:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-13 12:25:27] Production.INFO: ==5449== Releasing lock... [2025-09-13 12:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-13 12:25:27] Production.INFO: 42.5 MB #Memory Used# [2025-09-13 13:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-09-13 10:25:04 [end_date_ymd] => 2025-09-13 13:25:04 [RateCDR] => 1 ) [2025-09-13 13: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-09-13 10:25:04' and `end` < '2025-09-13 13: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-09-13 13:25:17] Production.INFO: count ==1878 [2025-09-13 13:25:18] Production.ERROR: pbx CDR StartTime 2025-09-13 10:25:04 - End Time 2025-09-13 13:25:04 [2025-09-13 13:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-13 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15832670', 'tblTempUsageDetail_20' ) start [2025-09-13 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15832670', 'tblTempUsageDetail_20' ) end [2025-09-13 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15832670', 'tblTempVendorCDR_20' ) start [2025-09-13 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15832670', 'tblTempVendorCDR_20' ) end [2025-09-13 13:25:18] Production.INFO: ProcessCDR(1,15832670,1,1,2) [2025-09-13 13:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15832670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 13:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15832670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 13:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15832670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 13:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15832670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15832670', 'tblTempUsageDetail_20' ) start [2025-09-13 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15832670', 'tblTempUsageDetail_20' ) end [2025-09-13 13:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-13 13:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-13 13:25:26] Production.INFO: ==10635== Releasing lock... [2025-09-13 13:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-13 13:25:26] Production.INFO: 42.25 MB #Memory Used# [2025-09-13 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-13 11:25:05 [end_date_ymd] => 2025-09-13 14:25:05 [RateCDR] => 1 ) [2025-09-13 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-13 11:25:05' and `end` < '2025-09-13 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-13 14:25:18] Production.INFO: count ==1936 [2025-09-13 14:25:18] Production.ERROR: pbx CDR StartTime 2025-09-13 11:25:05 - End Time 2025-09-13 14:25:05 [2025-09-13 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-13 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15832917', 'tblTempUsageDetail_20' ) start [2025-09-13 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15832917', 'tblTempUsageDetail_20' ) end [2025-09-13 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15832917', 'tblTempVendorCDR_20' ) start [2025-09-13 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15832917', 'tblTempVendorCDR_20' ) end [2025-09-13 14:25:18] Production.INFO: ProcessCDR(1,15832917,1,1,2) [2025-09-13 14:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15832917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 14:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15832917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 14:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15832917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 14:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15832917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15832917', 'tblTempUsageDetail_20' ) start [2025-09-13 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15832917', 'tblTempUsageDetail_20' ) end [2025-09-13 14:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-13 14:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-13 14:25:27] Production.INFO: ==15697== Releasing lock... [2025-09-13 14:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-13 14:25:27] Production.INFO: 42.75 MB #Memory Used# [2025-09-13 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-13 12:25:05 [end_date_ymd] => 2025-09-13 15:25:05 [RateCDR] => 1 ) [2025-09-13 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-13 12:25:05' and `end` < '2025-09-13 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-13 15:25:17] Production.INFO: count ==1767 [2025-09-13 15:25:18] Production.ERROR: pbx CDR StartTime 2025-09-13 12:25:05 - End Time 2025-09-13 15:25:05 [2025-09-13 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-13 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15833164', 'tblTempUsageDetail_20' ) start [2025-09-13 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15833164', 'tblTempUsageDetail_20' ) end [2025-09-13 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15833164', 'tblTempVendorCDR_20' ) start [2025-09-13 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15833164', 'tblTempVendorCDR_20' ) end [2025-09-13 15:25:18] Production.INFO: ProcessCDR(1,15833164,1,1,2) [2025-09-13 15:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15833164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 15:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15833164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 15:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15833164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 15:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15833164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15833164', 'tblTempUsageDetail_20' ) start [2025-09-13 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15833164', 'tblTempUsageDetail_20' ) end [2025-09-13 15:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-13 15:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-13 15:25:27] Production.INFO: ==21823== Releasing lock... [2025-09-13 15:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-13 15:25:27] Production.INFO: 41.75 MB #Memory Used# [2025-09-13 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-13 13:25:05 [end_date_ymd] => 2025-09-13 16:25:05 [RateCDR] => 1 ) [2025-09-13 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-13 13:25:05' and `end` < '2025-09-13 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-13 16:25:19] Production.INFO: count ==1686 [2025-09-13 16:25:19] Production.ERROR: pbx CDR StartTime 2025-09-13 13:25:05 - End Time 2025-09-13 16:25:05 [2025-09-13 16:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-13 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15833411', 'tblTempUsageDetail_20' ) start [2025-09-13 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15833411', 'tblTempUsageDetail_20' ) end [2025-09-13 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15833411', 'tblTempVendorCDR_20' ) start [2025-09-13 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15833411', 'tblTempVendorCDR_20' ) end [2025-09-13 16:25:20] Production.INFO: ProcessCDR(1,15833411,1,1,2) [2025-09-13 16:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15833411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 16:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15833411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 16:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15833411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 16:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15833411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 16:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15833411', 'tblTempUsageDetail_20' ) start [2025-09-13 16:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15833411', 'tblTempUsageDetail_20' ) end [2025-09-13 16:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-13 16:25:29] Production.ERROR: pbx prc_insertCDR end [2025-09-13 16:25:29] Production.INFO: ==28060== Releasing lock... [2025-09-13 16:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-13 16:25:29] Production.INFO: 40.75 MB #Memory Used# [2025-09-13 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-13 14:25:05 [end_date_ymd] => 2025-09-13 17:25:05 [RateCDR] => 1 ) [2025-09-13 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-13 14:25:05' and `end` < '2025-09-13 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-13 17:25:18] Production.INFO: count ==1808 [2025-09-13 17:25:18] Production.ERROR: pbx CDR StartTime 2025-09-13 14:25:05 - End Time 2025-09-13 17:25:05 [2025-09-13 17:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-13 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15833658', 'tblTempUsageDetail_20' ) start [2025-09-13 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15833658', 'tblTempUsageDetail_20' ) end [2025-09-13 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15833658', 'tblTempVendorCDR_20' ) start [2025-09-13 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15833658', 'tblTempVendorCDR_20' ) end [2025-09-13 17:25:19] Production.INFO: ProcessCDR(1,15833658,1,1,2) [2025-09-13 17:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15833658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 17:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15833658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 17:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15833658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 17:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15833658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15833658', 'tblTempUsageDetail_20' ) start [2025-09-13 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15833658', 'tblTempUsageDetail_20' ) end [2025-09-13 17:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-13 17:25:29] Production.ERROR: pbx prc_insertCDR end [2025-09-13 17:25:29] Production.INFO: ==1678== Releasing lock... [2025-09-13 17:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-13 17:25:29] Production.INFO: 41.75 MB #Memory Used# [2025-09-13 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-13 15:25:05 [end_date_ymd] => 2025-09-13 18:25:05 [RateCDR] => 1 ) [2025-09-13 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-13 15:25:05' and `end` < '2025-09-13 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-13 18:25:18] Production.INFO: count ==2001 [2025-09-13 18:25:19] Production.ERROR: pbx CDR StartTime 2025-09-13 15:25:05 - End Time 2025-09-13 18:25:05 [2025-09-13 18:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-13 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15833905', 'tblTempUsageDetail_20' ) start [2025-09-13 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15833905', 'tblTempUsageDetail_20' ) end [2025-09-13 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15833905', 'tblTempVendorCDR_20' ) start [2025-09-13 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15833905', 'tblTempVendorCDR_20' ) end [2025-09-13 18:25:19] Production.INFO: ProcessCDR(1,15833905,1,1,2) [2025-09-13 18:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15833905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 18:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15833905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 18:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15833905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 18:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15833905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 18:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15833905', 'tblTempUsageDetail_20' ) start [2025-09-13 18:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15833905', 'tblTempUsageDetail_20' ) end [2025-09-13 18:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-13 18:25:29] Production.ERROR: pbx prc_insertCDR end [2025-09-13 18:25:29] Production.INFO: ==7887== Releasing lock... [2025-09-13 18:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-13 18:25:29] Production.INFO: 43.25 MB #Memory Used# [2025-09-13 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-13 16:25:05 [end_date_ymd] => 2025-09-13 19:25:05 [RateCDR] => 1 ) [2025-09-13 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-09-13 16:25:05' and `end` < '2025-09-13 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-09-13 19:25:18] Production.INFO: count ==2071 [2025-09-13 19:25:18] Production.ERROR: pbx CDR StartTime 2025-09-13 16:25:05 - End Time 2025-09-13 19:25:05 [2025-09-13 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-13 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15834151', 'tblTempUsageDetail_20' ) start [2025-09-13 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15834151', 'tblTempUsageDetail_20' ) end [2025-09-13 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15834151', 'tblTempVendorCDR_20' ) start [2025-09-13 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15834151', 'tblTempVendorCDR_20' ) end [2025-09-13 19:25:18] Production.INFO: ProcessCDR(1,15834151,1,1,2) [2025-09-13 19:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15834151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15834151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15834151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 19:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15834151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15834151', 'tblTempUsageDetail_20' ) start [2025-09-13 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15834151', 'tblTempUsageDetail_20' ) end [2025-09-13 19:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-13 19:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-13 19:25:28] Production.INFO: ==13878== Releasing lock... [2025-09-13 19:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-13 19:25:28] Production.INFO: 43.75 MB #Memory Used# [2025-09-13 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-13 17:25:06 [end_date_ymd] => 2025-09-13 20:25:06 [RateCDR] => 1 ) [2025-09-13 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-13 17:25:06' and `end` < '2025-09-13 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-13 20:25:18] Production.INFO: count ==1932 [2025-09-13 20:25:19] Production.ERROR: pbx CDR StartTime 2025-09-13 17:25:06 - End Time 2025-09-13 20:25:06 [2025-09-13 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-13 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15834398', 'tblTempUsageDetail_20' ) start [2025-09-13 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15834398', 'tblTempUsageDetail_20' ) end [2025-09-13 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15834398', 'tblTempVendorCDR_20' ) start [2025-09-13 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15834398', 'tblTempVendorCDR_20' ) end [2025-09-13 20:25:19] Production.INFO: ProcessCDR(1,15834398,1,1,2) [2025-09-13 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15834398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 20:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15834398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 20:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15834398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 20:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15834398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15834398', 'tblTempUsageDetail_20' ) start [2025-09-13 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15834398', 'tblTempUsageDetail_20' ) end [2025-09-13 20:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-13 20:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-13 20:25:28] Production.INFO: ==20434== Releasing lock... [2025-09-13 20:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-13 20:25:28] Production.INFO: 42.75 MB #Memory Used# [2025-09-13 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-13 18:25:05 [end_date_ymd] => 2025-09-13 21:25:05 [RateCDR] => 1 ) [2025-09-13 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-13 18:25:05' and `end` < '2025-09-13 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-13 21:25:17] Production.INFO: count ==1703 [2025-09-13 21:25:18] Production.ERROR: pbx CDR StartTime 2025-09-13 18:25:05 - End Time 2025-09-13 21:25:05 [2025-09-13 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-13 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15834645', 'tblTempUsageDetail_20' ) start [2025-09-13 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15834645', 'tblTempUsageDetail_20' ) end [2025-09-13 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15834645', 'tblTempVendorCDR_20' ) start [2025-09-13 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15834645', 'tblTempVendorCDR_20' ) end [2025-09-13 21:25:18] Production.INFO: ProcessCDR(1,15834645,1,1,2) [2025-09-13 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15834645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15834645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15834645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 21:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15834645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15834645', 'tblTempUsageDetail_20' ) start [2025-09-13 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15834645', 'tblTempUsageDetail_20' ) end [2025-09-13 21:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-13 21:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-13 21:25:27] Production.INFO: ==26449== Releasing lock... [2025-09-13 21:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-13 21:25:27] Production.INFO: 41 MB #Memory Used# [2025-09-13 22:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-09-13 19:25:04 [end_date_ymd] => 2025-09-13 22:25:04 [RateCDR] => 1 ) [2025-09-13 22:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-13 19:25:04' and `end` < '2025-09-13 22:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-13 22:25:17] Production.INFO: count ==1465 [2025-09-13 22:25:17] Production.ERROR: pbx CDR StartTime 2025-09-13 19:25:04 - End Time 2025-09-13 22:25:04 [2025-09-13 22:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-13 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15834892', 'tblTempUsageDetail_20' ) start [2025-09-13 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15834892', 'tblTempUsageDetail_20' ) end [2025-09-13 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15834892', 'tblTempVendorCDR_20' ) start [2025-09-13 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15834892', 'tblTempVendorCDR_20' ) end [2025-09-13 22:25:17] Production.INFO: ProcessCDR(1,15834892,1,1,2) [2025-09-13 22:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15834892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15834892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15834892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 22:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15834892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15834892', 'tblTempUsageDetail_20' ) start [2025-09-13 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15834892', 'tblTempUsageDetail_20' ) end [2025-09-13 22:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-13 22:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-13 22:25:27] Production.INFO: ==32338== Releasing lock... [2025-09-13 22:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-13 22:25:27] Production.INFO: 39 MB #Memory Used# [2025-09-13 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-13 20:25:05 [end_date_ymd] => 2025-09-13 23:25:05 [RateCDR] => 1 ) [2025-09-13 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-13 20:25:05' and `end` < '2025-09-13 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-13 23:25:17] Production.INFO: count ==1212 [2025-09-13 23:25:17] Production.ERROR: pbx CDR StartTime 2025-09-13 20:25:05 - End Time 2025-09-13 23:25:05 [2025-09-13 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-13 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15835139', 'tblTempUsageDetail_20' ) start [2025-09-13 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15835139', 'tblTempUsageDetail_20' ) end [2025-09-13 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15835139', 'tblTempVendorCDR_20' ) start [2025-09-13 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15835139', 'tblTempVendorCDR_20' ) end [2025-09-13 23:25:17] Production.INFO: ProcessCDR(1,15835139,1,1,2) [2025-09-13 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15835139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15835139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-13 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15835139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 23:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15835139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-13 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15835139', 'tblTempUsageDetail_20' ) start [2025-09-13 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15835139', 'tblTempUsageDetail_20' ) end [2025-09-13 23:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-13 23:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-13 23:25:25] Production.INFO: ==6097== Releasing lock... [2025-09-13 23:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-13 23:25:25] Production.INFO: 37.5 MB #Memory Used#