[2025-09-26 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-25 21:25:06 [end_date_ymd] => 2025-09-26 00:25:06 [RateCDR] => 1 ) [2025-09-26 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-09-25 21:25:06' and `end` < '2025-09-26 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-09-26 00:25:18] Production.INFO: count ==512 [2025-09-26 00:25:18] Production.ERROR: pbx CDR StartTime 2025-09-25 21:25:06 - End Time 2025-09-26 00:25:06 [2025-09-26 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-26 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15906514', 'tblTempUsageDetail_20' ) start [2025-09-26 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15906514', 'tblTempUsageDetail_20' ) end [2025-09-26 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15906514', 'tblTempVendorCDR_20' ) start [2025-09-26 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15906514', 'tblTempVendorCDR_20' ) end [2025-09-26 00:25:18] Production.INFO: ProcessCDR(1,15906514,1,1,2) [2025-09-26 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15906514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 00:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15906514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 00:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15906514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 00:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15906514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15906514', 'tblTempUsageDetail_20' ) start [2025-09-26 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15906514', 'tblTempUsageDetail_20' ) end [2025-09-26 00:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-26 00:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-26 00:25:30] Production.INFO: ==30847== Releasing lock... [2025-09-26 00:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-26 00:25:30] Production.INFO: 35.5 MB #Memory Used# [2025-09-26 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-25 22:25:05 [end_date_ymd] => 2025-09-26 01:25:05 [RateCDR] => 1 ) [2025-09-26 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-25 22:25:05' and `end` < '2025-09-26 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-26 01:25:17] Production.INFO: count ==552 [2025-09-26 01:25:17] Production.ERROR: pbx CDR StartTime 2025-09-25 22:25:05 - End Time 2025-09-26 01:25:05 [2025-09-26 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-26 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15906761', 'tblTempUsageDetail_20' ) start [2025-09-26 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15906761', 'tblTempUsageDetail_20' ) end [2025-09-26 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15906761', 'tblTempVendorCDR_20' ) start [2025-09-26 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15906761', 'tblTempVendorCDR_20' ) end [2025-09-26 01:25:17] Production.INFO: ProcessCDR(1,15906761,1,1,2) [2025-09-26 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15906761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15906761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15906761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 01:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15906761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15906761', 'tblTempUsageDetail_20' ) start [2025-09-26 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15906761', 'tblTempUsageDetail_20' ) end [2025-09-26 01:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-26 01:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-26 01:25:26] Production.INFO: ==2913== Releasing lock... [2025-09-26 01:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-26 01:25:26] Production.INFO: 32.5 MB #Memory Used# [2025-09-26 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-25 23:25:05 [end_date_ymd] => 2025-09-26 02:25:05 [RateCDR] => 1 ) [2025-09-26 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-25 23:25:05' and `end` < '2025-09-26 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-26 02:25:17] Production.INFO: count ==506 [2025-09-26 02:25:17] Production.ERROR: pbx CDR StartTime 2025-09-25 23:25:05 - End Time 2025-09-26 02:25:05 [2025-09-26 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-26 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15907008', 'tblTempUsageDetail_20' ) start [2025-09-26 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15907008', 'tblTempUsageDetail_20' ) end [2025-09-26 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15907008', 'tblTempVendorCDR_20' ) start [2025-09-26 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15907008', 'tblTempVendorCDR_20' ) end [2025-09-26 02:25:17] Production.INFO: ProcessCDR(1,15907008,1,1,2) [2025-09-26 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15907008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15907008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15907008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 02:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15907008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15907008', 'tblTempUsageDetail_20' ) start [2025-09-26 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15907008', 'tblTempUsageDetail_20' ) end [2025-09-26 02:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-26 02:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-26 02:25:26] Production.INFO: ==7367== Releasing lock... [2025-09-26 02:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-26 02:25:26] Production.INFO: 31.75 MB #Memory Used# [2025-09-26 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-26 00:25:05 [end_date_ymd] => 2025-09-26 03:25:05 [RateCDR] => 1 ) [2025-09-26 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-26 00:25:05' and `end` < '2025-09-26 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-26 03:25:17] Production.INFO: count ==430 [2025-09-26 03:25:18] Production.ERROR: pbx CDR StartTime 2025-09-26 00:25:05 - End Time 2025-09-26 03:25:05 [2025-09-26 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-26 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15907255', 'tblTempUsageDetail_20' ) start [2025-09-26 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15907255', 'tblTempUsageDetail_20' ) end [2025-09-26 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15907255', 'tblTempVendorCDR_20' ) start [2025-09-26 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15907255', 'tblTempVendorCDR_20' ) end [2025-09-26 03:25:18] Production.INFO: ProcessCDR(1,15907255,1,1,2) [2025-09-26 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15907255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15907255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15907255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 03:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15907255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15907255', 'tblTempUsageDetail_20' ) start [2025-09-26 03:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15907255', 'tblTempUsageDetail_20' ) end [2025-09-26 03:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-26 03:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-26 03:25:26] Production.INFO: ==11954== Releasing lock... [2025-09-26 03:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-26 03:25:26] Production.INFO: 31.5 MB #Memory Used# [2025-09-26 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-26 01:25:05 [end_date_ymd] => 2025-09-26 04:25:05 [RateCDR] => 1 ) [2025-09-26 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-26 01:25:05' and `end` < '2025-09-26 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-26 04:25:18] Production.INFO: count ==232 [2025-09-26 04:25:18] Production.ERROR: pbx CDR StartTime 2025-09-26 01:25:05 - End Time 2025-09-26 04:25:05 [2025-09-26 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-26 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15907503', 'tblTempUsageDetail_20' ) start [2025-09-26 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15907503', 'tblTempUsageDetail_20' ) end [2025-09-26 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15907503', 'tblTempVendorCDR_20' ) start [2025-09-26 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15907503', 'tblTempVendorCDR_20' ) end [2025-09-26 04:25:18] Production.INFO: ProcessCDR(1,15907503,1,1,2) [2025-09-26 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15907503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 04:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15907503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 04:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15907503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 04:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15907503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 04:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15907503', 'tblTempUsageDetail_20' ) start [2025-09-26 04:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15907503', 'tblTempUsageDetail_20' ) end [2025-09-26 04:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-26 04:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-26 04:25:26] Production.INFO: ==16268== Releasing lock... [2025-09-26 04:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-26 04:25:26] Production.INFO: 30.5 MB #Memory Used# [2025-09-26 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-26 02:25:05 [end_date_ymd] => 2025-09-26 05:25:05 [RateCDR] => 1 ) [2025-09-26 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-26 02:25:05' and `end` < '2025-09-26 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-26 05:25:17] Production.INFO: count ==175 [2025-09-26 05:25:17] Production.ERROR: pbx CDR StartTime 2025-09-26 02:25:05 - End Time 2025-09-26 05:25:05 [2025-09-26 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-26 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15907751', 'tblTempUsageDetail_20' ) start [2025-09-26 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15907751', 'tblTempUsageDetail_20' ) end [2025-09-26 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15907751', 'tblTempVendorCDR_20' ) start [2025-09-26 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15907751', 'tblTempVendorCDR_20' ) end [2025-09-26 05:25:17] Production.INFO: ProcessCDR(1,15907751,1,1,2) [2025-09-26 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15907751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15907751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15907751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 05:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15907751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15907751', 'tblTempUsageDetail_20' ) start [2025-09-26 05:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15907751', 'tblTempUsageDetail_20' ) end [2025-09-26 05:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-26 05:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-26 05:25:26] Production.INFO: ==20515== Releasing lock... [2025-09-26 05:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-26 05:25:26] Production.INFO: 29.5 MB #Memory Used# [2025-09-26 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-26 03:25:05 [end_date_ymd] => 2025-09-26 06:25:05 [RateCDR] => 1 ) [2025-09-26 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-26 03:25:05' and `end` < '2025-09-26 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-26 06:25:17] Production.INFO: count ==132 [2025-09-26 06:25:17] Production.ERROR: pbx CDR StartTime 2025-09-26 03:25:05 - End Time 2025-09-26 06:25:05 [2025-09-26 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-26 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15907998', 'tblTempUsageDetail_20' ) start [2025-09-26 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15907998', 'tblTempUsageDetail_20' ) end [2025-09-26 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15907998', 'tblTempVendorCDR_20' ) start [2025-09-26 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15907998', 'tblTempVendorCDR_20' ) end [2025-09-26 06:25:17] Production.INFO: ProcessCDR(1,15907998,1,1,2) [2025-09-26 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15907998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 06:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15907998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 06:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15907998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 06:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15907998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15907998', 'tblTempUsageDetail_20' ) start [2025-09-26 06:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15907998', 'tblTempUsageDetail_20' ) end [2025-09-26 06:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-26 06:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-26 06:25:26] Production.INFO: ==25357== Releasing lock... [2025-09-26 06:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-26 06:25:26] Production.INFO: 29.5 MB #Memory Used# [2025-09-26 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-26 04:25:06 [end_date_ymd] => 2025-09-26 07:25:06 [RateCDR] => 1 ) [2025-09-26 07:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-26 04:25:06' and `end` < '2025-09-26 07:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-26 07:25:18] Production.INFO: count ==122 [2025-09-26 07:25:18] Production.ERROR: pbx CDR StartTime 2025-09-26 04:25:06 - End Time 2025-09-26 07:25:06 [2025-09-26 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-26 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15908245', 'tblTempUsageDetail_20' ) start [2025-09-26 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15908245', 'tblTempUsageDetail_20' ) end [2025-09-26 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15908245', 'tblTempVendorCDR_20' ) start [2025-09-26 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15908245', 'tblTempVendorCDR_20' ) end [2025-09-26 07:25:18] Production.INFO: ProcessCDR(1,15908245,1,1,2) [2025-09-26 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15908245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15908245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15908245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 07:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15908245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15908245', 'tblTempUsageDetail_20' ) start [2025-09-26 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15908245', 'tblTempUsageDetail_20' ) end [2025-09-26 07:25:23] Production.ERROR: pbx prc_insertCDR start [2025-09-26 07:25:23] Production.ERROR: pbx prc_insertCDR end [2025-09-26 07:25:23] Production.INFO: ==29695== Releasing lock... [2025-09-26 07:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-26 07:25:23] Production.INFO: 29 MB #Memory Used# [2025-09-26 08:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-26 05:25:06 [end_date_ymd] => 2025-09-26 08:25:06 [RateCDR] => 1 ) [2025-09-26 08:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-26 05:25:06' and `end` < '2025-09-26 08:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-26 08:25:18] Production.INFO: count ==348 [2025-09-26 08:25:18] Production.ERROR: pbx CDR StartTime 2025-09-26 05:25:06 - End Time 2025-09-26 08:25:06 [2025-09-26 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-26 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15908492', 'tblTempUsageDetail_20' ) start [2025-09-26 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15908492', 'tblTempUsageDetail_20' ) end [2025-09-26 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15908492', 'tblTempVendorCDR_20' ) start [2025-09-26 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15908492', 'tblTempVendorCDR_20' ) end [2025-09-26 08:25:18] Production.INFO: ProcessCDR(1,15908492,1,1,2) [2025-09-26 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15908492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 08:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15908492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 08:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15908492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 08:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15908492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15908492', 'tblTempUsageDetail_20' ) start [2025-09-26 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15908492', 'tblTempUsageDetail_20' ) end [2025-09-26 08:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-26 08:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-26 08:25:26] Production.INFO: ==1636== Releasing lock... [2025-09-26 08:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-26 08:25:26] Production.INFO: 31.25 MB #Memory Used# [2025-09-26 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-26 06:25:05 [end_date_ymd] => 2025-09-26 09:25:05 [RateCDR] => 1 ) [2025-09-26 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-26 06:25:05' and `end` < '2025-09-26 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-26 09:25:18] Production.INFO: count ==1423 [2025-09-26 09:25:18] Production.ERROR: pbx CDR StartTime 2025-09-26 06:25:05 - End Time 2025-09-26 09:25:05 [2025-09-26 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-26 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15908739', 'tblTempUsageDetail_20' ) start [2025-09-26 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15908739', 'tblTempUsageDetail_20' ) end [2025-09-26 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15908739', 'tblTempVendorCDR_20' ) start [2025-09-26 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15908739', 'tblTempVendorCDR_20' ) end [2025-09-26 09:25:18] Production.INFO: ProcessCDR(1,15908739,1,1,2) [2025-09-26 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15908739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15908739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15908739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 09:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15908739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 09:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15908739', 'tblTempUsageDetail_20' ) start [2025-09-26 09:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15908739', 'tblTempUsageDetail_20' ) end [2025-09-26 09:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-26 09:25:29] Production.ERROR: pbx prc_insertCDR end [2025-09-26 09:25:29] Production.INFO: ==7035== Releasing lock... [2025-09-26 09:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-26 09:25:29] Production.INFO: 39 MB #Memory Used# [2025-09-26 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-26 07:25:06 [end_date_ymd] => 2025-09-26 10:25:06 [RateCDR] => 1 ) [2025-09-26 10:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-26 07:25:06' and `end` < '2025-09-26 10:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-26 10:25:20] Production.INFO: count ==3266 [2025-09-26 10:25:22] Production.ERROR: pbx CDR StartTime 2025-09-26 07:25:06 - End Time 2025-09-26 10:25:06 [2025-09-26 10:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-26 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15908986', 'tblTempUsageDetail_20' ) start [2025-09-26 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15908986', 'tblTempUsageDetail_20' ) end [2025-09-26 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15908986', 'tblTempVendorCDR_20' ) start [2025-09-26 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15908986', 'tblTempVendorCDR_20' ) end [2025-09-26 10:25:22] Production.INFO: ProcessCDR(1,15908986,1,1,2) [2025-09-26 10:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15908986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 10:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15908986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 10:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15908986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 10:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15908986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 10:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15908986', 'tblTempUsageDetail_20' ) start [2025-09-26 10:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15908986', 'tblTempUsageDetail_20' ) end [2025-09-26 10:25:31] Production.ERROR: pbx prc_insertCDR start [2025-09-26 10:25:33] Production.ERROR: pbx prc_insertCDR end [2025-09-26 10:25:33] Production.INFO: ==11472== Releasing lock... [2025-09-26 10:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-26 10:25:33] Production.INFO: 52.5 MB #Memory Used# [2025-09-26 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-26 08:25:05 [end_date_ymd] => 2025-09-26 11:25:05 [RateCDR] => 1 ) [2025-09-26 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-26 08:25:05' and `end` < '2025-09-26 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-26 11:25:20] Production.INFO: count ==4895 [2025-09-26 11:25:23] Production.ERROR: pbx CDR StartTime 2025-09-26 08:25:05 - End Time 2025-09-26 11:25:05 [2025-09-26 11:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-26 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15909233', 'tblTempUsageDetail_20' ) start [2025-09-26 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15909233', 'tblTempUsageDetail_20' ) end [2025-09-26 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15909233', 'tblTempVendorCDR_20' ) start [2025-09-26 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15909233', 'tblTempVendorCDR_20' ) end [2025-09-26 11:25:23] Production.INFO: ProcessCDR(1,15909233,1,1,2) [2025-09-26 11:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15909233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 11:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15909233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 11:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15909233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 11:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15909233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 11:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15909233', 'tblTempUsageDetail_20' ) start [2025-09-26 11:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15909233', 'tblTempUsageDetail_20' ) end [2025-09-26 11:25:33] Production.ERROR: pbx prc_insertCDR start [2025-09-26 11:25:36] Production.ERROR: pbx prc_insertCDR end [2025-09-26 11:25:36] Production.INFO: ==16217== Releasing lock... [2025-09-26 11:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-26 11:25:36] Production.INFO: 64.75 MB #Memory Used# [2025-09-26 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-26 09:25:06 [end_date_ymd] => 2025-09-26 12:25:06 [RateCDR] => 1 ) [2025-09-26 12:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-26 09:25:06' and `end` < '2025-09-26 12:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-26 12:25:19] Production.INFO: count ==5575 [2025-09-26 12:25:22] Production.ERROR: pbx CDR StartTime 2025-09-26 09:25:06 - End Time 2025-09-26 12:25:06 [2025-09-26 12:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-26 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15909480', 'tblTempUsageDetail_20' ) start [2025-09-26 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15909480', 'tblTempUsageDetail_20' ) end [2025-09-26 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15909480', 'tblTempVendorCDR_20' ) start [2025-09-26 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15909480', 'tblTempVendorCDR_20' ) end [2025-09-26 12:25:22] Production.INFO: ProcessCDR(1,15909480,1,1,2) [2025-09-26 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15909480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 12:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15909480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 12:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15909480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 12:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15909480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 12:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15909480', 'tblTempUsageDetail_20' ) start [2025-09-26 12:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15909480', 'tblTempUsageDetail_20' ) end [2025-09-26 12:25:33] Production.ERROR: pbx prc_insertCDR start [2025-09-26 12:25:36] Production.ERROR: pbx prc_insertCDR end [2025-09-26 12:25:36] Production.INFO: ==20564== Releasing lock... [2025-09-26 12:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-26 12:25:36] Production.INFO: 70 MB #Memory Used# [2025-09-26 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-26 10:25:05 [end_date_ymd] => 2025-09-26 13:25:05 [RateCDR] => 1 ) [2025-09-26 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-26 10:25:05' and `end` < '2025-09-26 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-26 13:25:19] Production.INFO: count ==5389 [2025-09-26 13:25:22] Production.ERROR: pbx CDR StartTime 2025-09-26 10:25:05 - End Time 2025-09-26 13:25:05 [2025-09-26 13:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-26 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15909727', 'tblTempUsageDetail_20' ) start [2025-09-26 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15909727', 'tblTempUsageDetail_20' ) end [2025-09-26 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15909727', 'tblTempVendorCDR_20' ) start [2025-09-26 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15909727', 'tblTempVendorCDR_20' ) end [2025-09-26 13:25:23] Production.INFO: ProcessCDR(1,15909727,1,1,2) [2025-09-26 13:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15909727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 13:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15909727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 13:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15909727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 13:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15909727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 13:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15909727', 'tblTempUsageDetail_20' ) start [2025-09-26 13:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15909727', 'tblTempUsageDetail_20' ) end [2025-09-26 13:25:33] Production.ERROR: pbx prc_insertCDR start [2025-09-26 13:25:35] Production.ERROR: pbx prc_insertCDR end [2025-09-26 13:25:35] Production.INFO: ==24882== Releasing lock... [2025-09-26 13:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-26 13:25:35] Production.INFO: 68.5 MB #Memory Used# [2025-09-26 14:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-26 11:25:06 [end_date_ymd] => 2025-09-26 14:25:06 [RateCDR] => 1 ) [2025-09-26 14:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-26 11:25:06' and `end` < '2025-09-26 14:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-26 14:25:19] Production.INFO: count ==5387 [2025-09-26 14:25:22] Production.ERROR: pbx CDR StartTime 2025-09-26 11:25:06 - End Time 2025-09-26 14:25:06 [2025-09-26 14:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-26 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15909974', 'tblTempUsageDetail_20' ) start [2025-09-26 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15909974', 'tblTempUsageDetail_20' ) end [2025-09-26 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15909974', 'tblTempVendorCDR_20' ) start [2025-09-26 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15909974', 'tblTempVendorCDR_20' ) end [2025-09-26 14:25:22] Production.INFO: ProcessCDR(1,15909974,1,1,2) [2025-09-26 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15909974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 14:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15909974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 14:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15909974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 14:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15909974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 14:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15909974', 'tblTempUsageDetail_20' ) start [2025-09-26 14:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15909974', 'tblTempUsageDetail_20' ) end [2025-09-26 14:25:33] Production.ERROR: pbx prc_insertCDR start [2025-09-26 14:25:35] Production.ERROR: pbx prc_insertCDR end [2025-09-26 14:25:35] Production.INFO: ==29364== Releasing lock... [2025-09-26 14:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-26 14:25:35] Production.INFO: 68.5 MB #Memory Used# [2025-09-26 15:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-09-26 12:25:04 [end_date_ymd] => 2025-09-26 15:25:04 [RateCDR] => 1 ) [2025-09-26 15:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-26 12:25:04' and `end` < '2025-09-26 15:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-26 15:25:19] Production.INFO: count ==5506 [2025-09-26 15:25:22] Production.ERROR: pbx CDR StartTime 2025-09-26 12:25:04 - End Time 2025-09-26 15:25:04 [2025-09-26 15:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-26 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15910221', 'tblTempUsageDetail_20' ) start [2025-09-26 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15910221', 'tblTempUsageDetail_20' ) end [2025-09-26 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15910221', 'tblTempVendorCDR_20' ) start [2025-09-26 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15910221', 'tblTempVendorCDR_20' ) end [2025-09-26 15:25:22] Production.INFO: ProcessCDR(1,15910221,1,1,2) [2025-09-26 15:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15910221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 15:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15910221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 15:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15910221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 15:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15910221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 15:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15910221', 'tblTempUsageDetail_20' ) start [2025-09-26 15:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15910221', 'tblTempUsageDetail_20' ) end [2025-09-26 15:25:32] Production.ERROR: pbx prc_insertCDR start [2025-09-26 15:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-26 15:25:34] Production.INFO: ==2036== Releasing lock... [2025-09-26 15:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-26 15:25:34] Production.INFO: 69.75 MB #Memory Used# [2025-09-26 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-26 13:25:05 [end_date_ymd] => 2025-09-26 16:25:05 [RateCDR] => 1 ) [2025-09-26 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-26 13:25:05' and `end` < '2025-09-26 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-26 16:25:19] Production.INFO: count ==6022 [2025-09-26 16:25:22] Production.ERROR: pbx CDR StartTime 2025-09-26 13:25:05 - End Time 2025-09-26 16:25:05 [2025-09-26 16:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-26 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15910468', 'tblTempUsageDetail_20' ) start [2025-09-26 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15910468', 'tblTempUsageDetail_20' ) end [2025-09-26 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15910468', 'tblTempVendorCDR_20' ) start [2025-09-26 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15910468', 'tblTempVendorCDR_20' ) end [2025-09-26 16:25:22] Production.INFO: ProcessCDR(1,15910468,1,1,2) [2025-09-26 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15910468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 16:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15910468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 16:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15910468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 16:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15910468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 16:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15910468', 'tblTempUsageDetail_20' ) start [2025-09-26 16:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15910468', 'tblTempUsageDetail_20' ) end [2025-09-26 16:25:33] Production.ERROR: pbx prc_insertCDR start [2025-09-26 16:25:35] Production.ERROR: pbx prc_insertCDR end [2025-09-26 16:25:35] Production.INFO: ==6741== Releasing lock... [2025-09-26 16:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-26 16:25:35] Production.INFO: 73.5 MB #Memory Used# [2025-09-26 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-26 14:25:05 [end_date_ymd] => 2025-09-26 17:25:05 [RateCDR] => 1 ) [2025-09-26 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-26 14:25:05' and `end` < '2025-09-26 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-26 17:25:20] Production.INFO: count ==6176 [2025-09-26 17:25:23] Production.ERROR: pbx CDR StartTime 2025-09-26 14:25:05 - End Time 2025-09-26 17:25:05 [2025-09-26 17:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-26 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15910715', 'tblTempUsageDetail_20' ) start [2025-09-26 17:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15910715', 'tblTempUsageDetail_20' ) end [2025-09-26 17:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15910715', 'tblTempVendorCDR_20' ) start [2025-09-26 17:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15910715', 'tblTempVendorCDR_20' ) end [2025-09-26 17:25:24] Production.INFO: ProcessCDR(1,15910715,1,1,2) [2025-09-26 17:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15910715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 17:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15910715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 17:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15910715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 17:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15910715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 17:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15910715', 'tblTempUsageDetail_20' ) start [2025-09-26 17:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15910715', 'tblTempUsageDetail_20' ) end [2025-09-26 17:25:34] Production.ERROR: pbx prc_insertCDR start [2025-09-26 17:25:36] Production.ERROR: pbx prc_insertCDR end [2025-09-26 17:25:36] Production.INFO: ==11351== Releasing lock... [2025-09-26 17:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-26 17:25:36] Production.INFO: 74.75 MB #Memory Used# [2025-09-26 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-26 15:25:05 [end_date_ymd] => 2025-09-26 18:25:05 [RateCDR] => 1 ) [2025-09-26 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-26 15:25:05' and `end` < '2025-09-26 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-26 18:25:18] Production.INFO: count ==5588 [2025-09-26 18:25:21] Production.ERROR: pbx CDR StartTime 2025-09-26 15:25:05 - End Time 2025-09-26 18:25:05 [2025-09-26 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-26 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15910962', 'tblTempUsageDetail_20' ) start [2025-09-26 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15910962', 'tblTempUsageDetail_20' ) end [2025-09-26 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15910962', 'tblTempVendorCDR_20' ) start [2025-09-26 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15910962', 'tblTempVendorCDR_20' ) end [2025-09-26 18:25:21] Production.INFO: ProcessCDR(1,15910962,1,1,2) [2025-09-26 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15910962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 18:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15910962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 18:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15910962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 18:27:09] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15910962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 18:27:09] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15910962', 'tblTempUsageDetail_20' ) start [2025-09-26 18:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15910962', 'tblTempUsageDetail_20' ) end [2025-09-26 18:27:23] Production.ERROR: pbx prc_insertCDR start [2025-09-26 18:27:26] Production.ERROR: pbx prc_insertCDR end [2025-09-26 18:27:32] Production.INFO: ==15739== Releasing lock... [2025-09-26 18:27:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-26 18:27:32] Production.INFO: 70.25 MB #Memory Used# [2025-09-26 19:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-09-26 16:25:04 [end_date_ymd] => 2025-09-26 19:25:04 [RateCDR] => 1 ) [2025-09-26 19:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-26 16:25:04' and `end` < '2025-09-26 19:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-26 19:25:18] Production.INFO: count ==4639 [2025-09-26 19:25:20] Production.ERROR: pbx CDR StartTime 2025-09-26 16:25:04 - End Time 2025-09-26 19:25:04 [2025-09-26 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-26 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15911206', 'tblTempUsageDetail_20' ) start [2025-09-26 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15911206', 'tblTempUsageDetail_20' ) end [2025-09-26 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15911206', 'tblTempVendorCDR_20' ) start [2025-09-26 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15911206', 'tblTempVendorCDR_20' ) end [2025-09-26 19:25:20] Production.INFO: ProcessCDR(1,15911206,1,1,2) [2025-09-26 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15911206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 19:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15911206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 19:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15911206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 19:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15911206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 19:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15911206', 'tblTempUsageDetail_20' ) start [2025-09-26 19:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15911206', 'tblTempUsageDetail_20' ) end [2025-09-26 19:25:29] Production.ERROR: pbx prc_insertCDR start [2025-09-26 19:25:30] Production.ERROR: pbx prc_insertCDR end [2025-09-26 19:25:30] Production.INFO: ==20039== Releasing lock... [2025-09-26 19:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-26 19:25:30] Production.INFO: 62.75 MB #Memory Used# [2025-09-26 20:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-09-26 17:25:04 [end_date_ymd] => 2025-09-26 20:25:04 [RateCDR] => 1 ) [2025-09-26 20:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-26 17:25:04' and `end` < '2025-09-26 20:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-26 20:25:17] Production.INFO: count ==3968 [2025-09-26 20:25:19] Production.ERROR: pbx CDR StartTime 2025-09-26 17:25:04 - End Time 2025-09-26 20:25:04 [2025-09-26 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-26 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15911453', 'tblTempUsageDetail_20' ) start [2025-09-26 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15911453', 'tblTempUsageDetail_20' ) end [2025-09-26 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15911453', 'tblTempVendorCDR_20' ) start [2025-09-26 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15911453', 'tblTempVendorCDR_20' ) end [2025-09-26 20:25:19] Production.INFO: ProcessCDR(1,15911453,1,1,2) [2025-09-26 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15911453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 20:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15911453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 20:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15911453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 20:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15911453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 20:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15911453', 'tblTempUsageDetail_20' ) start [2025-09-26 20:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15911453', 'tblTempUsageDetail_20' ) end [2025-09-26 20:25:30] Production.ERROR: pbx prc_insertCDR start [2025-09-26 20:25:31] Production.ERROR: pbx prc_insertCDR end [2025-09-26 20:25:31] Production.INFO: ==25087== Releasing lock... [2025-09-26 20:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-26 20:25:31] Production.INFO: 57.75 MB #Memory Used# [2025-09-26 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-26 18:25:05 [end_date_ymd] => 2025-09-26 21:25:05 [RateCDR] => 1 ) [2025-09-26 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-26 18:25:05' and `end` < '2025-09-26 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-26 21:25:17] Production.INFO: count ==3358 [2025-09-26 21:25:19] Production.ERROR: pbx CDR StartTime 2025-09-26 18:25:05 - End Time 2025-09-26 21:25:05 [2025-09-26 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-26 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15911700', 'tblTempUsageDetail_20' ) start [2025-09-26 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15911700', 'tblTempUsageDetail_20' ) end [2025-09-26 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15911700', 'tblTempVendorCDR_20' ) start [2025-09-26 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15911700', 'tblTempVendorCDR_20' ) end [2025-09-26 21:25:19] Production.INFO: ProcessCDR(1,15911700,1,1,2) [2025-09-26 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15911700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 21:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15911700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 21:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15911700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 21:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15911700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 21:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15911700', 'tblTempUsageDetail_20' ) start [2025-09-26 21:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15911700', 'tblTempUsageDetail_20' ) end [2025-09-26 21:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-26 21:25:29] Production.ERROR: pbx prc_insertCDR end [2025-09-26 21:25:29] Production.INFO: ==30737== Releasing lock... [2025-09-26 21:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-26 21:25:29] Production.INFO: 53.25 MB #Memory Used# [2025-09-26 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-26 19:25:05 [end_date_ymd] => 2025-09-26 22:25:05 [RateCDR] => 1 ) [2025-09-26 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-26 19:25:05' and `end` < '2025-09-26 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-26 22:25:17] Production.INFO: count ==2582 [2025-09-26 22:25:18] Production.ERROR: pbx CDR StartTime 2025-09-26 19:25:05 - End Time 2025-09-26 22:25:05 [2025-09-26 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-26 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15911947', 'tblTempUsageDetail_20' ) start [2025-09-26 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15911947', 'tblTempUsageDetail_20' ) end [2025-09-26 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15911947', 'tblTempVendorCDR_20' ) start [2025-09-26 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15911947', 'tblTempVendorCDR_20' ) end [2025-09-26 22:25:18] Production.INFO: ProcessCDR(1,15911947,1,1,2) [2025-09-26 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15911947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15911947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15911947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 22:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15911947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 22:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15911947', 'tblTempUsageDetail_20' ) start [2025-09-26 22:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15911947', 'tblTempUsageDetail_20' ) end [2025-09-26 22:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-26 22:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-26 22:25:27] Production.INFO: ==2855== Releasing lock... [2025-09-26 22:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-26 22:25:27] Production.INFO: 47.5 MB #Memory Used# [2025-09-26 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-26 20:25:05 [end_date_ymd] => 2025-09-26 23:25:05 [RateCDR] => 1 ) [2025-09-26 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-26 20:25:05' and `end` < '2025-09-26 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-26 23:25:18] Production.INFO: count ==1621 [2025-09-26 23:25:18] Production.ERROR: pbx CDR StartTime 2025-09-26 20:25:05 - End Time 2025-09-26 23:25:05 [2025-09-26 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-26 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15912194', 'tblTempUsageDetail_20' ) start [2025-09-26 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15912194', 'tblTempUsageDetail_20' ) end [2025-09-26 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15912194', 'tblTempVendorCDR_20' ) start [2025-09-26 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15912194', 'tblTempVendorCDR_20' ) end [2025-09-26 23:25:18] Production.INFO: ProcessCDR(1,15912194,1,1,2) [2025-09-26 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15912194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15912194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-26 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15912194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 23:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15912194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-26 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15912194', 'tblTempUsageDetail_20' ) start [2025-09-26 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15912194', 'tblTempUsageDetail_20' ) end [2025-09-26 23:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-26 23:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-26 23:25:27] Production.INFO: ==7450== Releasing lock... [2025-09-26 23:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-26 23:25:27] Production.INFO: 40.25 MB #Memory Used#