[2025-06-24 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-23 21:25:06 [end_date_ymd] => 2025-06-24 00:25:06 [RateCDR] => 1 ) [2025-06-24 00:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-23 21:25:06' and `end` < '2025-06-24 00:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-24 00:25:20] Production.INFO: count ==472 [2025-06-24 00:25:20] Production.ERROR: pbx CDR StartTime 2025-06-23 21:25:06 - End Time 2025-06-24 00:25:06 [2025-06-24 00:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-24 00:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15349359', 'tblTempUsageDetail_20' ) start [2025-06-24 00:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15349359', 'tblTempUsageDetail_20' ) end [2025-06-24 00:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15349359', 'tblTempVendorCDR_20' ) start [2025-06-24 00:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15349359', 'tblTempVendorCDR_20' ) end [2025-06-24 00:25:20] Production.INFO: ProcessCDR(1,15349359,1,1,2) [2025-06-24 00:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15349359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 00:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15349359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 00:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15349359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 00:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15349359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15349359', 'tblTempUsageDetail_20' ) start [2025-06-24 00:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15349359', 'tblTempUsageDetail_20' ) end [2025-06-24 00:25:27] Production.ERROR: pbx prc_insertCDR start [2025-06-24 00:25:27] Production.ERROR: pbx prc_insertCDR end [2025-06-24 00:25:28] Production.INFO: ==21462== Releasing lock... [2025-06-24 00:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-24 00:25:28] Production.INFO: 35.5 MB #Memory Used# [2025-06-24 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-23 22:25:05 [end_date_ymd] => 2025-06-24 01:25:05 [RateCDR] => 1 ) [2025-06-24 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-06-23 22:25:05' and `end` < '2025-06-24 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-06-24 01:25:17] Production.INFO: count ==431 [2025-06-24 01:25:17] Production.ERROR: pbx CDR StartTime 2025-06-23 22:25:05 - End Time 2025-06-24 01:25:05 [2025-06-24 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-24 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15349606', 'tblTempUsageDetail_20' ) start [2025-06-24 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15349606', 'tblTempUsageDetail_20' ) end [2025-06-24 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15349606', 'tblTempVendorCDR_20' ) start [2025-06-24 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15349606', 'tblTempVendorCDR_20' ) end [2025-06-24 01:25:17] Production.INFO: ProcessCDR(1,15349606,1,1,2) [2025-06-24 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15349606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 01:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15349606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 01:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15349606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 01:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15349606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 01:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15349606', 'tblTempUsageDetail_20' ) start [2025-06-24 01:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15349606', 'tblTempUsageDetail_20' ) end [2025-06-24 01:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-24 01:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-24 01:25:23] Production.INFO: ==25983== Releasing lock... [2025-06-24 01:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-24 01:25:23] Production.INFO: 32 MB #Memory Used# [2025-06-24 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-23 23:25:05 [end_date_ymd] => 2025-06-24 02:25:05 [RateCDR] => 1 ) [2025-06-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-06-23 23:25:05' and `end` < '2025-06-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-06-24 02:25:17] Production.INFO: count ==397 [2025-06-24 02:25:17] Production.ERROR: pbx CDR StartTime 2025-06-23 23:25:05 - End Time 2025-06-24 02:25:05 [2025-06-24 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-24 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15349853', 'tblTempUsageDetail_20' ) start [2025-06-24 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15349853', 'tblTempUsageDetail_20' ) end [2025-06-24 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15349853', 'tblTempVendorCDR_20' ) start [2025-06-24 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15349853', 'tblTempVendorCDR_20' ) end [2025-06-24 02:25:17] Production.INFO: ProcessCDR(1,15349853,1,1,2) [2025-06-24 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15349853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 02:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15349853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 02:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15349853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 02:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15349853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 02:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15349853', 'tblTempUsageDetail_20' ) start [2025-06-24 02:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15349853', 'tblTempUsageDetail_20' ) end [2025-06-24 02:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-24 02:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-24 02:25:23] Production.INFO: ==30364== Releasing lock... [2025-06-24 02:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-24 02:25:23] Production.INFO: 31.75 MB #Memory Used# [2025-06-24 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-24 00:25:05 [end_date_ymd] => 2025-06-24 03:25:05 [RateCDR] => 1 ) [2025-06-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-06-24 00:25:05' and `end` < '2025-06-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-06-24 03:25:17] Production.INFO: count ==483 [2025-06-24 03:25:17] Production.ERROR: pbx CDR StartTime 2025-06-24 00:25:05 - End Time 2025-06-24 03:25:05 [2025-06-24 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-24 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15350100', 'tblTempUsageDetail_20' ) start [2025-06-24 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15350100', 'tblTempUsageDetail_20' ) end [2025-06-24 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15350100', 'tblTempVendorCDR_20' ) start [2025-06-24 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15350100', 'tblTempVendorCDR_20' ) end [2025-06-24 03:25:17] Production.INFO: ProcessCDR(1,15350100,1,1,2) [2025-06-24 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15350100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 03:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15350100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 03:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15350100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 03:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15350100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15350100', 'tblTempUsageDetail_20' ) start [2025-06-24 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15350100', 'tblTempUsageDetail_20' ) end [2025-06-24 03:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-24 03:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-24 03:25:23] Production.INFO: ==2212== Releasing lock... [2025-06-24 03:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-24 03:25:23] Production.INFO: 32.5 MB #Memory Used# [2025-06-24 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-24 01:25:05 [end_date_ymd] => 2025-06-24 04:25:05 [RateCDR] => 1 ) [2025-06-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-06-24 01:25:05' and `end` < '2025-06-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-06-24 04:25:18] Production.INFO: count ==343 [2025-06-24 04:25:18] Production.ERROR: pbx CDR StartTime 2025-06-24 01:25:05 - End Time 2025-06-24 04:25:05 [2025-06-24 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-24 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15350348', 'tblTempUsageDetail_20' ) start [2025-06-24 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15350348', 'tblTempUsageDetail_20' ) end [2025-06-24 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15350348', 'tblTempVendorCDR_20' ) start [2025-06-24 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15350348', 'tblTempVendorCDR_20' ) end [2025-06-24 04:25:18] Production.INFO: ProcessCDR(1,15350348,1,1,2) [2025-06-24 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15350348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15350348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15350348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 04:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15350348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15350348', 'tblTempUsageDetail_20' ) start [2025-06-24 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15350348', 'tblTempUsageDetail_20' ) end [2025-06-24 04:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-24 04:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-24 04:25:23] Production.INFO: ==6674== Releasing lock... [2025-06-24 04:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-24 04:25:23] Production.INFO: 30.75 MB #Memory Used# [2025-06-24 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-24 02:25:05 [end_date_ymd] => 2025-06-24 05:25:05 [RateCDR] => 1 ) [2025-06-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-06-24 02:25:05' and `end` < '2025-06-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-06-24 05:25:18] Production.INFO: count ==267 [2025-06-24 05:25:18] Production.ERROR: pbx CDR StartTime 2025-06-24 02:25:05 - End Time 2025-06-24 05:25:05 [2025-06-24 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-24 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15350596', 'tblTempUsageDetail_20' ) start [2025-06-24 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15350596', 'tblTempUsageDetail_20' ) end [2025-06-24 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15350596', 'tblTempVendorCDR_20' ) start [2025-06-24 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15350596', 'tblTempVendorCDR_20' ) end [2025-06-24 05:25:18] Production.INFO: ProcessCDR(1,15350596,1,1,2) [2025-06-24 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15350596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15350596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15350596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 05:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15350596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15350596', 'tblTempUsageDetail_20' ) start [2025-06-24 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15350596', 'tblTempUsageDetail_20' ) end [2025-06-24 05:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-24 05:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-24 05:25:24] Production.INFO: ==11025== Releasing lock... [2025-06-24 05:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-24 05:25:24] Production.INFO: 30.75 MB #Memory Used# [2025-06-24 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-24 03:25:05 [end_date_ymd] => 2025-06-24 06:25:05 [RateCDR] => 1 ) [2025-06-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-06-24 03:25:05' and `end` < '2025-06-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-06-24 06:25:17] Production.INFO: count ==90 [2025-06-24 06:25:17] Production.ERROR: pbx CDR StartTime 2025-06-24 03:25:05 - End Time 2025-06-24 06:25:05 [2025-06-24 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-24 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15350843', 'tblTempUsageDetail_20' ) start [2025-06-24 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15350843', 'tblTempUsageDetail_20' ) end [2025-06-24 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15350843', 'tblTempVendorCDR_20' ) start [2025-06-24 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15350843', 'tblTempVendorCDR_20' ) end [2025-06-24 06:25:17] Production.INFO: ProcessCDR(1,15350843,1,1,2) [2025-06-24 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15350843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 06:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15350843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 06:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15350843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 06:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15350843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15350843', 'tblTempUsageDetail_20' ) start [2025-06-24 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15350843', 'tblTempUsageDetail_20' ) end [2025-06-24 06:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-24 06:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-24 06:25:23] Production.INFO: ==16506== Releasing lock... [2025-06-24 06:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-24 06:25:23] Production.INFO: 28.5 MB #Memory Used# [2025-06-24 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-24 04:25:05 [end_date_ymd] => 2025-06-24 07:25:05 [RateCDR] => 1 ) [2025-06-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-06-24 04:25:05' and `end` < '2025-06-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-06-24 07:25:17] Production.INFO: count ==117 [2025-06-24 07:25:17] Production.ERROR: pbx CDR StartTime 2025-06-24 04:25:05 - End Time 2025-06-24 07:25:05 [2025-06-24 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-24 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15351090', 'tblTempUsageDetail_20' ) start [2025-06-24 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15351090', 'tblTempUsageDetail_20' ) end [2025-06-24 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15351090', 'tblTempVendorCDR_20' ) start [2025-06-24 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15351090', 'tblTempVendorCDR_20' ) end [2025-06-24 07:25:17] Production.INFO: ProcessCDR(1,15351090,1,1,2) [2025-06-24 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15351090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 07:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15351090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 07:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15351090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 07:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15351090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15351090', 'tblTempUsageDetail_20' ) start [2025-06-24 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15351090', 'tblTempUsageDetail_20' ) end [2025-06-24 07:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-24 07:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-24 07:25:23] Production.INFO: ==20776== Releasing lock... [2025-06-24 07:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-24 07:25:23] Production.INFO: 29 MB #Memory Used# [2025-06-24 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-24 05:25:05 [end_date_ymd] => 2025-06-24 08:25:05 [RateCDR] => 1 ) [2025-06-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-06-24 05:25:05' and `end` < '2025-06-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-06-24 08:25:17] Production.INFO: count ==369 [2025-06-24 08:25:17] Production.ERROR: pbx CDR StartTime 2025-06-24 05:25:05 - End Time 2025-06-24 08:25:05 [2025-06-24 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-24 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15351337', 'tblTempUsageDetail_20' ) start [2025-06-24 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15351337', 'tblTempUsageDetail_20' ) end [2025-06-24 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15351337', 'tblTempVendorCDR_20' ) start [2025-06-24 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15351337', 'tblTempVendorCDR_20' ) end [2025-06-24 08:25:18] Production.INFO: ProcessCDR(1,15351337,1,1,2) [2025-06-24 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15351337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15351337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15351337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 08:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15351337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15351337', 'tblTempUsageDetail_20' ) start [2025-06-24 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15351337', 'tblTempUsageDetail_20' ) end [2025-06-24 08:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-24 08:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-24 08:25:24] Production.INFO: ==25041== Releasing lock... [2025-06-24 08:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-24 08:25:24] Production.INFO: 31.5 MB #Memory Used# [2025-06-24 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-24 06:25:05 [end_date_ymd] => 2025-06-24 09:25:05 [RateCDR] => 1 ) [2025-06-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-06-24 06:25:05' and `end` < '2025-06-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-06-24 09:25:18] Production.INFO: count ==1524 [2025-06-24 09:25:18] Production.ERROR: pbx CDR StartTime 2025-06-24 06:25:05 - End Time 2025-06-24 09:25:05 [2025-06-24 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-24 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15351584', 'tblTempUsageDetail_20' ) start [2025-06-24 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15351584', 'tblTempUsageDetail_20' ) end [2025-06-24 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15351584', 'tblTempVendorCDR_20' ) start [2025-06-24 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15351584', 'tblTempVendorCDR_20' ) end [2025-06-24 09:25:18] Production.INFO: ProcessCDR(1,15351584,1,1,2) [2025-06-24 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15351584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15351584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15351584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 09:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15351584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15351584', 'tblTempUsageDetail_20' ) start [2025-06-24 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15351584', 'tblTempUsageDetail_20' ) end [2025-06-24 09:25:26] Production.ERROR: pbx prc_insertCDR start [2025-06-24 09:25:27] Production.ERROR: pbx prc_insertCDR end [2025-06-24 09:25:27] Production.INFO: ==30267== Releasing lock... [2025-06-24 09:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-24 09:25:27] Production.INFO: 39.5 MB #Memory Used# [2025-06-24 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-24 07:25:05 [end_date_ymd] => 2025-06-24 10:25:05 [RateCDR] => 1 ) [2025-06-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-06-24 07:25:05' and `end` < '2025-06-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-06-24 10:25:18] Production.INFO: count ==3442 [2025-06-24 10:25:20] Production.ERROR: pbx CDR StartTime 2025-06-24 07:25:05 - End Time 2025-06-24 10:25:05 [2025-06-24 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-24 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15351831', 'tblTempUsageDetail_20' ) start [2025-06-24 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15351831', 'tblTempUsageDetail_20' ) end [2025-06-24 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15351831', 'tblTempVendorCDR_20' ) start [2025-06-24 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15351831', 'tblTempVendorCDR_20' ) end [2025-06-24 10:25:20] Production.INFO: ProcessCDR(1,15351831,1,1,2) [2025-06-24 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15351831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 10:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15351831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 10:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15351831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 10:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15351831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 10:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15351831', 'tblTempUsageDetail_20' ) start [2025-06-24 10:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15351831', 'tblTempUsageDetail_20' ) end [2025-06-24 10:25:28] Production.ERROR: pbx prc_insertCDR start [2025-06-24 10:25:30] Production.ERROR: pbx prc_insertCDR end [2025-06-24 10:25:30] Production.INFO: ==2194== Releasing lock... [2025-06-24 10:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-24 10:25:30] Production.INFO: 53.75 MB #Memory Used# [2025-06-24 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-24 08:25:06 [end_date_ymd] => 2025-06-24 11:25:06 [RateCDR] => 1 ) [2025-06-24 11: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-06-24 08:25:06' and `end` < '2025-06-24 11: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-06-24 11:25:24] Production.INFO: count ==5082 [2025-06-24 11:25:26] Production.ERROR: pbx CDR StartTime 2025-06-24 08:25:06 - End Time 2025-06-24 11:25:06 [2025-06-24 11:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-24 11:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15352078', 'tblTempUsageDetail_20' ) start [2025-06-24 11:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15352078', 'tblTempUsageDetail_20' ) end [2025-06-24 11:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15352078', 'tblTempVendorCDR_20' ) start [2025-06-24 11:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15352078', 'tblTempVendorCDR_20' ) end [2025-06-24 11:25:26] Production.INFO: ProcessCDR(1,15352078,1,1,2) [2025-06-24 11:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15352078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 11:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15352078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 11:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15352078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 11:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15352078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 11:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15352078', 'tblTempUsageDetail_20' ) start [2025-06-24 11:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15352078', 'tblTempUsageDetail_20' ) end [2025-06-24 11:25:35] Production.ERROR: pbx prc_insertCDR start [2025-06-24 11:25:37] Production.ERROR: pbx prc_insertCDR end [2025-06-24 11:25:37] Production.INFO: ==6685== Releasing lock... [2025-06-24 11:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-24 11:25:37] Production.INFO: 66.25 MB #Memory Used# [2025-06-24 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-24 09:25:05 [end_date_ymd] => 2025-06-24 12:25:05 [RateCDR] => 1 ) [2025-06-24 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-24 09:25:05' and `end` < '2025-06-24 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-24 12:25:18] Production.INFO: count ==6103 [2025-06-24 12:25:21] Production.ERROR: pbx CDR StartTime 2025-06-24 09:25:05 - End Time 2025-06-24 12:25:05 [2025-06-24 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-24 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15352325', 'tblTempUsageDetail_20' ) start [2025-06-24 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15352325', 'tblTempUsageDetail_20' ) end [2025-06-24 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15352325', 'tblTempVendorCDR_20' ) start [2025-06-24 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15352325', 'tblTempVendorCDR_20' ) end [2025-06-24 12:25:22] Production.INFO: ProcessCDR(1,15352325,1,1,2) [2025-06-24 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15352325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 12:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15352325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 12:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15352325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 12:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15352325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 12:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15352325', 'tblTempUsageDetail_20' ) start [2025-06-24 12:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15352325', 'tblTempUsageDetail_20' ) end [2025-06-24 12:25:30] Production.ERROR: pbx prc_insertCDR start [2025-06-24 12:25:34] Production.ERROR: pbx prc_insertCDR end [2025-06-24 12:25:34] Production.INFO: ==10949== Releasing lock... [2025-06-24 12:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-24 12:25:34] Production.INFO: 74 MB #Memory Used# [2025-06-24 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-24 10:25:05 [end_date_ymd] => 2025-06-24 13:25:05 [RateCDR] => 1 ) [2025-06-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-06-24 10:25:05' and `end` < '2025-06-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-06-24 13:25:20] Production.INFO: count ==5889 [2025-06-24 13:25:23] Production.ERROR: pbx CDR StartTime 2025-06-24 10:25:05 - End Time 2025-06-24 13:25:05 [2025-06-24 13:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-24 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15352572', 'tblTempUsageDetail_20' ) start [2025-06-24 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15352572', 'tblTempUsageDetail_20' ) end [2025-06-24 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15352572', 'tblTempVendorCDR_20' ) start [2025-06-24 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15352572', 'tblTempVendorCDR_20' ) end [2025-06-24 13:25:24] Production.INFO: ProcessCDR(1,15352572,1,1,2) [2025-06-24 13:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15352572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 13:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15352572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 13:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15352572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 13:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15352572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 13:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15352572', 'tblTempUsageDetail_20' ) start [2025-06-24 13:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15352572', 'tblTempUsageDetail_20' ) end [2025-06-24 13:25:32] Production.ERROR: pbx prc_insertCDR start [2025-06-24 13:25:35] Production.ERROR: pbx prc_insertCDR end [2025-06-24 13:25:35] Production.INFO: ==15237== Releasing lock... [2025-06-24 13:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-24 13:25:35] Production.INFO: 72.25 MB #Memory Used# [2025-06-24 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-24 11:25:05 [end_date_ymd] => 2025-06-24 14:25:05 [RateCDR] => 1 ) [2025-06-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-06-24 11:25:05' and `end` < '2025-06-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-06-24 14:25:18] Production.INFO: count ==5500 [2025-06-24 14:25:21] Production.ERROR: pbx CDR StartTime 2025-06-24 11:25:05 - End Time 2025-06-24 14:25:05 [2025-06-24 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-24 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15352819', 'tblTempUsageDetail_20' ) start [2025-06-24 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15352819', 'tblTempUsageDetail_20' ) end [2025-06-24 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15352819', 'tblTempVendorCDR_20' ) start [2025-06-24 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15352819', 'tblTempVendorCDR_20' ) end [2025-06-24 14:25:22] Production.INFO: ProcessCDR(1,15352819,1,1,2) [2025-06-24 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15352819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 14:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15352819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 14:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15352819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 14:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15352819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 14:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15352819', 'tblTempUsageDetail_20' ) start [2025-06-24 14:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15352819', 'tblTempUsageDetail_20' ) end [2025-06-24 14:25:31] Production.ERROR: pbx prc_insertCDR start [2025-06-24 14:25:33] Production.ERROR: pbx prc_insertCDR end [2025-06-24 14:25:33] Production.INFO: ==19731== Releasing lock... [2025-06-24 14:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-24 14:25:33] Production.INFO: 69.5 MB #Memory Used# [2025-06-24 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-24 12:25:05 [end_date_ymd] => 2025-06-24 15:25:05 [RateCDR] => 1 ) [2025-06-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-06-24 12:25:05' and `end` < '2025-06-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-06-24 15:25:19] Production.INFO: count ==4945 [2025-06-24 15:25:21] Production.ERROR: pbx CDR StartTime 2025-06-24 12:25:05 - End Time 2025-06-24 15:25:05 [2025-06-24 15:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-24 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15353066', 'tblTempUsageDetail_20' ) start [2025-06-24 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15353066', 'tblTempUsageDetail_20' ) end [2025-06-24 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15353066', 'tblTempVendorCDR_20' ) start [2025-06-24 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15353066', 'tblTempVendorCDR_20' ) end [2025-06-24 15:25:21] Production.INFO: ProcessCDR(1,15353066,1,1,2) [2025-06-24 15:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15353066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 15:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15353066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 15:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15353066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 15:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15353066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 15:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15353066', 'tblTempUsageDetail_20' ) start [2025-06-24 15:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15353066', 'tblTempUsageDetail_20' ) end [2025-06-24 15:25:30] Production.ERROR: pbx prc_insertCDR start [2025-06-24 15:25:32] Production.ERROR: pbx prc_insertCDR end [2025-06-24 15:25:32] Production.INFO: ==24189== Releasing lock... [2025-06-24 15:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-24 15:25:32] Production.INFO: 65.25 MB #Memory Used# [2025-06-24 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-24 13:25:05 [end_date_ymd] => 2025-06-24 16:25:05 [RateCDR] => 1 ) [2025-06-24 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-24 13:25:05' and `end` < '2025-06-24 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-24 16:25:25] Production.INFO: count ==5107 [2025-06-24 16:25:28] Production.ERROR: pbx CDR StartTime 2025-06-24 13:25:05 - End Time 2025-06-24 16:25:05 [2025-06-24 16:25:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-24 16:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15353313', 'tblTempUsageDetail_20' ) start [2025-06-24 16:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15353313', 'tblTempUsageDetail_20' ) end [2025-06-24 16:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15353313', 'tblTempVendorCDR_20' ) start [2025-06-24 16:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15353313', 'tblTempVendorCDR_20' ) end [2025-06-24 16:25:28] Production.INFO: ProcessCDR(1,15353313,1,1,2) [2025-06-24 16:25:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15353313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 16:25:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15353313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 16:25:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15353313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 16:25:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15353313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 16:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15353313', 'tblTempUsageDetail_20' ) start [2025-06-24 16:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15353313', 'tblTempUsageDetail_20' ) end [2025-06-24 16:25:36] Production.ERROR: pbx prc_insertCDR start [2025-06-24 16:25:39] Production.ERROR: pbx prc_insertCDR end [2025-06-24 16:25:39] Production.INFO: ==28636== Releasing lock... [2025-06-24 16:25:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-24 16:25:39] Production.INFO: 66.5 MB #Memory Used# [2025-06-24 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-24 14:25:05 [end_date_ymd] => 2025-06-24 17:25:05 [RateCDR] => 1 ) [2025-06-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-06-24 14:25:05' and `end` < '2025-06-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-06-24 17:25:19] Production.INFO: count ==5118 [2025-06-24 17:25:21] Production.ERROR: pbx CDR StartTime 2025-06-24 14:25:05 - End Time 2025-06-24 17:25:05 [2025-06-24 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-24 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15353560', 'tblTempUsageDetail_20' ) start [2025-06-24 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15353560', 'tblTempUsageDetail_20' ) end [2025-06-24 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15353560', 'tblTempVendorCDR_20' ) start [2025-06-24 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15353560', 'tblTempVendorCDR_20' ) end [2025-06-24 17:25:22] Production.INFO: ProcessCDR(1,15353560,1,1,2) [2025-06-24 17:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15353560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 17:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15353560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 17:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15353560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 17:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15353560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15353560', 'tblTempUsageDetail_20' ) start [2025-06-24 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15353560', 'tblTempUsageDetail_20' ) end [2025-06-24 17:25:30] Production.ERROR: pbx prc_insertCDR start [2025-06-24 17:25:32] Production.ERROR: pbx prc_insertCDR end [2025-06-24 17:25:32] Production.INFO: ==1089== Releasing lock... [2025-06-24 17:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-24 17:25:32] Production.INFO: 66.5 MB #Memory Used# [2025-06-24 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-24 15:25:05 [end_date_ymd] => 2025-06-24 18:25:05 [RateCDR] => 1 ) [2025-06-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-06-24 15:25:05' and `end` < '2025-06-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-06-24 18:25:18] Production.INFO: count ==4798 [2025-06-24 18:25:20] Production.ERROR: pbx CDR StartTime 2025-06-24 15:25:05 - End Time 2025-06-24 18:25:05 [2025-06-24 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-24 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15353807', 'tblTempUsageDetail_20' ) start [2025-06-24 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15353807', 'tblTempUsageDetail_20' ) end [2025-06-24 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15353807', 'tblTempVendorCDR_20' ) start [2025-06-24 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15353807', 'tblTempVendorCDR_20' ) end [2025-06-24 18:25:21] Production.INFO: ProcessCDR(1,15353807,1,1,2) [2025-06-24 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15353807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15353807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15353807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 18:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15353807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 18:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15353807', 'tblTempUsageDetail_20' ) start [2025-06-24 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15353807', 'tblTempUsageDetail_20' ) end [2025-06-24 18:25:29] Production.ERROR: pbx prc_insertCDR start [2025-06-24 18:25:30] Production.ERROR: pbx prc_insertCDR end [2025-06-24 18:25:30] Production.INFO: ==5456== Releasing lock... [2025-06-24 18:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-24 18:25:30] Production.INFO: 64 MB #Memory Used# [2025-06-24 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-24 16:25:05 [end_date_ymd] => 2025-06-24 19:25:05 [RateCDR] => 1 ) [2025-06-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-06-24 16:25:05' and `end` < '2025-06-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-06-24 19:25:18] Production.INFO: count ==3569 [2025-06-24 19:25:20] Production.ERROR: pbx CDR StartTime 2025-06-24 16:25:05 - End Time 2025-06-24 19:25:05 [2025-06-24 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-24 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15354051', 'tblTempUsageDetail_20' ) start [2025-06-24 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15354051', 'tblTempUsageDetail_20' ) end [2025-06-24 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15354051', 'tblTempVendorCDR_20' ) start [2025-06-24 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15354051', 'tblTempVendorCDR_20' ) end [2025-06-24 19:25:20] Production.INFO: ProcessCDR(1,15354051,1,1,2) [2025-06-24 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15354051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15354051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15354051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 19:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15354051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15354051', 'tblTempUsageDetail_20' ) start [2025-06-24 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15354051', 'tblTempUsageDetail_20' ) end [2025-06-24 19:25:26] Production.ERROR: pbx prc_insertCDR start [2025-06-24 19:25:27] Production.ERROR: pbx prc_insertCDR end [2025-06-24 19:25:27] Production.INFO: ==9683== Releasing lock... [2025-06-24 19:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-24 19:25:27] Production.INFO: 55 MB #Memory Used# [2025-06-24 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-24 17:25:05 [end_date_ymd] => 2025-06-24 20:25:05 [RateCDR] => 1 ) [2025-06-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-06-24 17:25:05' and `end` < '2025-06-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-06-24 20:25:17] Production.INFO: count ==3468 [2025-06-24 20:25:19] Production.ERROR: pbx CDR StartTime 2025-06-24 17:25:05 - End Time 2025-06-24 20:25:05 [2025-06-24 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-24 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15354298', 'tblTempUsageDetail_20' ) start [2025-06-24 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15354298', 'tblTempUsageDetail_20' ) end [2025-06-24 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15354298', 'tblTempVendorCDR_20' ) start [2025-06-24 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15354298', 'tblTempVendorCDR_20' ) end [2025-06-24 20:25:19] Production.INFO: ProcessCDR(1,15354298,1,1,2) [2025-06-24 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15354298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15354298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15354298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 20:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15354298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15354298', 'tblTempUsageDetail_20' ) start [2025-06-24 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15354298', 'tblTempUsageDetail_20' ) end [2025-06-24 20:25:27] Production.ERROR: pbx prc_insertCDR start [2025-06-24 20:25:28] Production.ERROR: pbx prc_insertCDR end [2025-06-24 20:25:28] Production.INFO: ==14148== Releasing lock... [2025-06-24 20:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-24 20:25:28] Production.INFO: 54 MB #Memory Used# [2025-06-24 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-24 18:25:05 [end_date_ymd] => 2025-06-24 21:25:05 [RateCDR] => 1 ) [2025-06-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-06-24 18:25:05' and `end` < '2025-06-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-06-24 21:25:18] Production.INFO: count ==2589 [2025-06-24 21:25:19] Production.ERROR: pbx CDR StartTime 2025-06-24 18:25:05 - End Time 2025-06-24 21:25:05 [2025-06-24 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-24 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15354545', 'tblTempUsageDetail_20' ) start [2025-06-24 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15354545', 'tblTempUsageDetail_20' ) end [2025-06-24 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15354545', 'tblTempVendorCDR_20' ) start [2025-06-24 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15354545', 'tblTempVendorCDR_20' ) end [2025-06-24 21:25:19] Production.INFO: ProcessCDR(1,15354545,1,1,2) [2025-06-24 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15354545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15354545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15354545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 21:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15354545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15354545', 'tblTempUsageDetail_20' ) start [2025-06-24 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15354545', 'tblTempUsageDetail_20' ) end [2025-06-24 21:25:26] Production.ERROR: pbx prc_insertCDR start [2025-06-24 21:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-24 21:25:26] Production.INFO: ==18742== Releasing lock... [2025-06-24 21:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-24 21:25:26] Production.INFO: 47.75 MB #Memory Used# [2025-06-24 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-24 19:25:05 [end_date_ymd] => 2025-06-24 22:25:05 [RateCDR] => 1 ) [2025-06-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-06-24 19:25:05' and `end` < '2025-06-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-06-24 22:25:17] Production.INFO: count ==2124 [2025-06-24 22:25:18] Production.ERROR: pbx CDR StartTime 2025-06-24 19:25:05 - End Time 2025-06-24 22:25:05 [2025-06-24 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-24 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15354792', 'tblTempUsageDetail_20' ) start [2025-06-24 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15354792', 'tblTempUsageDetail_20' ) end [2025-06-24 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15354792', 'tblTempVendorCDR_20' ) start [2025-06-24 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15354792', 'tblTempVendorCDR_20' ) end [2025-06-24 22:25:18] Production.INFO: ProcessCDR(1,15354792,1,1,2) [2025-06-24 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15354792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15354792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15354792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 22:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15354792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15354792', 'tblTempUsageDetail_20' ) start [2025-06-24 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15354792', 'tblTempUsageDetail_20' ) end [2025-06-24 22:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-24 22:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-24 22:25:26] Production.INFO: ==23011== Releasing lock... [2025-06-24 22:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-24 22:25:26] Production.INFO: 44 MB #Memory Used# [2025-06-24 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-24 20:25:05 [end_date_ymd] => 2025-06-24 23:25:05 [RateCDR] => 1 ) [2025-06-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-06-24 20:25:05' and `end` < '2025-06-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-06-24 23:25:17] Production.INFO: count ==883 [2025-06-24 23:25:18] Production.ERROR: pbx CDR StartTime 2025-06-24 20:25:05 - End Time 2025-06-24 23:25:05 [2025-06-24 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-24 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15355039', 'tblTempUsageDetail_20' ) start [2025-06-24 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15355039', 'tblTempUsageDetail_20' ) end [2025-06-24 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15355039', 'tblTempVendorCDR_20' ) start [2025-06-24 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15355039', 'tblTempVendorCDR_20' ) end [2025-06-24 23:25:18] Production.INFO: ProcessCDR(1,15355039,1,1,2) [2025-06-24 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15355039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15355039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-24 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15355039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 23:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15355039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-24 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15355039', 'tblTempUsageDetail_20' ) start [2025-06-24 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15355039', 'tblTempUsageDetail_20' ) end [2025-06-24 23:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-24 23:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-24 23:25:25] Production.INFO: ==27433== Releasing lock... [2025-06-24 23:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-24 23:25:25] Production.INFO: 34.5 MB #Memory Used#