[2025-10-13 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-12 21:25:05 [end_date_ymd] => 2025-10-13 00:25:05 [RateCDR] => 1 ) [2025-10-13 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-12 21:25:05' and `end` < '2025-10-13 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-13 00:25:27] Production.INFO: count ==549 [2025-10-13 00:25:27] Production.ERROR: pbx CDR StartTime 2025-10-12 21:25:05 - End Time 2025-10-13 00:25:05 [2025-10-13 00:25:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-13 00:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16007278', 'tblTempUsageDetail_20' ) start [2025-10-13 00:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16007278', 'tblTempUsageDetail_20' ) end [2025-10-13 00:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16007278', 'tblTempVendorCDR_20' ) start [2025-10-13 00:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16007278', 'tblTempVendorCDR_20' ) end [2025-10-13 00:25:27] Production.INFO: ProcessCDR(1,16007278,1,1,2) [2025-10-13 00:25:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16007278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 00:25:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16007278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 00:25:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16007278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 00:25:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16007278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 00:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16007278', 'tblTempUsageDetail_20' ) start [2025-10-13 00:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16007278', 'tblTempUsageDetail_20' ) end [2025-10-13 00:25:36] Production.ERROR: pbx prc_insertCDR start [2025-10-13 00:25:36] Production.ERROR: pbx prc_insertCDR end [2025-10-13 00:25:38] Production.INFO: ==14805== Releasing lock... [2025-10-13 00:25:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-13 00:25:38] Production.INFO: 35 MB #Memory Used# [2025-10-13 01:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-12 22:25:06 [end_date_ymd] => 2025-10-13 01:25:06 [RateCDR] => 1 ) [2025-10-13 01:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-12 22:25:06' and `end` < '2025-10-13 01:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-13 01:25:18] Production.INFO: count ==829 [2025-10-13 01:25:18] Production.ERROR: pbx CDR StartTime 2025-10-12 22:25:06 - End Time 2025-10-13 01:25:06 [2025-10-13 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-13 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16007525', 'tblTempUsageDetail_20' ) start [2025-10-13 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16007525', 'tblTempUsageDetail_20' ) end [2025-10-13 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16007525', 'tblTempVendorCDR_20' ) start [2025-10-13 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16007525', 'tblTempVendorCDR_20' ) end [2025-10-13 01:25:18] Production.INFO: ProcessCDR(1,16007525,1,1,2) [2025-10-13 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16007525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 01:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16007525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 01:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16007525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 01:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16007525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 01:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16007525', 'tblTempUsageDetail_20' ) start [2025-10-13 01:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16007525', 'tblTempUsageDetail_20' ) end [2025-10-13 01:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-13 01:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-13 01:25:27] Production.INFO: ==19195== Releasing lock... [2025-10-13 01:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-13 01:25:27] Production.INFO: 34.5 MB #Memory Used# [2025-10-13 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-12 23:25:05 [end_date_ymd] => 2025-10-13 02:25:05 [RateCDR] => 1 ) [2025-10-13 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-12 23:25:05' and `end` < '2025-10-13 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-13 02:25:17] Production.INFO: count ==1121 [2025-10-13 02:25:18] Production.ERROR: pbx CDR StartTime 2025-10-12 23:25:05 - End Time 2025-10-13 02:25:05 [2025-10-13 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-13 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16007772', 'tblTempUsageDetail_20' ) start [2025-10-13 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16007772', 'tblTempUsageDetail_20' ) end [2025-10-13 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16007772', 'tblTempVendorCDR_20' ) start [2025-10-13 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16007772', 'tblTempVendorCDR_20' ) end [2025-10-13 02:25:18] Production.INFO: ProcessCDR(1,16007772,1,1,2) [2025-10-13 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16007772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 02:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16007772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 02:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16007772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 02:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16007772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16007772', 'tblTempUsageDetail_20' ) start [2025-10-13 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16007772', 'tblTempUsageDetail_20' ) end [2025-10-13 02:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-13 02:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-13 02:25:27] Production.INFO: ==23661== Releasing lock... [2025-10-13 02:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-13 02:25:27] Production.INFO: 36.75 MB #Memory Used# [2025-10-13 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-13 00:25:05 [end_date_ymd] => 2025-10-13 03:25:05 [RateCDR] => 1 ) [2025-10-13 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-13 00:25:05' and `end` < '2025-10-13 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-13 03:25:18] Production.INFO: count ==1019 [2025-10-13 03:25:18] Production.ERROR: pbx CDR StartTime 2025-10-13 00:25:05 - End Time 2025-10-13 03:25:05 [2025-10-13 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-13 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16008019', 'tblTempUsageDetail_20' ) start [2025-10-13 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16008019', 'tblTempUsageDetail_20' ) end [2025-10-13 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16008019', 'tblTempVendorCDR_20' ) start [2025-10-13 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16008019', 'tblTempVendorCDR_20' ) end [2025-10-13 03:25:18] Production.INFO: ProcessCDR(1,16008019,1,1,2) [2025-10-13 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16008019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 03:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16008019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 03:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16008019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 03:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16008019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 03:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16008019', 'tblTempUsageDetail_20' ) start [2025-10-13 03:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16008019', 'tblTempUsageDetail_20' ) end [2025-10-13 03:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-13 03:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-13 03:25:27] Production.INFO: ==28138== Releasing lock... [2025-10-13 03:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-13 03:25:27] Production.INFO: 36 MB #Memory Used# [2025-10-13 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-13 01:25:05 [end_date_ymd] => 2025-10-13 04:25:05 [RateCDR] => 1 ) [2025-10-13 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-13 01:25:05' and `end` < '2025-10-13 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-13 04:25:17] Production.INFO: count ==608 [2025-10-13 04:25:17] Production.ERROR: pbx CDR StartTime 2025-10-13 01:25:05 - End Time 2025-10-13 04:25:05 [2025-10-13 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-13 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16008267', 'tblTempUsageDetail_20' ) start [2025-10-13 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16008267', 'tblTempUsageDetail_20' ) end [2025-10-13 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16008267', 'tblTempVendorCDR_20' ) start [2025-10-13 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16008267', 'tblTempVendorCDR_20' ) end [2025-10-13 04:25:17] Production.INFO: ProcessCDR(1,16008267,1,1,2) [2025-10-13 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16008267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16008267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16008267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 04:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16008267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16008267', 'tblTempUsageDetail_20' ) start [2025-10-13 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16008267', 'tblTempUsageDetail_20' ) end [2025-10-13 04:25:25] Production.ERROR: pbx prc_insertCDR start [2025-10-13 04:25:25] Production.ERROR: pbx prc_insertCDR end [2025-10-13 04:25:25] Production.INFO: ==32714== Releasing lock... [2025-10-13 04:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-13 04:25:25] Production.INFO: 33.5 MB #Memory Used# [2025-10-13 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-13 02:25:05 [end_date_ymd] => 2025-10-13 05:25:05 [RateCDR] => 1 ) [2025-10-13 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-13 02:25:05' and `end` < '2025-10-13 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-13 05:25:17] Production.INFO: count ==155 [2025-10-13 05:25:17] Production.ERROR: pbx CDR StartTime 2025-10-13 02:25:05 - End Time 2025-10-13 05:25:05 [2025-10-13 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-13 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16008515', 'tblTempUsageDetail_20' ) start [2025-10-13 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16008515', 'tblTempUsageDetail_20' ) end [2025-10-13 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16008515', 'tblTempVendorCDR_20' ) start [2025-10-13 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16008515', 'tblTempVendorCDR_20' ) end [2025-10-13 05:25:17] Production.INFO: ProcessCDR(1,16008515,1,1,2) [2025-10-13 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16008515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16008515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16008515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 05:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16008515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16008515', 'tblTempUsageDetail_20' ) start [2025-10-13 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16008515', 'tblTempUsageDetail_20' ) end [2025-10-13 05:25:25] Production.ERROR: pbx prc_insertCDR start [2025-10-13 05:25:25] Production.ERROR: pbx prc_insertCDR end [2025-10-13 05:25:25] Production.INFO: ==4904== Releasing lock... [2025-10-13 05:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-13 05:25:25] Production.INFO: 29.5 MB #Memory Used# [2025-10-13 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-13 03:25:05 [end_date_ymd] => 2025-10-13 06:25:05 [RateCDR] => 1 ) [2025-10-13 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-10-13 03:25:05' and `end` < '2025-10-13 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-10-13 06:25:17] Production.INFO: count ==126 [2025-10-13 06:25:17] Production.ERROR: pbx CDR StartTime 2025-10-13 03:25:05 - End Time 2025-10-13 06:25:05 [2025-10-13 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-13 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16008762', 'tblTempUsageDetail_20' ) start [2025-10-13 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16008762', 'tblTempUsageDetail_20' ) end [2025-10-13 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16008762', 'tblTempVendorCDR_20' ) start [2025-10-13 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16008762', 'tblTempVendorCDR_20' ) end [2025-10-13 06:25:17] Production.INFO: ProcessCDR(1,16008762,1,1,2) [2025-10-13 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16008762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16008762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16008762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 06:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16008762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16008762', 'tblTempUsageDetail_20' ) start [2025-10-13 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16008762', 'tblTempUsageDetail_20' ) end [2025-10-13 06:25:25] Production.ERROR: pbx prc_insertCDR start [2025-10-13 06:25:25] Production.ERROR: pbx prc_insertCDR end [2025-10-13 06:25:25] Production.INFO: ==9307== Releasing lock... [2025-10-13 06:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-13 06:25:25] Production.INFO: 29.25 MB #Memory Used# [2025-10-13 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-13 04:25:05 [end_date_ymd] => 2025-10-13 07:25:05 [RateCDR] => 1 ) [2025-10-13 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-13 04:25:05' and `end` < '2025-10-13 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-13 07:25:17] Production.INFO: count ==119 [2025-10-13 07:25:17] Production.ERROR: pbx CDR StartTime 2025-10-13 04:25:05 - End Time 2025-10-13 07:25:05 [2025-10-13 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-13 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16009009', 'tblTempUsageDetail_20' ) start [2025-10-13 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16009009', 'tblTempUsageDetail_20' ) end [2025-10-13 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16009009', 'tblTempVendorCDR_20' ) start [2025-10-13 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16009009', 'tblTempVendorCDR_20' ) end [2025-10-13 07:25:17] Production.INFO: ProcessCDR(1,16009009,1,1,2) [2025-10-13 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16009009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 07:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16009009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 07:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16009009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 07:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16009009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 07:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16009009', 'tblTempUsageDetail_20' ) start [2025-10-13 07:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16009009', 'tblTempUsageDetail_20' ) end [2025-10-13 07:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-13 07:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-13 07:25:27] Production.INFO: ==13591== Releasing lock... [2025-10-13 07:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-13 07:25:27] Production.INFO: 28.75 MB #Memory Used# [2025-10-13 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-13 05:25:05 [end_date_ymd] => 2025-10-13 08:25:05 [RateCDR] => 1 ) [2025-10-13 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-13 05:25:05' and `end` < '2025-10-13 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-13 08:25:17] Production.INFO: count ==135 [2025-10-13 08:25:17] Production.ERROR: pbx CDR StartTime 2025-10-13 05:25:05 - End Time 2025-10-13 08:25:05 [2025-10-13 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-13 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16009256', 'tblTempUsageDetail_20' ) start [2025-10-13 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16009256', 'tblTempUsageDetail_20' ) end [2025-10-13 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16009256', 'tblTempVendorCDR_20' ) start [2025-10-13 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16009256', 'tblTempVendorCDR_20' ) end [2025-10-13 08:25:18] Production.INFO: ProcessCDR(1,16009256,1,1,2) [2025-10-13 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16009256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 08:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16009256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 08:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16009256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 08:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16009256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16009256', 'tblTempUsageDetail_20' ) start [2025-10-13 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16009256', 'tblTempUsageDetail_20' ) end [2025-10-13 08:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-13 08:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-13 08:25:26] Production.INFO: ==18060== Releasing lock... [2025-10-13 08:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-13 08:25:26] Production.INFO: 29.5 MB #Memory Used# [2025-10-13 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-13 06:25:05 [end_date_ymd] => 2025-10-13 09:25:05 [RateCDR] => 1 ) [2025-10-13 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-10-13 06:25:05' and `end` < '2025-10-13 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-10-13 09:25:17] Production.INFO: count ==308 [2025-10-13 09:25:18] Production.ERROR: pbx CDR StartTime 2025-10-13 06:25:05 - End Time 2025-10-13 09:25:05 [2025-10-13 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-13 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16009503', 'tblTempUsageDetail_20' ) start [2025-10-13 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16009503', 'tblTempUsageDetail_20' ) end [2025-10-13 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16009503', 'tblTempVendorCDR_20' ) start [2025-10-13 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16009503', 'tblTempVendorCDR_20' ) end [2025-10-13 09:25:18] Production.INFO: ProcessCDR(1,16009503,1,1,2) [2025-10-13 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16009503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16009503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16009503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 09:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16009503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16009503', 'tblTempUsageDetail_20' ) start [2025-10-13 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16009503', 'tblTempUsageDetail_20' ) end [2025-10-13 09:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-13 09:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-13 09:25:27] Production.INFO: ==22952== Releasing lock... [2025-10-13 09:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-13 09:25:27] Production.INFO: 31 MB #Memory Used# [2025-10-13 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-13 07:25:05 [end_date_ymd] => 2025-10-13 10:25:05 [RateCDR] => 1 ) [2025-10-13 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-13 07:25:05' and `end` < '2025-10-13 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-13 10:25:18] Production.INFO: count ==530 [2025-10-13 10:25:18] Production.ERROR: pbx CDR StartTime 2025-10-13 07:25:05 - End Time 2025-10-13 10:25:05 [2025-10-13 10:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-13 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16009750', 'tblTempUsageDetail_20' ) start [2025-10-13 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16009750', 'tblTempUsageDetail_20' ) end [2025-10-13 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16009750', 'tblTempVendorCDR_20' ) start [2025-10-13 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16009750', 'tblTempVendorCDR_20' ) end [2025-10-13 10:25:18] Production.INFO: ProcessCDR(1,16009750,1,1,2) [2025-10-13 10:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16009750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 10:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16009750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 10:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16009750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 10:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16009750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 10:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16009750', 'tblTempUsageDetail_20' ) start [2025-10-13 10:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16009750', 'tblTempUsageDetail_20' ) end [2025-10-13 10:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-13 10:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-13 10:25:28] Production.INFO: ==27794== Releasing lock... [2025-10-13 10:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-13 10:25:28] Production.INFO: 33 MB #Memory Used# [2025-10-13 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-13 08:25:06 [end_date_ymd] => 2025-10-13 11:25:06 [RateCDR] => 1 ) [2025-10-13 11:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-13 08:25:06' and `end` < '2025-10-13 11:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-13 11:25:18] Production.INFO: count ==822 [2025-10-13 11:25:18] Production.ERROR: pbx CDR StartTime 2025-10-13 08:25:06 - End Time 2025-10-13 11:25:06 [2025-10-13 11:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-13 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16009997', 'tblTempUsageDetail_20' ) start [2025-10-13 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16009997', 'tblTempUsageDetail_20' ) end [2025-10-13 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16009997', 'tblTempVendorCDR_20' ) start [2025-10-13 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16009997', 'tblTempVendorCDR_20' ) end [2025-10-13 11:25:18] Production.INFO: ProcessCDR(1,16009997,1,1,2) [2025-10-13 11:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16009997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 11:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16009997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 11:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16009997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 11:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16009997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 11:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16009997', 'tblTempUsageDetail_20' ) start [2025-10-13 11:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16009997', 'tblTempUsageDetail_20' ) end [2025-10-13 11:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-13 11:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-13 11:25:28] Production.INFO: ==32438== Releasing lock... [2025-10-13 11:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-13 11:25:28] Production.INFO: 34.25 MB #Memory Used# [2025-10-13 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-13 09:25:05 [end_date_ymd] => 2025-10-13 12:25:05 [RateCDR] => 1 ) [2025-10-13 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-13 09:25:05' and `end` < '2025-10-13 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-13 12:25:17] Production.INFO: count ==997 [2025-10-13 12:25:18] Production.ERROR: pbx CDR StartTime 2025-10-13 09:25:05 - End Time 2025-10-13 12:25:05 [2025-10-13 12:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-13 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16010244', 'tblTempUsageDetail_20' ) start [2025-10-13 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16010244', 'tblTempUsageDetail_20' ) end [2025-10-13 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16010244', 'tblTempVendorCDR_20' ) start [2025-10-13 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16010244', 'tblTempVendorCDR_20' ) end [2025-10-13 12:25:18] Production.INFO: ProcessCDR(1,16010244,1,1,2) [2025-10-13 12:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16010244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 12:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16010244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 12:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16010244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 12:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16010244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16010244', 'tblTempUsageDetail_20' ) start [2025-10-13 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16010244', 'tblTempUsageDetail_20' ) end [2025-10-13 12:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-13 12:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-13 12:25:27] Production.INFO: ==4844== Releasing lock... [2025-10-13 12:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-13 12:25:27] Production.INFO: 36.25 MB #Memory Used# [2025-10-13 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-13 10:25:06 [end_date_ymd] => 2025-10-13 13:25:06 [RateCDR] => 1 ) [2025-10-13 13: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-10-13 10:25:06' and `end` < '2025-10-13 13: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-10-13 13:25:18] Production.INFO: count ==1144 [2025-10-13 13:25:19] Production.ERROR: pbx CDR StartTime 2025-10-13 10:25:06 - End Time 2025-10-13 13:25:06 [2025-10-13 13:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-13 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16010491', 'tblTempUsageDetail_20' ) start [2025-10-13 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16010491', 'tblTempUsageDetail_20' ) end [2025-10-13 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16010491', 'tblTempVendorCDR_20' ) start [2025-10-13 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16010491', 'tblTempVendorCDR_20' ) end [2025-10-13 13:25:19] Production.INFO: ProcessCDR(1,16010491,1,1,2) [2025-10-13 13:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16010491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 13:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16010491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 13:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16010491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 13:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16010491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 13:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16010491', 'tblTempUsageDetail_20' ) start [2025-10-13 13:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16010491', 'tblTempUsageDetail_20' ) end [2025-10-13 13:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-13 13:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-13 13:25:28] Production.INFO: ==9782== Releasing lock... [2025-10-13 13:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-13 13:25:28] Production.INFO: 37 MB #Memory Used# [2025-10-13 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-13 11:25:05 [end_date_ymd] => 2025-10-13 14:25:05 [RateCDR] => 1 ) [2025-10-13 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-13 11:25:05' and `end` < '2025-10-13 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-13 14:25:18] Production.INFO: count ==1233 [2025-10-13 14:25:18] Production.ERROR: pbx CDR StartTime 2025-10-13 11:25:05 - End Time 2025-10-13 14:25:05 [2025-10-13 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-13 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16010738', 'tblTempUsageDetail_20' ) start [2025-10-13 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16010738', 'tblTempUsageDetail_20' ) end [2025-10-13 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16010738', 'tblTempVendorCDR_20' ) start [2025-10-13 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16010738', 'tblTempVendorCDR_20' ) end [2025-10-13 14:25:18] Production.INFO: ProcessCDR(1,16010738,1,1,2) [2025-10-13 14:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16010738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 14:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16010738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 14:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16010738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 14:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16010738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 14:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16010738', 'tblTempUsageDetail_20' ) start [2025-10-13 14:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16010738', 'tblTempUsageDetail_20' ) end [2025-10-13 14:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-13 14:25:29] Production.ERROR: pbx prc_insertCDR end [2025-10-13 14:25:29] Production.INFO: ==15080== Releasing lock... [2025-10-13 14:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-13 14:25:29] Production.INFO: 38.25 MB #Memory Used# [2025-10-13 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-13 12:25:05 [end_date_ymd] => 2025-10-13 15:25:05 [RateCDR] => 1 ) [2025-10-13 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-13 12:25:05' and `end` < '2025-10-13 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-13 15:25:17] Production.INFO: count ==1240 [2025-10-13 15:25:18] Production.ERROR: pbx CDR StartTime 2025-10-13 12:25:05 - End Time 2025-10-13 15:25:05 [2025-10-13 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-13 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16010985', 'tblTempUsageDetail_20' ) start [2025-10-13 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16010985', 'tblTempUsageDetail_20' ) end [2025-10-13 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16010985', 'tblTempVendorCDR_20' ) start [2025-10-13 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16010985', 'tblTempVendorCDR_20' ) end [2025-10-13 15:25:18] Production.INFO: ProcessCDR(1,16010985,1,1,2) [2025-10-13 15:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16010985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 15:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16010985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 15:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16010985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 15:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16010985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16010985', 'tblTempUsageDetail_20' ) start [2025-10-13 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16010985', 'tblTempUsageDetail_20' ) end [2025-10-13 15:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-13 15:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-13 15:25:28] Production.INFO: ==19642== Releasing lock... [2025-10-13 15:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-13 15:25:28] Production.INFO: 37.75 MB #Memory Used# [2025-10-13 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-13 13:25:05 [end_date_ymd] => 2025-10-13 16:25:05 [RateCDR] => 1 ) [2025-10-13 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-13 13:25:05' and `end` < '2025-10-13 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-13 16:25:17] Production.INFO: count ==1282 [2025-10-13 16:25:18] Production.ERROR: pbx CDR StartTime 2025-10-13 13:25:05 - End Time 2025-10-13 16:25:05 [2025-10-13 16:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-13 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16011232', 'tblTempUsageDetail_20' ) start [2025-10-13 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16011232', 'tblTempUsageDetail_20' ) end [2025-10-13 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16011232', 'tblTempVendorCDR_20' ) start [2025-10-13 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16011232', 'tblTempVendorCDR_20' ) end [2025-10-13 16:25:18] Production.INFO: ProcessCDR(1,16011232,1,1,2) [2025-10-13 16:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16011232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 16:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16011232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 16:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16011232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 16:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16011232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16011232', 'tblTempUsageDetail_20' ) start [2025-10-13 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16011232', 'tblTempUsageDetail_20' ) end [2025-10-13 16:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-13 16:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-13 16:25:28] Production.INFO: ==24238== Releasing lock... [2025-10-13 16:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-13 16:25:28] Production.INFO: 37.75 MB #Memory Used# [2025-10-13 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-13 14:25:05 [end_date_ymd] => 2025-10-13 17:25:05 [RateCDR] => 1 ) [2025-10-13 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-13 14:25:05' and `end` < '2025-10-13 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-13 17:25:17] Production.INFO: count ==1444 [2025-10-13 17:25:18] Production.ERROR: pbx CDR StartTime 2025-10-13 14:25:05 - End Time 2025-10-13 17:25:05 [2025-10-13 17:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-13 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16011479', 'tblTempUsageDetail_20' ) start [2025-10-13 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16011479', 'tblTempUsageDetail_20' ) end [2025-10-13 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16011479', 'tblTempVendorCDR_20' ) start [2025-10-13 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16011479', 'tblTempVendorCDR_20' ) end [2025-10-13 17:25:18] Production.INFO: ProcessCDR(1,16011479,1,1,2) [2025-10-13 17:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16011479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 17:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16011479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 17:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16011479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 17:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16011479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16011479', 'tblTempUsageDetail_20' ) start [2025-10-13 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16011479', 'tblTempUsageDetail_20' ) end [2025-10-13 17:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-13 17:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-13 17:25:28] Production.INFO: ==29184== Releasing lock... [2025-10-13 17:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-13 17:25:28] Production.INFO: 39 MB #Memory Used# [2025-10-13 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-13 15:25:05 [end_date_ymd] => 2025-10-13 18:25:05 [RateCDR] => 1 ) [2025-10-13 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-13 15:25:05' and `end` < '2025-10-13 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-13 18:25:17] Production.INFO: count ==1539 [2025-10-13 18:25:18] Production.ERROR: pbx CDR StartTime 2025-10-13 15:25:05 - End Time 2025-10-13 18:25:05 [2025-10-13 18:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-13 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16011726', 'tblTempUsageDetail_20' ) start [2025-10-13 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16011726', 'tblTempUsageDetail_20' ) end [2025-10-13 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16011726', 'tblTempVendorCDR_20' ) start [2025-10-13 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16011726', 'tblTempVendorCDR_20' ) end [2025-10-13 18:25:18] Production.INFO: ProcessCDR(1,16011726,1,1,2) [2025-10-13 18:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16011726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 18:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16011726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 18:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16011726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 18:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16011726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 18:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16011726', 'tblTempUsageDetail_20' ) start [2025-10-13 18:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16011726', 'tblTempUsageDetail_20' ) end [2025-10-13 18:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-13 18:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-13 18:25:28] Production.INFO: ==1538== Releasing lock... [2025-10-13 18:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-13 18:25:28] Production.INFO: 39.75 MB #Memory Used# [2025-10-13 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-13 16:25:05 [end_date_ymd] => 2025-10-13 19:25:05 [RateCDR] => 1 ) [2025-10-13 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-13 16:25:05' and `end` < '2025-10-13 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-13 19:25:18] Production.INFO: count ==1556 [2025-10-13 19:25:19] Production.ERROR: pbx CDR StartTime 2025-10-13 16:25:05 - End Time 2025-10-13 19:25:05 [2025-10-13 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-13 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16011970', 'tblTempUsageDetail_20' ) start [2025-10-13 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16011970', 'tblTempUsageDetail_20' ) end [2025-10-13 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16011970', 'tblTempVendorCDR_20' ) start [2025-10-13 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16011970', 'tblTempVendorCDR_20' ) end [2025-10-13 19:25:19] Production.INFO: ProcessCDR(1,16011970,1,1,2) [2025-10-13 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16011970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16011970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16011970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 19:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16011970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16011970', 'tblTempUsageDetail_20' ) start [2025-10-13 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16011970', 'tblTempUsageDetail_20' ) end [2025-10-13 19:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-13 19:25:29] Production.ERROR: pbx prc_insertCDR end [2025-10-13 19:25:29] Production.INFO: ==5933== Releasing lock... [2025-10-13 19:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-13 19:25:29] Production.INFO: 39.75 MB #Memory Used# [2025-10-13 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-13 17:25:05 [end_date_ymd] => 2025-10-13 20:25:05 [RateCDR] => 1 ) [2025-10-13 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-13 17:25:05' and `end` < '2025-10-13 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-13 20:25:18] Production.INFO: count ==1346 [2025-10-13 20:25:18] Production.ERROR: pbx CDR StartTime 2025-10-13 17:25:05 - End Time 2025-10-13 20:25:05 [2025-10-13 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-13 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16012217', 'tblTempUsageDetail_20' ) start [2025-10-13 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16012217', 'tblTempUsageDetail_20' ) end [2025-10-13 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16012217', 'tblTempVendorCDR_20' ) start [2025-10-13 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16012217', 'tblTempVendorCDR_20' ) end [2025-10-13 20:25:18] Production.INFO: ProcessCDR(1,16012217,1,1,2) [2025-10-13 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16012217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16012217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16012217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 20:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16012217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16012217', 'tblTempUsageDetail_20' ) start [2025-10-13 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16012217', 'tblTempUsageDetail_20' ) end [2025-10-13 20:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-13 20:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-13 20:25:28] Production.INFO: ==10344== Releasing lock... [2025-10-13 20:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-13 20:25:28] Production.INFO: 38.5 MB #Memory Used# [2025-10-13 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-13 18:25:05 [end_date_ymd] => 2025-10-13 21:25:05 [RateCDR] => 1 ) [2025-10-13 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-13 18:25:05' and `end` < '2025-10-13 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-13 21:25:18] Production.INFO: count ==1188 [2025-10-13 21:25:18] Production.ERROR: pbx CDR StartTime 2025-10-13 18:25:05 - End Time 2025-10-13 21:25:05 [2025-10-13 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-13 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16012464', 'tblTempUsageDetail_20' ) start [2025-10-13 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16012464', 'tblTempUsageDetail_20' ) end [2025-10-13 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16012464', 'tblTempVendorCDR_20' ) start [2025-10-13 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16012464', 'tblTempVendorCDR_20' ) end [2025-10-13 21:25:18] Production.INFO: ProcessCDR(1,16012464,1,1,2) [2025-10-13 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16012464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16012464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16012464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 21:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16012464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16012464', 'tblTempUsageDetail_20' ) start [2025-10-13 21:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16012464', 'tblTempUsageDetail_20' ) end [2025-10-13 21:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-13 21:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-13 21:25:28] Production.INFO: ==14995== Releasing lock... [2025-10-13 21:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-13 21:25:28] Production.INFO: 37.25 MB #Memory Used# [2025-10-13 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-13 19:25:05 [end_date_ymd] => 2025-10-13 22:25:05 [RateCDR] => 1 ) [2025-10-13 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-10-13 19:25:05' and `end` < '2025-10-13 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-10-13 22:25:17] Production.INFO: count ==935 [2025-10-13 22:25:17] Production.ERROR: pbx CDR StartTime 2025-10-13 19:25:05 - End Time 2025-10-13 22:25:05 [2025-10-13 22:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-13 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16012711', 'tblTempUsageDetail_20' ) start [2025-10-13 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16012711', 'tblTempUsageDetail_20' ) end [2025-10-13 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16012711', 'tblTempVendorCDR_20' ) start [2025-10-13 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16012711', 'tblTempVendorCDR_20' ) end [2025-10-13 22:25:17] Production.INFO: ProcessCDR(1,16012711,1,1,2) [2025-10-13 22:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16012711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16012711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16012711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 22:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16012711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16012711', 'tblTempUsageDetail_20' ) start [2025-10-13 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16012711', 'tblTempUsageDetail_20' ) end [2025-10-13 22:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-13 22:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-13 22:25:26] Production.INFO: ==19896== Releasing lock... [2025-10-13 22:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-13 22:25:26] Production.INFO: 35.5 MB #Memory Used# [2025-10-13 23:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-13 20:25:06 [end_date_ymd] => 2025-10-13 23:25:06 [RateCDR] => 1 ) [2025-10-13 23: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-10-13 20:25:06' and `end` < '2025-10-13 23: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-10-13 23:25:18] Production.INFO: count ==706 [2025-10-13 23:25:18] Production.ERROR: pbx CDR StartTime 2025-10-13 20:25:06 - End Time 2025-10-13 23:25:06 [2025-10-13 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-13 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16012958', 'tblTempUsageDetail_20' ) start [2025-10-13 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16012958', 'tblTempUsageDetail_20' ) end [2025-10-13 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16012958', 'tblTempVendorCDR_20' ) start [2025-10-13 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16012958', 'tblTempVendorCDR_20' ) end [2025-10-13 23:25:18] Production.INFO: ProcessCDR(1,16012958,1,1,2) [2025-10-13 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16012958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16012958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-13 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16012958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 23:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16012958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-13 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16012958', 'tblTempUsageDetail_20' ) start [2025-10-13 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16012958', 'tblTempUsageDetail_20' ) end [2025-10-13 23:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-13 23:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-13 23:25:27] Production.INFO: ==24537== Releasing lock... [2025-10-13 23:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-13 23:25:27] Production.INFO: 33.25 MB #Memory Used#