[2025-09-30 00:25:04] Production.INFO: next invoice date [2025-09-30 00:25:04] Production.INFO: 2025-10-30 [2025-09-30 00:25:04] Production.INFO: getdaysdiff [2025-09-30 00:25:04] Production.INFO: +30 [2025-09-30 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (205,11,1,30,30,'RMScheduler',2025-09-30 00:25:04,0,0,,,0) [2025-09-30 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-29 21:25:05 [end_date_ymd] => 2025-09-30 00:25:05 [RateCDR] => 1 ) [2025-09-30 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-29 21:25:05' and `end` < '2025-09-30 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-30 00:25:17] Production.INFO: count ==531 [2025-09-30 00:25:18] Production.ERROR: pbx CDR StartTime 2025-09-29 21:25:05 - End Time 2025-09-30 00:25:05 [2025-09-30 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-30 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15930222', 'tblTempUsageDetail_20' ) start [2025-09-30 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15930222', 'tblTempUsageDetail_20' ) end [2025-09-30 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15930222', 'tblTempVendorCDR_20' ) start [2025-09-30 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15930222', 'tblTempVendorCDR_20' ) end [2025-09-30 00:25:18] Production.INFO: ProcessCDR(1,15930222,1,1,2) [2025-09-30 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15930222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 00:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15930222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 00:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15930222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 00:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15930222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15930222', 'tblTempUsageDetail_20' ) start [2025-09-30 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15930222', 'tblTempUsageDetail_20' ) end [2025-09-30 00:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-30 00:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-30 00:25:28] Production.INFO: ==22255== Releasing lock... [2025-09-30 00:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-30 00:25:28] Production.INFO: 36.25 MB #Memory Used# [2025-09-30 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-29 22:25:05 [end_date_ymd] => 2025-09-30 01:25:05 [RateCDR] => 1 ) [2025-09-30 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-29 22:25:05' and `end` < '2025-09-30 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-30 01:25:17] Production.INFO: count ==466 [2025-09-30 01:25:18] Production.ERROR: pbx CDR StartTime 2025-09-29 22:25:05 - End Time 2025-09-30 01:25:05 [2025-09-30 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-30 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15930469', 'tblTempUsageDetail_20' ) start [2025-09-30 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15930469', 'tblTempUsageDetail_20' ) end [2025-09-30 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15930469', 'tblTempVendorCDR_20' ) start [2025-09-30 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15930469', 'tblTempVendorCDR_20' ) end [2025-09-30 01:25:18] Production.INFO: ProcessCDR(1,15930469,1,1,2) [2025-09-30 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15930469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15930469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15930469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 01:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15930469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15930469', 'tblTempUsageDetail_20' ) start [2025-09-30 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15930469', 'tblTempUsageDetail_20' ) end [2025-09-30 01:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-30 01:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-30 01:25:26] Production.INFO: ==26690== Releasing lock... [2025-09-30 01:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-30 01:25:26] Production.INFO: 32 MB #Memory Used# [2025-09-30 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-29 23:25:05 [end_date_ymd] => 2025-09-30 02:25:05 [RateCDR] => 1 ) [2025-09-30 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-29 23:25:05' and `end` < '2025-09-30 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-30 02:25:17] Production.INFO: count ==419 [2025-09-30 02:25:17] Production.ERROR: pbx CDR StartTime 2025-09-29 23:25:05 - End Time 2025-09-30 02:25:05 [2025-09-30 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-30 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15930716', 'tblTempUsageDetail_20' ) start [2025-09-30 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15930716', 'tblTempUsageDetail_20' ) end [2025-09-30 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15930716', 'tblTempVendorCDR_20' ) start [2025-09-30 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15930716', 'tblTempVendorCDR_20' ) end [2025-09-30 02:25:17] Production.INFO: ProcessCDR(1,15930716,1,1,2) [2025-09-30 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15930716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15930716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15930716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 02:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15930716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15930716', 'tblTempUsageDetail_20' ) start [2025-09-30 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15930716', 'tblTempUsageDetail_20' ) end [2025-09-30 02:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-30 02:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-30 02:25:26] Production.INFO: ==31243== Releasing lock... [2025-09-30 02:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-30 02:25:26] Production.INFO: 31.75 MB #Memory Used# [2025-09-30 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-30 00:25:05 [end_date_ymd] => 2025-09-30 03:25:05 [RateCDR] => 1 ) [2025-09-30 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-30 00:25:05' and `end` < '2025-09-30 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-30 03:25:17] Production.INFO: count ==377 [2025-09-30 03:25:17] Production.ERROR: pbx CDR StartTime 2025-09-30 00:25:05 - End Time 2025-09-30 03:25:05 [2025-09-30 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-30 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15930963', 'tblTempUsageDetail_20' ) start [2025-09-30 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15930963', 'tblTempUsageDetail_20' ) end [2025-09-30 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15930963', 'tblTempVendorCDR_20' ) start [2025-09-30 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15930963', 'tblTempVendorCDR_20' ) end [2025-09-30 03:25:17] Production.INFO: ProcessCDR(1,15930963,1,1,2) [2025-09-30 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15930963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15930963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15930963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 03:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15930963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 03:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15930963', 'tblTempUsageDetail_20' ) start [2025-09-30 03:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15930963', 'tblTempUsageDetail_20' ) end [2025-09-30 03:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-30 03:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-30 03:25:26] Production.INFO: ==3279== Releasing lock... [2025-09-30 03:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-30 03:25:26] Production.INFO: 31.25 MB #Memory Used# [2025-09-30 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-30 01:25:05 [end_date_ymd] => 2025-09-30 04:25:05 [RateCDR] => 1 ) [2025-09-30 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-30 01:25:05' and `end` < '2025-09-30 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-30 04:25:18] Production.INFO: count ==290 [2025-09-30 04:25:18] Production.ERROR: pbx CDR StartTime 2025-09-30 01:25:05 - End Time 2025-09-30 04:25:05 [2025-09-30 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-30 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15931211', 'tblTempUsageDetail_20' ) start [2025-09-30 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15931211', 'tblTempUsageDetail_20' ) end [2025-09-30 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15931211', 'tblTempVendorCDR_20' ) start [2025-09-30 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15931211', 'tblTempVendorCDR_20' ) end [2025-09-30 04:25:18] Production.INFO: ProcessCDR(1,15931211,1,1,2) [2025-09-30 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15931211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 04:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15931211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 04:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15931211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 04:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15931211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15931211', 'tblTempUsageDetail_20' ) start [2025-09-30 04:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15931211', 'tblTempUsageDetail_20' ) end [2025-09-30 04:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-30 04:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-30 04:25:26] Production.INFO: ==7750== Releasing lock... [2025-09-30 04:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-30 04:25:26] Production.INFO: 30.75 MB #Memory Used# [2025-09-30 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-30 02:25:05 [end_date_ymd] => 2025-09-30 05:25:05 [RateCDR] => 1 ) [2025-09-30 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-30 02:25:05' and `end` < '2025-09-30 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-30 05:25:17] Production.INFO: count ==231 [2025-09-30 05:25:17] Production.ERROR: pbx CDR StartTime 2025-09-30 02:25:05 - End Time 2025-09-30 05:25:05 [2025-09-30 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-30 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15931459', 'tblTempUsageDetail_20' ) start [2025-09-30 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15931459', 'tblTempUsageDetail_20' ) end [2025-09-30 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15931459', 'tblTempVendorCDR_20' ) start [2025-09-30 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15931459', 'tblTempVendorCDR_20' ) end [2025-09-30 05:25:17] Production.INFO: ProcessCDR(1,15931459,1,1,2) [2025-09-30 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15931459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15931459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15931459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 05:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15931459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15931459', 'tblTempUsageDetail_20' ) start [2025-09-30 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15931459', 'tblTempUsageDetail_20' ) end [2025-09-30 05:25:23] Production.ERROR: pbx prc_insertCDR start [2025-09-30 05:25:23] Production.ERROR: pbx prc_insertCDR end [2025-09-30 05:25:23] Production.INFO: ==12126== Releasing lock... [2025-09-30 05:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-30 05:25:23] Production.INFO: 30 MB #Memory Used# [2025-09-30 06:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-30 03:25:06 [end_date_ymd] => 2025-09-30 06:25:06 [RateCDR] => 1 ) [2025-09-30 06:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-30 03:25:06' and `end` < '2025-09-30 06:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-30 06:25:18] Production.INFO: count ==145 [2025-09-30 06:25:18] Production.ERROR: pbx CDR StartTime 2025-09-30 03:25:06 - End Time 2025-09-30 06:25:06 [2025-09-30 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-30 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15931706', 'tblTempUsageDetail_20' ) start [2025-09-30 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15931706', 'tblTempUsageDetail_20' ) end [2025-09-30 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15931706', 'tblTempVendorCDR_20' ) start [2025-09-30 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15931706', 'tblTempVendorCDR_20' ) end [2025-09-30 06:25:18] Production.INFO: ProcessCDR(1,15931706,1,1,2) [2025-09-30 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15931706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 06:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15931706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 06:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15931706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 06:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15931706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 06:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15931706', 'tblTempUsageDetail_20' ) start [2025-09-30 06:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15931706', 'tblTempUsageDetail_20' ) end [2025-09-30 06:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-30 06:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-30 06:25:26] Production.INFO: ==16504== Releasing lock... [2025-09-30 06:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-30 06:25:26] Production.INFO: 29.5 MB #Memory Used# [2025-09-30 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-30 04:25:06 [end_date_ymd] => 2025-09-30 07:25:06 [RateCDR] => 1 ) [2025-09-30 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-30 04:25:06' and `end` < '2025-09-30 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-30 07:25:18] Production.INFO: count ==106 [2025-09-30 07:25:18] Production.ERROR: pbx CDR StartTime 2025-09-30 04:25:06 - End Time 2025-09-30 07:25:06 [2025-09-30 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-30 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15931953', 'tblTempUsageDetail_20' ) start [2025-09-30 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15931953', 'tblTempUsageDetail_20' ) end [2025-09-30 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15931953', 'tblTempVendorCDR_20' ) start [2025-09-30 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15931953', 'tblTempVendorCDR_20' ) end [2025-09-30 07:25:18] Production.INFO: ProcessCDR(1,15931953,1,1,2) [2025-09-30 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15931953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 07:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15931953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 07:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15931953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 07:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15931953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15931953', 'tblTempUsageDetail_20' ) start [2025-09-30 07:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15931953', 'tblTempUsageDetail_20' ) end [2025-09-30 07:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-30 07:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-30 07:25:26] Production.INFO: ==20802== Releasing lock... [2025-09-30 07:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-30 07:25:26] Production.INFO: 28.75 MB #Memory Used# [2025-09-30 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-30 05:25:05 [end_date_ymd] => 2025-09-30 08:25:05 [RateCDR] => 1 ) [2025-09-30 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-30 05:25:05' and `end` < '2025-09-30 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-30 08:25:17] Production.INFO: count ==314 [2025-09-30 08:25:17] Production.ERROR: pbx CDR StartTime 2025-09-30 05:25:05 - End Time 2025-09-30 08:25:05 [2025-09-30 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-30 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15932200', 'tblTempUsageDetail_20' ) start [2025-09-30 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15932200', 'tblTempUsageDetail_20' ) end [2025-09-30 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15932200', 'tblTempVendorCDR_20' ) start [2025-09-30 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15932200', 'tblTempVendorCDR_20' ) end [2025-09-30 08:25:17] Production.INFO: ProcessCDR(1,15932200,1,1,2) [2025-09-30 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15932200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15932200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15932200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 08:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15932200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15932200', 'tblTempUsageDetail_20' ) start [2025-09-30 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15932200', 'tblTempUsageDetail_20' ) end [2025-09-30 08:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-30 08:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-30 08:25:26] Production.INFO: ==25029== Releasing lock... [2025-09-30 08:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-30 08:25:26] Production.INFO: 31.25 MB #Memory Used# [2025-09-30 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-30 06:25:05 [end_date_ymd] => 2025-09-30 09:25:05 [RateCDR] => 1 ) [2025-09-30 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-30 06:25:05' and `end` < '2025-09-30 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-30 09:25:18] Production.INFO: count ==1246 [2025-09-30 09:25:19] Production.ERROR: pbx CDR StartTime 2025-09-30 06:25:05 - End Time 2025-09-30 09:25:05 [2025-09-30 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-30 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15932447', 'tblTempUsageDetail_20' ) start [2025-09-30 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15932447', 'tblTempUsageDetail_20' ) end [2025-09-30 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15932447', 'tblTempVendorCDR_20' ) start [2025-09-30 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15932447', 'tblTempVendorCDR_20' ) end [2025-09-30 09:25:19] Production.INFO: ProcessCDR(1,15932447,1,1,2) [2025-09-30 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15932447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 09:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15932447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 09:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15932447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 09:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15932447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 09:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15932447', 'tblTempUsageDetail_20' ) start [2025-09-30 09:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15932447', 'tblTempUsageDetail_20' ) end [2025-09-30 09:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-30 09:25:29] Production.ERROR: pbx prc_insertCDR end [2025-09-30 09:25:29] Production.INFO: ==29372== Releasing lock... [2025-09-30 09:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-30 09:25:29] Production.INFO: 37.5 MB #Memory Used# [2025-09-30 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-30 07:25:05 [end_date_ymd] => 2025-09-30 10:25:05 [RateCDR] => 1 ) [2025-09-30 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-30 07:25:05' and `end` < '2025-09-30 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-30 10:25:23] Production.INFO: count ==2914 [2025-09-30 10:25:24] Production.ERROR: pbx CDR StartTime 2025-09-30 07:25:05 - End Time 2025-09-30 10:25:05 [2025-09-30 10:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-30 10:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15932694', 'tblTempUsageDetail_20' ) start [2025-09-30 10:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15932694', 'tblTempUsageDetail_20' ) end [2025-09-30 10:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15932694', 'tblTempVendorCDR_20' ) start [2025-09-30 10:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15932694', 'tblTempVendorCDR_20' ) end [2025-09-30 10:25:24] Production.INFO: ProcessCDR(1,15932694,1,1,2) [2025-09-30 10:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15932694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 10:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15932694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 10:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15932694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 10:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15932694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 10:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15932694', 'tblTempUsageDetail_20' ) start [2025-09-30 10:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15932694', 'tblTempUsageDetail_20' ) end [2025-09-30 10:25:34] Production.ERROR: pbx prc_insertCDR start [2025-09-30 10:25:36] Production.ERROR: pbx prc_insertCDR end [2025-09-30 10:25:36] Production.INFO: ==1844== Releasing lock... [2025-09-30 10:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-30 10:25:36] Production.INFO: 50.75 MB #Memory Used# [2025-09-30 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-30 08:25:05 [end_date_ymd] => 2025-09-30 11:25:05 [RateCDR] => 1 ) [2025-09-30 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-30 08:25:05' and `end` < '2025-09-30 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-30 11:25:19] Production.INFO: count ==4439 [2025-09-30 11:25:21] Production.ERROR: pbx CDR StartTime 2025-09-30 08:25:05 - End Time 2025-09-30 11:25:05 [2025-09-30 11:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-30 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15932941', 'tblTempUsageDetail_20' ) start [2025-09-30 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15932941', 'tblTempUsageDetail_20' ) end [2025-09-30 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15932941', 'tblTempVendorCDR_20' ) start [2025-09-30 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15932941', 'tblTempVendorCDR_20' ) end [2025-09-30 11:25:21] Production.INFO: ProcessCDR(1,15932941,1,1,2) [2025-09-30 11:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15932941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 11:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15932941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 11:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15932941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 11:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15932941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15932941', 'tblTempUsageDetail_20' ) start [2025-09-30 11:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15932941', 'tblTempUsageDetail_20' ) end [2025-09-30 11:25:32] Production.ERROR: pbx prc_insertCDR start [2025-09-30 11:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-30 11:25:34] Production.INFO: ==6727== Releasing lock... [2025-09-30 11:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-30 11:25:34] Production.INFO: 61.5 MB #Memory Used# [2025-09-30 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-30 09:25:05 [end_date_ymd] => 2025-09-30 12:25:05 [RateCDR] => 1 ) [2025-09-30 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-30 09:25:05' and `end` < '2025-09-30 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-30 12:25:21] Production.INFO: count ==5389 [2025-09-30 12:25:24] Production.ERROR: pbx CDR StartTime 2025-09-30 09:25:05 - End Time 2025-09-30 12:25:05 [2025-09-30 12:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-30 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15933188', 'tblTempUsageDetail_20' ) start [2025-09-30 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15933188', 'tblTempUsageDetail_20' ) end [2025-09-30 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15933188', 'tblTempVendorCDR_20' ) start [2025-09-30 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15933188', 'tblTempVendorCDR_20' ) end [2025-09-30 12:25:24] Production.INFO: ProcessCDR(1,15933188,1,1,2) [2025-09-30 12:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15933188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 12:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15933188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 12:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15933188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 12:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15933188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 12:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15933188', 'tblTempUsageDetail_20' ) start [2025-09-30 12:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15933188', 'tblTempUsageDetail_20' ) end [2025-09-30 12:25:34] Production.ERROR: pbx prc_insertCDR start [2025-09-30 12:25:37] Production.ERROR: pbx prc_insertCDR end [2025-09-30 12:25:37] Production.INFO: ==11109== Releasing lock... [2025-09-30 12:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-30 12:25:37] Production.INFO: 68.5 MB #Memory Used# [2025-09-30 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-30 10:25:05 [end_date_ymd] => 2025-09-30 13:25:05 [RateCDR] => 1 ) [2025-09-30 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-30 10:25:05' and `end` < '2025-09-30 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-30 13:25:19] Production.INFO: count ==5505 [2025-09-30 13:25:22] Production.ERROR: pbx CDR StartTime 2025-09-30 10:25:05 - End Time 2025-09-30 13:25:05 [2025-09-30 13:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-30 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15933435', 'tblTempUsageDetail_20' ) start [2025-09-30 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15933435', 'tblTempUsageDetail_20' ) end [2025-09-30 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15933435', 'tblTempVendorCDR_20' ) start [2025-09-30 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15933435', 'tblTempVendorCDR_20' ) end [2025-09-30 13:25:22] Production.INFO: ProcessCDR(1,15933435,1,1,2) [2025-09-30 13:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15933435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 13:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15933435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 13:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15933435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 13:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15933435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 13:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15933435', 'tblTempUsageDetail_20' ) start [2025-09-30 13:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15933435', 'tblTempUsageDetail_20' ) end [2025-09-30 13:25:33] Production.ERROR: pbx prc_insertCDR start [2025-09-30 13:25:35] Production.ERROR: pbx prc_insertCDR end [2025-09-30 13:25:35] Production.INFO: ==15959== Releasing lock... [2025-09-30 13:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-30 13:25:35] Production.INFO: 69.5 MB #Memory Used# [2025-09-30 14:25:07] Production.ERROR: Array ( [start_date_ymd] => 2025-09-30 11:25:07 [end_date_ymd] => 2025-09-30 14:25:07 [RateCDR] => 1 ) [2025-09-30 14:25:07] 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-30 11:25:07' and `end` < '2025-09-30 14:25:07' 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-30 14:25:23] Production.INFO: count ==5561 [2025-09-30 14:25:26] Production.ERROR: pbx CDR StartTime 2025-09-30 11:25:07 - End Time 2025-09-30 14:25:07 [2025-09-30 14:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-30 14:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15933682', 'tblTempUsageDetail_20' ) start [2025-09-30 14:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15933682', 'tblTempUsageDetail_20' ) end [2025-09-30 14:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15933682', 'tblTempVendorCDR_20' ) start [2025-09-30 14:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15933682', 'tblTempVendorCDR_20' ) end [2025-09-30 14:25:26] Production.INFO: ProcessCDR(1,15933682,1,1,2) [2025-09-30 14:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15933682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 14:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15933682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 14:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15933682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 14:25:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15933682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 14:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15933682', 'tblTempUsageDetail_20' ) start [2025-09-30 14:25:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15933682', 'tblTempUsageDetail_20' ) end [2025-09-30 14:25:37] Production.ERROR: pbx prc_insertCDR start [2025-09-30 14:25:40] Production.ERROR: pbx prc_insertCDR end [2025-09-30 14:25:40] Production.INFO: ==21361== Releasing lock... [2025-09-30 14:25:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-30 14:25:40] Production.INFO: 70 MB #Memory Used# [2025-09-30 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-30 12:25:05 [end_date_ymd] => 2025-09-30 15:25:05 [RateCDR] => 1 ) [2025-09-30 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-30 12:25:05' and `end` < '2025-09-30 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-30 15:25:19] Production.INFO: count ==5573 [2025-09-30 15:25:22] Production.ERROR: pbx CDR StartTime 2025-09-30 12:25:05 - End Time 2025-09-30 15:25:05 [2025-09-30 15:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-30 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15933929', 'tblTempUsageDetail_20' ) start [2025-09-30 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15933929', 'tblTempUsageDetail_20' ) end [2025-09-30 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15933929', 'tblTempVendorCDR_20' ) start [2025-09-30 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15933929', 'tblTempVendorCDR_20' ) end [2025-09-30 15:25:22] Production.INFO: ProcessCDR(1,15933929,1,1,2) [2025-09-30 15:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15933929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 15:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15933929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 15:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15933929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 15:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15933929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 15:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15933929', 'tblTempUsageDetail_20' ) start [2025-09-30 15:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15933929', 'tblTempUsageDetail_20' ) end [2025-09-30 15:25:32] Production.ERROR: pbx prc_insertCDR start [2025-09-30 15:25:35] Production.ERROR: pbx prc_insertCDR end [2025-09-30 15:25:35] Production.INFO: ==25838== Releasing lock... [2025-09-30 15:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-30 15:25:35] Production.INFO: 70 MB #Memory Used# [2025-09-30 16:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-09-30 13:25:04 [end_date_ymd] => 2025-09-30 16:25:04 [RateCDR] => 1 ) [2025-09-30 16: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-30 13:25:04' and `end` < '2025-09-30 16: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-30 16:25:21] Production.INFO: count ==5702 [2025-09-30 16:25:24] Production.ERROR: pbx CDR StartTime 2025-09-30 13:25:04 - End Time 2025-09-30 16:25:04 [2025-09-30 16:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-30 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15934176', 'tblTempUsageDetail_20' ) start [2025-09-30 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15934176', 'tblTempUsageDetail_20' ) end [2025-09-30 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15934176', 'tblTempVendorCDR_20' ) start [2025-09-30 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15934176', 'tblTempVendorCDR_20' ) end [2025-09-30 16:25:24] Production.INFO: ProcessCDR(1,15934176,1,1,2) [2025-09-30 16:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15934176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 16:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15934176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 16:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15934176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 16:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15934176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 16:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15934176', 'tblTempUsageDetail_20' ) start [2025-09-30 16:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15934176', 'tblTempUsageDetail_20' ) end [2025-09-30 16:25:34] Production.ERROR: pbx prc_insertCDR start [2025-09-30 16:25:37] Production.ERROR: pbx prc_insertCDR end [2025-09-30 16:25:37] Production.INFO: ==30227== Releasing lock... [2025-09-30 16:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-30 16:25:37] Production.INFO: 71 MB #Memory Used# [2025-09-30 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-30 14:25:05 [end_date_ymd] => 2025-09-30 17:25:05 [RateCDR] => 1 ) [2025-09-30 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-30 14:25:05' and `end` < '2025-09-30 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-30 17:25:19] Production.INFO: count ==5205 [2025-09-30 17:25:22] Production.ERROR: pbx CDR StartTime 2025-09-30 14:25:05 - End Time 2025-09-30 17:25:05 [2025-09-30 17:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-30 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15934423', 'tblTempUsageDetail_20' ) start [2025-09-30 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15934423', 'tblTempUsageDetail_20' ) end [2025-09-30 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15934423', 'tblTempVendorCDR_20' ) start [2025-09-30 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15934423', 'tblTempVendorCDR_20' ) end [2025-09-30 17:25:22] Production.INFO: ProcessCDR(1,15934423,1,1,2) [2025-09-30 17:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15934423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 17:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15934423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 17:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15934423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 17:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15934423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 17:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15934423', 'tblTempUsageDetail_20' ) start [2025-09-30 17:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15934423', 'tblTempUsageDetail_20' ) end [2025-09-30 17:25:31] Production.ERROR: pbx prc_insertCDR start [2025-09-30 17:25:33] Production.ERROR: pbx prc_insertCDR end [2025-09-30 17:25:33] Production.INFO: ==2988== Releasing lock... [2025-09-30 17:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-30 17:25:33] Production.INFO: 67.25 MB #Memory Used# [2025-09-30 18:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-30 15:25:06 [end_date_ymd] => 2025-09-30 18:25:06 [RateCDR] => 1 ) [2025-09-30 18: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-30 15:25:06' and `end` < '2025-09-30 18: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-30 18:25:19] Production.INFO: count ==4283 [2025-09-30 18:25:21] Production.ERROR: pbx CDR StartTime 2025-09-30 15:25:06 - End Time 2025-09-30 18:25:06 [2025-09-30 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-30 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15934670', 'tblTempUsageDetail_20' ) start [2025-09-30 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15934670', 'tblTempUsageDetail_20' ) end [2025-09-30 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15934670', 'tblTempVendorCDR_20' ) start [2025-09-30 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15934670', 'tblTempVendorCDR_20' ) end [2025-09-30 18:25:21] Production.INFO: ProcessCDR(1,15934670,1,1,2) [2025-09-30 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15934670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 18:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15934670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 18:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15934670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 18:27:09] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15934670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 18:27:09] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15934670', 'tblTempUsageDetail_20' ) start [2025-09-30 18:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15934670', 'tblTempUsageDetail_20' ) end [2025-09-30 18:27:28] Production.ERROR: pbx prc_insertCDR start [2025-09-30 18:27:30] Production.ERROR: pbx prc_insertCDR end [2025-09-30 18:27:34] Production.INFO: ==7721== Releasing lock... [2025-09-30 18:27:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-30 18:27:34] Production.INFO: 60.25 MB #Memory Used# [2025-09-30 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-30 16:25:05 [end_date_ymd] => 2025-09-30 19:25:05 [RateCDR] => 1 ) [2025-09-30 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-30 16:25:05' and `end` < '2025-09-30 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-30 19:25:18] Production.INFO: count ==3142 [2025-09-30 19:25:19] Production.ERROR: pbx CDR StartTime 2025-09-30 16:25:05 - End Time 2025-09-30 19:25:05 [2025-09-30 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-30 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15934914', 'tblTempUsageDetail_20' ) start [2025-09-30 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15934914', 'tblTempUsageDetail_20' ) end [2025-09-30 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15934914', 'tblTempVendorCDR_20' ) start [2025-09-30 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15934914', 'tblTempVendorCDR_20' ) end [2025-09-30 19:25:19] Production.INFO: ProcessCDR(1,15934914,1,1,2) [2025-09-30 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15934914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 19:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15934914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 19:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15934914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 19:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15934914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15934914', 'tblTempUsageDetail_20' ) start [2025-09-30 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15934914', 'tblTempUsageDetail_20' ) end [2025-09-30 19:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-30 19:25:29] Production.ERROR: pbx prc_insertCDR end [2025-09-30 19:25:29] Production.INFO: ==12051== Releasing lock... [2025-09-30 19:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-30 19:25:29] Production.INFO: 51.5 MB #Memory Used# [2025-09-30 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-30 17:25:06 [end_date_ymd] => 2025-09-30 20:25:06 [RateCDR] => 1 ) [2025-09-30 20:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-30 17:25:06' and `end` < '2025-09-30 20:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-30 20:25:18] Production.INFO: count ==2270 [2025-09-30 20:25:19] Production.ERROR: pbx CDR StartTime 2025-09-30 17:25:06 - End Time 2025-09-30 20:25:06 [2025-09-30 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-30 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15935161', 'tblTempUsageDetail_20' ) start [2025-09-30 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15935161', 'tblTempUsageDetail_20' ) end [2025-09-30 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15935161', 'tblTempVendorCDR_20' ) start [2025-09-30 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15935161', 'tblTempVendorCDR_20' ) end [2025-09-30 20:25:19] Production.INFO: ProcessCDR(1,15935161,1,1,2) [2025-09-30 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15935161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 20:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15935161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 20:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15935161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 20:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15935161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 20:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15935161', 'tblTempUsageDetail_20' ) start [2025-09-30 20:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15935161', 'tblTempUsageDetail_20' ) end [2025-09-30 20:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-30 20:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-30 20:25:28] Production.INFO: ==16453== Releasing lock... [2025-09-30 20:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-30 20:25:28] Production.INFO: 45.5 MB #Memory Used# [2025-09-30 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-30 18:25:05 [end_date_ymd] => 2025-09-30 21:25:05 [RateCDR] => 1 ) [2025-09-30 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-30 18:25:05' and `end` < '2025-09-30 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-30 21:25:17] Production.INFO: count ==1563 [2025-09-30 21:25:18] Production.ERROR: pbx CDR StartTime 2025-09-30 18:25:05 - End Time 2025-09-30 21:25:05 [2025-09-30 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-30 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15935408', 'tblTempUsageDetail_20' ) start [2025-09-30 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15935408', 'tblTempUsageDetail_20' ) end [2025-09-30 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15935408', 'tblTempVendorCDR_20' ) start [2025-09-30 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15935408', 'tblTempVendorCDR_20' ) end [2025-09-30 21:25:18] Production.INFO: ProcessCDR(1,15935408,1,1,2) [2025-09-30 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15935408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15935408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15935408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 21:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15935408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15935408', 'tblTempUsageDetail_20' ) start [2025-09-30 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15935408', 'tblTempUsageDetail_20' ) end [2025-09-30 21:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-30 21:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-30 21:25:27] Production.INFO: ==20748== Releasing lock... [2025-09-30 21:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-30 21:25:27] Production.INFO: 39.75 MB #Memory Used# [2025-09-30 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-30 19:25:05 [end_date_ymd] => 2025-09-30 22:25:05 [RateCDR] => 1 ) [2025-09-30 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-30 19:25:05' and `end` < '2025-09-30 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-30 22:25:18] Production.INFO: count ==1215 [2025-09-30 22:25:18] Production.ERROR: pbx CDR StartTime 2025-09-30 19:25:05 - End Time 2025-09-30 22:25:05 [2025-09-30 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-30 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15935655', 'tblTempUsageDetail_20' ) start [2025-09-30 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15935655', 'tblTempUsageDetail_20' ) end [2025-09-30 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15935655', 'tblTempVendorCDR_20' ) start [2025-09-30 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15935655', 'tblTempVendorCDR_20' ) end [2025-09-30 22:25:18] Production.INFO: ProcessCDR(1,15935655,1,1,2) [2025-09-30 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15935655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15935655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15935655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 22:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15935655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 22:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15935655', 'tblTempUsageDetail_20' ) start [2025-09-30 22:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15935655', 'tblTempUsageDetail_20' ) end [2025-09-30 22:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-30 22:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-30 22:25:27] Production.INFO: ==25401== Releasing lock... [2025-09-30 22:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-30 22:25:27] Production.INFO: 37.5 MB #Memory Used# [2025-09-30 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-30 20:25:05 [end_date_ymd] => 2025-09-30 23:25:05 [RateCDR] => 1 ) [2025-09-30 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-30 20:25:05' and `end` < '2025-09-30 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-30 23:25:18] Production.INFO: count ==1034 [2025-09-30 23:25:18] Production.ERROR: pbx CDR StartTime 2025-09-30 20:25:05 - End Time 2025-09-30 23:25:05 [2025-09-30 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-30 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15935902', 'tblTempUsageDetail_20' ) start [2025-09-30 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15935902', 'tblTempUsageDetail_20' ) end [2025-09-30 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15935902', 'tblTempVendorCDR_20' ) start [2025-09-30 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15935902', 'tblTempVendorCDR_20' ) end [2025-09-30 23:25:18] Production.INFO: ProcessCDR(1,15935902,1,1,2) [2025-09-30 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15935902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15935902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-30 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15935902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 23:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15935902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-30 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15935902', 'tblTempUsageDetail_20' ) start [2025-09-30 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15935902', 'tblTempUsageDetail_20' ) end [2025-09-30 23:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-30 23:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-30 23:25:27] Production.INFO: ==29979== Releasing lock... [2025-09-30 23:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-30 23:25:27] Production.INFO: 36.5 MB #Memory Used#