[2025-08-24 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-23 21:25:05 [end_date_ymd] => 2025-08-24 00:25:05 [RateCDR] => 1 ) [2025-08-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-08-23 21:25:05' and `end` < '2025-08-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-08-24 00:25:17] Production.INFO: count ==599 [2025-08-24 00:25:17] Production.ERROR: pbx CDR StartTime 2025-08-23 21:25:05 - End Time 2025-08-24 00:25:05 [2025-08-24 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-24 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15710913', 'tblTempUsageDetail_20' ) start [2025-08-24 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15710913', 'tblTempUsageDetail_20' ) end [2025-08-24 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15710913', 'tblTempVendorCDR_20' ) start [2025-08-24 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15710913', 'tblTempVendorCDR_20' ) end [2025-08-24 00:25:17] Production.INFO: ProcessCDR(1,15710913,1,1,2) [2025-08-24 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15710913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 00:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15710913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 00:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15710913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 00:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15710913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15710913', 'tblTempUsageDetail_20' ) start [2025-08-24 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15710913', 'tblTempUsageDetail_20' ) end [2025-08-24 00:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-24 00:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-24 00:25:28] Production.INFO: ==31065== Releasing lock... [2025-08-24 00:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-24 00:25:28] Production.INFO: 36.25 MB #Memory Used# [2025-08-24 01:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-23 22:25:06 [end_date_ymd] => 2025-08-24 01:25:06 [RateCDR] => 1 ) [2025-08-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-08-23 22:25:06' and `end` < '2025-08-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-08-24 01:25:18] Production.INFO: count ==605 [2025-08-24 01:25:18] Production.ERROR: pbx CDR StartTime 2025-08-23 22:25:06 - End Time 2025-08-24 01:25:06 [2025-08-24 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-24 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15711160', 'tblTempUsageDetail_20' ) start [2025-08-24 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15711160', 'tblTempUsageDetail_20' ) end [2025-08-24 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15711160', 'tblTempVendorCDR_20' ) start [2025-08-24 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15711160', 'tblTempVendorCDR_20' ) end [2025-08-24 01:25:18] Production.INFO: ProcessCDR(1,15711160,1,1,2) [2025-08-24 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15711160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 01:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15711160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 01:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15711160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 01:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15711160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15711160', 'tblTempUsageDetail_20' ) start [2025-08-24 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15711160', 'tblTempUsageDetail_20' ) end [2025-08-24 01:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-24 01:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-24 01:25:26] Production.INFO: ==2941== Releasing lock... [2025-08-24 01:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-24 01:25:26] Production.INFO: 33.25 MB #Memory Used# [2025-08-24 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-23 23:25:05 [end_date_ymd] => 2025-08-24 02:25:05 [RateCDR] => 1 ) [2025-08-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-08-23 23:25:05' and `end` < '2025-08-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-08-24 02:25:17] Production.INFO: count ==537 [2025-08-24 02:25:17] Production.ERROR: pbx CDR StartTime 2025-08-23 23:25:05 - End Time 2025-08-24 02:25:05 [2025-08-24 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-24 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15711407', 'tblTempUsageDetail_20' ) start [2025-08-24 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15711407', 'tblTempUsageDetail_20' ) end [2025-08-24 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15711407', 'tblTempVendorCDR_20' ) start [2025-08-24 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15711407', 'tblTempVendorCDR_20' ) end [2025-08-24 02:25:17] Production.INFO: ProcessCDR(1,15711407,1,1,2) [2025-08-24 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15711407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15711407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15711407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 02:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15711407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15711407', 'tblTempUsageDetail_20' ) start [2025-08-24 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15711407', 'tblTempUsageDetail_20' ) end [2025-08-24 02:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-24 02:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-24 02:25:25] Production.INFO: ==7745== Releasing lock... [2025-08-24 02:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-24 02:25:25] Production.INFO: 32.5 MB #Memory Used# [2025-08-24 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-24 00:25:05 [end_date_ymd] => 2025-08-24 03:25:05 [RateCDR] => 1 ) [2025-08-24 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-08-24 00:25:05' and `end` < '2025-08-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-08-24 03:25:17] Production.INFO: count ==491 [2025-08-24 03:25:17] Production.ERROR: pbx CDR StartTime 2025-08-24 00:25:05 - End Time 2025-08-24 03:25:05 [2025-08-24 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-24 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15711654', 'tblTempUsageDetail_20' ) start [2025-08-24 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15711654', 'tblTempUsageDetail_20' ) end [2025-08-24 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15711654', 'tblTempVendorCDR_20' ) start [2025-08-24 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15711654', 'tblTempVendorCDR_20' ) end [2025-08-24 03:25:17] Production.INFO: ProcessCDR(1,15711654,1,1,2) [2025-08-24 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15711654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15711654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15711654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 03:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15711654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15711654', 'tblTempUsageDetail_20' ) start [2025-08-24 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15711654', 'tblTempUsageDetail_20' ) end [2025-08-24 03:25:23] Production.ERROR: pbx prc_insertCDR start [2025-08-24 03:25:23] Production.ERROR: pbx prc_insertCDR end [2025-08-24 03:25:23] Production.INFO: ==12103== Releasing lock... [2025-08-24 03:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-24 03:25:23] Production.INFO: 32.25 MB #Memory Used# [2025-08-24 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-24 01:25:05 [end_date_ymd] => 2025-08-24 04:25:05 [RateCDR] => 1 ) [2025-08-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-08-24 01:25:05' and `end` < '2025-08-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-08-24 04:25:17] Production.INFO: count ==334 [2025-08-24 04:25:17] Production.ERROR: pbx CDR StartTime 2025-08-24 01:25:05 - End Time 2025-08-24 04:25:05 [2025-08-24 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-24 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15711902', 'tblTempUsageDetail_20' ) start [2025-08-24 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15711902', 'tblTempUsageDetail_20' ) end [2025-08-24 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15711902', 'tblTempVendorCDR_20' ) start [2025-08-24 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15711902', 'tblTempVendorCDR_20' ) end [2025-08-24 04:25:17] Production.INFO: ProcessCDR(1,15711902,1,1,2) [2025-08-24 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15711902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15711902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15711902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 04:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15711902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15711902', 'tblTempUsageDetail_20' ) start [2025-08-24 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15711902', 'tblTempUsageDetail_20' ) end [2025-08-24 04:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-24 04:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-24 04:25:24] Production.INFO: ==16596== Releasing lock... [2025-08-24 04:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-24 04:25:24] Production.INFO: 31 MB #Memory Used# [2025-08-24 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-24 02:25:05 [end_date_ymd] => 2025-08-24 05:25:05 [RateCDR] => 1 ) [2025-08-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-08-24 02:25:05' and `end` < '2025-08-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-08-24 05:25:19] Production.INFO: count ==281 [2025-08-24 05:25:19] Production.ERROR: pbx CDR StartTime 2025-08-24 02:25:05 - End Time 2025-08-24 05:25:05 [2025-08-24 05:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-24 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15712150', 'tblTempUsageDetail_20' ) start [2025-08-24 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15712150', 'tblTempUsageDetail_20' ) end [2025-08-24 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15712150', 'tblTempVendorCDR_20' ) start [2025-08-24 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15712150', 'tblTempVendorCDR_20' ) end [2025-08-24 05:25:19] Production.INFO: ProcessCDR(1,15712150,1,1,2) [2025-08-24 05:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15712150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 05:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15712150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 05:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15712150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 05:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15712150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15712150', 'tblTempUsageDetail_20' ) start [2025-08-24 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15712150', 'tblTempUsageDetail_20' ) end [2025-08-24 05:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-24 05:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-24 05:25:24] Production.INFO: ==20899== Releasing lock... [2025-08-24 05:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-24 05:25:24] Production.INFO: 30.5 MB #Memory Used# [2025-08-24 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-24 03:25:05 [end_date_ymd] => 2025-08-24 06:25:05 [RateCDR] => 1 ) [2025-08-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-08-24 03:25:05' and `end` < '2025-08-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-08-24 06:25:18] Production.INFO: count ==211 [2025-08-24 06:25:18] Production.ERROR: pbx CDR StartTime 2025-08-24 03:25:05 - End Time 2025-08-24 06:25:05 [2025-08-24 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-24 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15712397', 'tblTempUsageDetail_20' ) start [2025-08-24 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15712397', 'tblTempUsageDetail_20' ) end [2025-08-24 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15712397', 'tblTempVendorCDR_20' ) start [2025-08-24 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15712397', 'tblTempVendorCDR_20' ) end [2025-08-24 06:25:18] Production.INFO: ProcessCDR(1,15712397,1,1,2) [2025-08-24 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15712397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15712397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15712397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 06:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15712397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15712397', 'tblTempUsageDetail_20' ) start [2025-08-24 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15712397', 'tblTempUsageDetail_20' ) end [2025-08-24 06:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-24 06:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-24 06:25:25] Production.INFO: ==25232== Releasing lock... [2025-08-24 06:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-24 06:25:25] Production.INFO: 30.25 MB #Memory Used# [2025-08-24 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-24 04:25:05 [end_date_ymd] => 2025-08-24 07:25:05 [RateCDR] => 1 ) [2025-08-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-08-24 04:25:05' and `end` < '2025-08-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-08-24 07:25:17] Production.INFO: count ==177 [2025-08-24 07:25:17] Production.ERROR: pbx CDR StartTime 2025-08-24 04:25:05 - End Time 2025-08-24 07:25:05 [2025-08-24 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-24 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15712644', 'tblTempUsageDetail_20' ) start [2025-08-24 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15712644', 'tblTempUsageDetail_20' ) end [2025-08-24 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15712644', 'tblTempVendorCDR_20' ) start [2025-08-24 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15712644', 'tblTempVendorCDR_20' ) end [2025-08-24 07:25:17] Production.INFO: ProcessCDR(1,15712644,1,1,2) [2025-08-24 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15712644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15712644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15712644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 07:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15712644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15712644', 'tblTempUsageDetail_20' ) start [2025-08-24 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15712644', 'tblTempUsageDetail_20' ) end [2025-08-24 07:25:22] Production.ERROR: pbx prc_insertCDR start [2025-08-24 07:25:22] Production.ERROR: pbx prc_insertCDR end [2025-08-24 07:25:22] Production.INFO: ==30217== Releasing lock... [2025-08-24 07:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-24 07:25:22] Production.INFO: 29.5 MB #Memory Used# [2025-08-24 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-24 05:25:05 [end_date_ymd] => 2025-08-24 08:25:05 [RateCDR] => 1 ) [2025-08-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-08-24 05:25:05' and `end` < '2025-08-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-08-24 08:25:18] Production.INFO: count ==134 [2025-08-24 08:25:18] Production.ERROR: pbx CDR StartTime 2025-08-24 05:25:05 - End Time 2025-08-24 08:25:05 [2025-08-24 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-24 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15712891', 'tblTempUsageDetail_20' ) start [2025-08-24 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15712891', 'tblTempUsageDetail_20' ) end [2025-08-24 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15712891', 'tblTempVendorCDR_20' ) start [2025-08-24 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15712891', 'tblTempVendorCDR_20' ) end [2025-08-24 08:25:18] Production.INFO: ProcessCDR(1,15712891,1,1,2) [2025-08-24 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15712891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 08:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15712891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 08:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15712891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 08:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15712891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15712891', 'tblTempUsageDetail_20' ) start [2025-08-24 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15712891', 'tblTempUsageDetail_20' ) end [2025-08-24 08:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-24 08:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-24 08:25:26] Production.INFO: ==2186== Releasing lock... [2025-08-24 08:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-24 08:25:26] Production.INFO: 29.25 MB #Memory Used# [2025-08-24 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-24 06:25:05 [end_date_ymd] => 2025-08-24 09:25:05 [RateCDR] => 1 ) [2025-08-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-08-24 06:25:05' and `end` < '2025-08-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-08-24 09:25:17] Production.INFO: count ==195 [2025-08-24 09:25:17] Production.ERROR: pbx CDR StartTime 2025-08-24 06:25:05 - End Time 2025-08-24 09:25:05 [2025-08-24 09:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-24 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15713138', 'tblTempUsageDetail_20' ) start [2025-08-24 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15713138', 'tblTempUsageDetail_20' ) end [2025-08-24 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15713138', 'tblTempVendorCDR_20' ) start [2025-08-24 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15713138', 'tblTempVendorCDR_20' ) end [2025-08-24 09:25:17] Production.INFO: ProcessCDR(1,15713138,1,1,2) [2025-08-24 09:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15713138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15713138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15713138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 09:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15713138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15713138', 'tblTempUsageDetail_20' ) start [2025-08-24 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15713138', 'tblTempUsageDetail_20' ) end [2025-08-24 09:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-24 09:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-24 09:25:24] Production.INFO: ==7338== Releasing lock... [2025-08-24 09:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-24 09:25:24] Production.INFO: 29.5 MB #Memory Used# [2025-08-24 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-24 07:25:05 [end_date_ymd] => 2025-08-24 10:25:05 [RateCDR] => 1 ) [2025-08-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-08-24 07:25:05' and `end` < '2025-08-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-08-24 10:25:17] Production.INFO: count ==269 [2025-08-24 10:25:17] Production.ERROR: pbx CDR StartTime 2025-08-24 07:25:05 - End Time 2025-08-24 10:25:05 [2025-08-24 10:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-24 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15713385', 'tblTempUsageDetail_20' ) start [2025-08-24 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15713385', 'tblTempUsageDetail_20' ) end [2025-08-24 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15713385', 'tblTempVendorCDR_20' ) start [2025-08-24 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15713385', 'tblTempVendorCDR_20' ) end [2025-08-24 10:25:17] Production.INFO: ProcessCDR(1,15713385,1,1,2) [2025-08-24 10:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15713385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 10:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15713385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 10:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15713385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 10:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15713385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15713385', 'tblTempUsageDetail_20' ) start [2025-08-24 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15713385', 'tblTempUsageDetail_20' ) end [2025-08-24 10:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-24 10:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-24 10:25:25] Production.INFO: ==12218== Releasing lock... [2025-08-24 10:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-24 10:25:25] Production.INFO: 30.75 MB #Memory Used# [2025-08-24 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-24 08:25:05 [end_date_ymd] => 2025-08-24 11:25:05 [RateCDR] => 1 ) [2025-08-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-08-24 08:25:05' and `end` < '2025-08-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-08-24 11:25:18] Production.INFO: count ==436 [2025-08-24 11:25:18] Production.ERROR: pbx CDR StartTime 2025-08-24 08:25:05 - End Time 2025-08-24 11:25:05 [2025-08-24 11:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-24 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15713632', 'tblTempUsageDetail_20' ) start [2025-08-24 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15713632', 'tblTempUsageDetail_20' ) end [2025-08-24 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15713632', 'tblTempVendorCDR_20' ) start [2025-08-24 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15713632', 'tblTempVendorCDR_20' ) end [2025-08-24 11:25:18] Production.INFO: ProcessCDR(1,15713632,1,1,2) [2025-08-24 11:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15713632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 11:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15713632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 11:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15713632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 11:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15713632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15713632', 'tblTempUsageDetail_20' ) start [2025-08-24 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15713632', 'tblTempUsageDetail_20' ) end [2025-08-24 11:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-24 11:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-24 11:25:26] Production.INFO: ==16660== Releasing lock... [2025-08-24 11:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-24 11:25:26] Production.INFO: 31.5 MB #Memory Used# [2025-08-24 12:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-08-24 09:25:04 [end_date_ymd] => 2025-08-24 12:25:04 [RateCDR] => 1 ) [2025-08-24 12:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-24 09:25:04' and `end` < '2025-08-24 12:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-24 12:25:16] Production.INFO: count ==675 [2025-08-24 12:25:17] Production.ERROR: pbx CDR StartTime 2025-08-24 09:25:04 - End Time 2025-08-24 12:25:04 [2025-08-24 12:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-24 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15713879', 'tblTempUsageDetail_20' ) start [2025-08-24 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15713879', 'tblTempUsageDetail_20' ) end [2025-08-24 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15713879', 'tblTempVendorCDR_20' ) start [2025-08-24 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15713879', 'tblTempVendorCDR_20' ) end [2025-08-24 12:25:17] Production.INFO: ProcessCDR(1,15713879,1,1,2) [2025-08-24 12:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15713879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 12:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15713879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 12:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15713879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 12:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15713879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 12:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15713879', 'tblTempUsageDetail_20' ) start [2025-08-24 12:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15713879', 'tblTempUsageDetail_20' ) end [2025-08-24 12:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-24 12:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-24 12:25:26] Production.INFO: ==21211== Releasing lock... [2025-08-24 12:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-24 12:25:26] Production.INFO: 34 MB #Memory Used# [2025-08-24 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-24 10:25:05 [end_date_ymd] => 2025-08-24 13:25:05 [RateCDR] => 1 ) [2025-08-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-08-24 10:25:05' and `end` < '2025-08-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-08-24 13:25:17] Production.INFO: count ==946 [2025-08-24 13:25:17] Production.ERROR: pbx CDR StartTime 2025-08-24 10:25:05 - End Time 2025-08-24 13:25:05 [2025-08-24 13:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-24 13:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15714126', 'tblTempUsageDetail_20' ) start [2025-08-24 13:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15714126', 'tblTempUsageDetail_20' ) end [2025-08-24 13:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15714126', 'tblTempVendorCDR_20' ) start [2025-08-24 13:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15714126', 'tblTempVendorCDR_20' ) end [2025-08-24 13:25:17] Production.INFO: ProcessCDR(1,15714126,1,1,2) [2025-08-24 13:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15714126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 13:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15714126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 13:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15714126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 13:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15714126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 13:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15714126', 'tblTempUsageDetail_20' ) start [2025-08-24 13:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15714126', 'tblTempUsageDetail_20' ) end [2025-08-24 13:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-24 13:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-24 13:25:26] Production.INFO: ==25527== Releasing lock... [2025-08-24 13:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-24 13:25:26] Production.INFO: 36 MB #Memory Used# [2025-08-24 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-24 11:25:05 [end_date_ymd] => 2025-08-24 14:25:05 [RateCDR] => 1 ) [2025-08-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-08-24 11:25:05' and `end` < '2025-08-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-08-24 14:25:18] Production.INFO: count ==1081 [2025-08-24 14:25:18] Production.ERROR: pbx CDR StartTime 2025-08-24 11:25:05 - End Time 2025-08-24 14:25:05 [2025-08-24 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-24 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15714373', 'tblTempUsageDetail_20' ) start [2025-08-24 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15714373', 'tblTempUsageDetail_20' ) end [2025-08-24 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15714373', 'tblTempVendorCDR_20' ) start [2025-08-24 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15714373', 'tblTempVendorCDR_20' ) end [2025-08-24 14:25:18] Production.INFO: ProcessCDR(1,15714373,1,1,2) [2025-08-24 14:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15714373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 14:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15714373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 14:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15714373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 14:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15714373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15714373', 'tblTempUsageDetail_20' ) start [2025-08-24 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15714373', 'tblTempUsageDetail_20' ) end [2025-08-24 14:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-24 14:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-24 14:25:27] Production.INFO: ==30154== Releasing lock... [2025-08-24 14:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-24 14:25:27] Production.INFO: 36.75 MB #Memory Used# [2025-08-24 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-24 12:25:05 [end_date_ymd] => 2025-08-24 15:25:05 [RateCDR] => 1 ) [2025-08-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-08-24 12:25:05' and `end` < '2025-08-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-08-24 15:25:18] Production.INFO: count ==1095 [2025-08-24 15:25:18] Production.ERROR: pbx CDR StartTime 2025-08-24 12:25:05 - End Time 2025-08-24 15:25:05 [2025-08-24 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-24 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15714620', 'tblTempUsageDetail_20' ) start [2025-08-24 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15714620', 'tblTempUsageDetail_20' ) end [2025-08-24 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15714620', 'tblTempVendorCDR_20' ) start [2025-08-24 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15714620', 'tblTempVendorCDR_20' ) end [2025-08-24 15:25:18] Production.INFO: ProcessCDR(1,15714620,1,1,2) [2025-08-24 15:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15714620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 15:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15714620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 15:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15714620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 15:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15714620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15714620', 'tblTempUsageDetail_20' ) start [2025-08-24 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15714620', 'tblTempUsageDetail_20' ) end [2025-08-24 15:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-24 15:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-24 15:25:27] Production.INFO: ==2104== Releasing lock... [2025-08-24 15:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-24 15:25:27] Production.INFO: 36.5 MB #Memory Used# [2025-08-24 16:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-24 13:25:06 [end_date_ymd] => 2025-08-24 16:25:06 [RateCDR] => 1 ) [2025-08-24 16: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-08-24 13:25:06' and `end` < '2025-08-24 16: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-08-24 16:25:18] Production.INFO: count ==1134 [2025-08-24 16:25:18] Production.ERROR: pbx CDR StartTime 2025-08-24 13:25:06 - End Time 2025-08-24 16:25:06 [2025-08-24 16:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-24 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15714867', 'tblTempUsageDetail_20' ) start [2025-08-24 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15714867', 'tblTempUsageDetail_20' ) end [2025-08-24 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15714867', 'tblTempVendorCDR_20' ) start [2025-08-24 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15714867', 'tblTempVendorCDR_20' ) end [2025-08-24 16:25:18] Production.INFO: ProcessCDR(1,15714867,1,1,2) [2025-08-24 16:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15714867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 16:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15714867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 16:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15714867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 16:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15714867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15714867', 'tblTempUsageDetail_20' ) start [2025-08-24 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15714867', 'tblTempUsageDetail_20' ) end [2025-08-24 16:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-24 16:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-24 16:25:27] Production.INFO: ==6528== Releasing lock... [2025-08-24 16:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-24 16:25:27] Production.INFO: 37 MB #Memory Used# [2025-08-24 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-24 14:25:05 [end_date_ymd] => 2025-08-24 17:25:05 [RateCDR] => 1 ) [2025-08-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-08-24 14:25:05' and `end` < '2025-08-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-08-24 17:25:17] Production.INFO: count ==1312 [2025-08-24 17:25:18] Production.ERROR: pbx CDR StartTime 2025-08-24 14:25:05 - End Time 2025-08-24 17:25:05 [2025-08-24 17:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-24 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15715114', 'tblTempUsageDetail_20' ) start [2025-08-24 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15715114', 'tblTempUsageDetail_20' ) end [2025-08-24 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15715114', 'tblTempVendorCDR_20' ) start [2025-08-24 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15715114', 'tblTempVendorCDR_20' ) end [2025-08-24 17:25:18] Production.INFO: ProcessCDR(1,15715114,1,1,2) [2025-08-24 17:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15715114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 17:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15715114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 17:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15715114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 17:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15715114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15715114', 'tblTempUsageDetail_20' ) start [2025-08-24 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15715114', 'tblTempUsageDetail_20' ) end [2025-08-24 17:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-24 17:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-24 17:25:27] Production.INFO: ==11467== Releasing lock... [2025-08-24 17:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-24 17:25:27] Production.INFO: 38.25 MB #Memory Used# [2025-08-24 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-24 15:25:05 [end_date_ymd] => 2025-08-24 18:25:05 [RateCDR] => 1 ) [2025-08-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-08-24 15:25:05' and `end` < '2025-08-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-08-24 18:25:18] Production.INFO: count ==1506 [2025-08-24 18:25:18] Production.ERROR: pbx CDR StartTime 2025-08-24 15:25:05 - End Time 2025-08-24 18:25:05 [2025-08-24 18:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-24 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15715361', 'tblTempUsageDetail_20' ) start [2025-08-24 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15715361', 'tblTempUsageDetail_20' ) end [2025-08-24 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15715361', 'tblTempVendorCDR_20' ) start [2025-08-24 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15715361', 'tblTempVendorCDR_20' ) end [2025-08-24 18:25:18] Production.INFO: ProcessCDR(1,15715361,1,1,2) [2025-08-24 18:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15715361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 18:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15715361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 18:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15715361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 18:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15715361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 18:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15715361', 'tblTempUsageDetail_20' ) start [2025-08-24 18:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15715361', 'tblTempUsageDetail_20' ) end [2025-08-24 18:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-24 18:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-24 18:25:27] Production.INFO: ==15802== Releasing lock... [2025-08-24 18:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-24 18:25:27] Production.INFO: 39.5 MB #Memory Used# [2025-08-24 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-24 16:25:05 [end_date_ymd] => 2025-08-24 19:25:05 [RateCDR] => 1 ) [2025-08-24 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-08-24 16:25:05' and `end` < '2025-08-24 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-08-24 19:25:17] Production.INFO: count ==1482 [2025-08-24 19:25:18] Production.ERROR: pbx CDR StartTime 2025-08-24 16:25:05 - End Time 2025-08-24 19:25:05 [2025-08-24 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-24 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15715604', 'tblTempUsageDetail_20' ) start [2025-08-24 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15715604', 'tblTempUsageDetail_20' ) end [2025-08-24 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15715604', 'tblTempVendorCDR_20' ) start [2025-08-24 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15715604', 'tblTempVendorCDR_20' ) end [2025-08-24 19:25:18] Production.INFO: ProcessCDR(1,15715604,1,1,2) [2025-08-24 19:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15715604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15715604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15715604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 19:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15715604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 19:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15715604', 'tblTempUsageDetail_20' ) start [2025-08-24 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15715604', 'tblTempUsageDetail_20' ) end [2025-08-24 19:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-24 19:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-24 19:25:26] Production.INFO: ==20414== Releasing lock... [2025-08-24 19:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-24 19:25:26] Production.INFO: 39.5 MB #Memory Used# [2025-08-24 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-24 17:25:05 [end_date_ymd] => 2025-08-24 20:25:05 [RateCDR] => 1 ) [2025-08-24 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-24 17:25:05' and `end` < '2025-08-24 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-24 20:25:18] Production.INFO: count ==1418 [2025-08-24 20:25:18] Production.ERROR: pbx CDR StartTime 2025-08-24 17:25:05 - End Time 2025-08-24 20:25:05 [2025-08-24 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-24 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15715851', 'tblTempUsageDetail_20' ) start [2025-08-24 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15715851', 'tblTempUsageDetail_20' ) end [2025-08-24 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15715851', 'tblTempVendorCDR_20' ) start [2025-08-24 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15715851', 'tblTempVendorCDR_20' ) end [2025-08-24 20:25:18] Production.INFO: ProcessCDR(1,15715851,1,1,2) [2025-08-24 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15715851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15715851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15715851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 20:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15715851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15715851', 'tblTempUsageDetail_20' ) start [2025-08-24 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15715851', 'tblTempUsageDetail_20' ) end [2025-08-24 20:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-24 20:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-24 20:25:26] Production.INFO: ==26118== Releasing lock... [2025-08-24 20:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-24 20:25:26] Production.INFO: 38.75 MB #Memory Used# [2025-08-24 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-24 18:25:05 [end_date_ymd] => 2025-08-24 21:25:05 [RateCDR] => 1 ) [2025-08-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-08-24 18:25:05' and `end` < '2025-08-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-08-24 21:25:18] Production.INFO: count ==1227 [2025-08-24 21:25:18] Production.ERROR: pbx CDR StartTime 2025-08-24 18:25:05 - End Time 2025-08-24 21:25:05 [2025-08-24 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-24 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15716098', 'tblTempUsageDetail_20' ) start [2025-08-24 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15716098', 'tblTempUsageDetail_20' ) end [2025-08-24 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15716098', 'tblTempVendorCDR_20' ) start [2025-08-24 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15716098', 'tblTempVendorCDR_20' ) end [2025-08-24 21:25:18] Production.INFO: ProcessCDR(1,15716098,1,1,2) [2025-08-24 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15716098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15716098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15716098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 21:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15716098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15716098', 'tblTempUsageDetail_20' ) start [2025-08-24 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15716098', 'tblTempUsageDetail_20' ) end [2025-08-24 21:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-24 21:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-24 21:25:26] Production.INFO: ==31027== Releasing lock... [2025-08-24 21:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-24 21:25:26] Production.INFO: 37.25 MB #Memory Used# [2025-08-24 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-24 19:25:05 [end_date_ymd] => 2025-08-24 22:25:05 [RateCDR] => 1 ) [2025-08-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-08-24 19:25:05' and `end` < '2025-08-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-08-24 22:25:18] Production.INFO: count ==1250 [2025-08-24 22:25:18] Production.ERROR: pbx CDR StartTime 2025-08-24 19:25:05 - End Time 2025-08-24 22:25:05 [2025-08-24 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-24 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15716345', 'tblTempUsageDetail_20' ) start [2025-08-24 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15716345', 'tblTempUsageDetail_20' ) end [2025-08-24 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15716345', 'tblTempVendorCDR_20' ) start [2025-08-24 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15716345', 'tblTempVendorCDR_20' ) end [2025-08-24 22:25:18] Production.INFO: ProcessCDR(1,15716345,1,1,2) [2025-08-24 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15716345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15716345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15716345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 22:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15716345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15716345', 'tblTempUsageDetail_20' ) start [2025-08-24 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15716345', 'tblTempUsageDetail_20' ) end [2025-08-24 22:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-24 22:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-24 22:25:26] Production.INFO: ==3039== Releasing lock... [2025-08-24 22:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-24 22:25:26] Production.INFO: 37.75 MB #Memory Used# [2025-08-24 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-24 20:25:05 [end_date_ymd] => 2025-08-24 23:25:05 [RateCDR] => 1 ) [2025-08-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-08-24 20:25:05' and `end` < '2025-08-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-08-24 23:25:18] Production.INFO: count ==1035 [2025-08-24 23:25:18] Production.ERROR: pbx CDR StartTime 2025-08-24 20:25:05 - End Time 2025-08-24 23:25:05 [2025-08-24 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-24 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15716592', 'tblTempUsageDetail_20' ) start [2025-08-24 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15716592', 'tblTempUsageDetail_20' ) end [2025-08-24 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15716592', 'tblTempVendorCDR_20' ) start [2025-08-24 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15716592', 'tblTempVendorCDR_20' ) end [2025-08-24 23:25:18] Production.INFO: ProcessCDR(1,15716592,1,1,2) [2025-08-24 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15716592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15716592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-24 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15716592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 23:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15716592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-24 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15716592', 'tblTempUsageDetail_20' ) start [2025-08-24 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15716592', 'tblTempUsageDetail_20' ) end [2025-08-24 23:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-24 23:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-24 23:25:26] Production.INFO: ==8227== Releasing lock... [2025-08-24 23:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-24 23:25:26] Production.INFO: 36.25 MB #Memory Used#