[2025-06-30 00:25:03] Production.INFO: next invoice date [2025-06-30 00:25:03] Production.INFO: 2025-07-30 [2025-06-30 00:25:03] Production.INFO: getdaysdiff [2025-06-30 00:25:03] Production.INFO: +30 [2025-06-30 00:25:03] Production.INFO: call prc_setAccountDiscountPlan (205,11,1,30,30,'RMScheduler',2025-06-30 00:25:03,0,0,,,0) [2025-06-30 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-29 21:25:05 [end_date_ymd] => 2025-06-30 00:25:05 [RateCDR] => 1 ) [2025-06-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-06-29 21:25:05' and `end` < '2025-06-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-06-30 00:25:17] Production.INFO: count ==653 [2025-06-30 00:25:17] Production.ERROR: pbx CDR StartTime 2025-06-29 21:25:05 - End Time 2025-06-30 00:25:05 [2025-06-30 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-30 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15384922', 'tblTempUsageDetail_20' ) start [2025-06-30 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15384922', 'tblTempUsageDetail_20' ) end [2025-06-30 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15384922', 'tblTempVendorCDR_20' ) start [2025-06-30 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15384922', 'tblTempVendorCDR_20' ) end [2025-06-30 00:25:17] Production.INFO: ProcessCDR(1,15384922,1,1,2) [2025-06-30 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15384922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 00:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15384922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 00:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15384922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 00:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15384922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 00:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15384922', 'tblTempUsageDetail_20' ) start [2025-06-30 00:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15384922', 'tblTempUsageDetail_20' ) end [2025-06-30 00:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-30 00:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-30 00:25:25] Production.INFO: ==31975== Releasing lock... [2025-06-30 00:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-30 00:25:25] Production.INFO: 36 MB #Memory Used# [2025-06-30 01:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-29 22:25:06 [end_date_ymd] => 2025-06-30 01:25:06 [RateCDR] => 1 ) [2025-06-30 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-06-29 22:25:06' and `end` < '2025-06-30 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-06-30 01:25:18] Production.INFO: count ==599 [2025-06-30 01:25:18] Production.ERROR: pbx CDR StartTime 2025-06-29 22:25:06 - End Time 2025-06-30 01:25:06 [2025-06-30 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-30 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15385169', 'tblTempUsageDetail_20' ) start [2025-06-30 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15385169', 'tblTempUsageDetail_20' ) end [2025-06-30 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15385169', 'tblTempVendorCDR_20' ) start [2025-06-30 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15385169', 'tblTempVendorCDR_20' ) end [2025-06-30 01:25:18] Production.INFO: ProcessCDR(1,15385169,1,1,2) [2025-06-30 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15385169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15385169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15385169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 01:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15385169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15385169', 'tblTempUsageDetail_20' ) start [2025-06-30 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15385169', 'tblTempUsageDetail_20' ) end [2025-06-30 01:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-30 01:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-30 01:25:25] Production.INFO: ==4063== Releasing lock... [2025-06-30 01:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-30 01:25:25] Production.INFO: 33.25 MB #Memory Used# [2025-06-30 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-29 23:25:05 [end_date_ymd] => 2025-06-30 02:25:05 [RateCDR] => 1 ) [2025-06-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-06-29 23:25:05' and `end` < '2025-06-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-06-30 02:25:17] Production.INFO: count ==539 [2025-06-30 02:25:18] Production.ERROR: pbx CDR StartTime 2025-06-29 23:25:05 - End Time 2025-06-30 02:25:05 [2025-06-30 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-30 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15385416', 'tblTempUsageDetail_20' ) start [2025-06-30 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15385416', 'tblTempUsageDetail_20' ) end [2025-06-30 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15385416', 'tblTempVendorCDR_20' ) start [2025-06-30 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15385416', 'tblTempVendorCDR_20' ) end [2025-06-30 02:25:18] Production.INFO: ProcessCDR(1,15385416,1,1,2) [2025-06-30 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15385416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15385416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15385416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 02:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15385416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15385416', 'tblTempUsageDetail_20' ) start [2025-06-30 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15385416', 'tblTempUsageDetail_20' ) end [2025-06-30 02:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-30 02:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-30 02:25:24] Production.INFO: ==8440== Releasing lock... [2025-06-30 02:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-30 02:25:24] Production.INFO: 32.5 MB #Memory Used# [2025-06-30 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-30 00:25:05 [end_date_ymd] => 2025-06-30 03:25:05 [RateCDR] => 1 ) [2025-06-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-06-30 00:25:05' and `end` < '2025-06-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-06-30 03:25:17] Production.INFO: count ==423 [2025-06-30 03:25:17] Production.ERROR: pbx CDR StartTime 2025-06-30 00:25:05 - End Time 2025-06-30 03:25:05 [2025-06-30 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-30 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15385663', 'tblTempUsageDetail_20' ) start [2025-06-30 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15385663', 'tblTempUsageDetail_20' ) end [2025-06-30 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15385663', 'tblTempVendorCDR_20' ) start [2025-06-30 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15385663', 'tblTempVendorCDR_20' ) end [2025-06-30 03:25:17] Production.INFO: ProcessCDR(1,15385663,1,1,2) [2025-06-30 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15385663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 03:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15385663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 03:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15385663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 03:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15385663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15385663', 'tblTempUsageDetail_20' ) start [2025-06-30 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15385663', 'tblTempUsageDetail_20' ) end [2025-06-30 03:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-30 03:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-30 03:25:23] Production.INFO: ==12729== Releasing lock... [2025-06-30 03:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-30 03:25:23] Production.INFO: 31.5 MB #Memory Used# [2025-06-30 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-30 01:25:05 [end_date_ymd] => 2025-06-30 04:25:05 [RateCDR] => 1 ) [2025-06-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-06-30 01:25:05' and `end` < '2025-06-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-06-30 04:25:17] Production.INFO: count ==247 [2025-06-30 04:25:17] Production.ERROR: pbx CDR StartTime 2025-06-30 01:25:05 - End Time 2025-06-30 04:25:05 [2025-06-30 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-30 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15385911', 'tblTempUsageDetail_20' ) start [2025-06-30 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15385911', 'tblTempUsageDetail_20' ) end [2025-06-30 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15385911', 'tblTempVendorCDR_20' ) start [2025-06-30 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15385911', 'tblTempVendorCDR_20' ) end [2025-06-30 04:25:17] Production.INFO: ProcessCDR(1,15385911,1,1,2) [2025-06-30 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15385911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 04:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15385911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 04:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15385911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 04:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15385911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15385911', 'tblTempUsageDetail_20' ) start [2025-06-30 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15385911', 'tblTempUsageDetail_20' ) end [2025-06-30 04:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-30 04:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-30 04:25:23] Production.INFO: ==18832== Releasing lock... [2025-06-30 04:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-30 04:25:23] Production.INFO: 30.25 MB #Memory Used# [2025-06-30 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-30 02:25:05 [end_date_ymd] => 2025-06-30 05:25:05 [RateCDR] => 1 ) [2025-06-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-06-30 02:25:05' and `end` < '2025-06-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-06-30 05:25:17] Production.INFO: count ==134 [2025-06-30 05:25:17] Production.ERROR: pbx CDR StartTime 2025-06-30 02:25:05 - End Time 2025-06-30 05:25:05 [2025-06-30 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-30 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15386159', 'tblTempUsageDetail_20' ) start [2025-06-30 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15386159', 'tblTempUsageDetail_20' ) end [2025-06-30 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15386159', 'tblTempVendorCDR_20' ) start [2025-06-30 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15386159', 'tblTempVendorCDR_20' ) end [2025-06-30 05:25:17] Production.INFO: ProcessCDR(1,15386159,1,1,2) [2025-06-30 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15386159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15386159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15386159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 05:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15386159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15386159', 'tblTempUsageDetail_20' ) start [2025-06-30 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15386159', 'tblTempUsageDetail_20' ) end [2025-06-30 05:25:22] Production.ERROR: pbx prc_insertCDR start [2025-06-30 05:25:22] Production.ERROR: pbx prc_insertCDR end [2025-06-30 05:25:22] Production.INFO: ==23192== Releasing lock... [2025-06-30 05:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-30 05:25:22] Production.INFO: 29 MB #Memory Used# [2025-06-30 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-30 03:25:05 [end_date_ymd] => 2025-06-30 06:25:05 [RateCDR] => 1 ) [2025-06-30 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-30 03:25:05' and `end` < '2025-06-30 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-30 06:25:18] Production.INFO: count ==79 [2025-06-30 06:25:18] Production.ERROR: pbx CDR StartTime 2025-06-30 03:25:05 - End Time 2025-06-30 06:25:05 [2025-06-30 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-30 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15386406', 'tblTempUsageDetail_20' ) start [2025-06-30 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15386406', 'tblTempUsageDetail_20' ) end [2025-06-30 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15386406', 'tblTempVendorCDR_20' ) start [2025-06-30 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15386406', 'tblTempVendorCDR_20' ) end [2025-06-30 06:25:18] Production.INFO: ProcessCDR(1,15386406,1,1,2) [2025-06-30 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15386406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15386406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15386406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 06:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15386406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15386406', 'tblTempUsageDetail_20' ) start [2025-06-30 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15386406', 'tblTempUsageDetail_20' ) end [2025-06-30 06:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-30 06:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-30 06:25:24] Production.INFO: ==27488== Releasing lock... [2025-06-30 06:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-30 06:25:24] Production.INFO: 28.25 MB #Memory Used# [2025-06-30 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-30 04:25:05 [end_date_ymd] => 2025-06-30 07:25:05 [RateCDR] => 1 ) [2025-06-30 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-30 04:25:05' and `end` < '2025-06-30 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-30 07:25:17] Production.INFO: count ==97 [2025-06-30 07:25:17] Production.ERROR: pbx CDR StartTime 2025-06-30 04:25:05 - End Time 2025-06-30 07:25:05 [2025-06-30 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-30 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15386653', 'tblTempUsageDetail_20' ) start [2025-06-30 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15386653', 'tblTempUsageDetail_20' ) end [2025-06-30 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15386653', 'tblTempVendorCDR_20' ) start [2025-06-30 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15386653', 'tblTempVendorCDR_20' ) end [2025-06-30 07:25:17] Production.INFO: ProcessCDR(1,15386653,1,1,2) [2025-06-30 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15386653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15386653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15386653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 07:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15386653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15386653', 'tblTempUsageDetail_20' ) start [2025-06-30 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15386653', 'tblTempUsageDetail_20' ) end [2025-06-30 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-30 07:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-30 07:25:24] Production.INFO: ==32028== Releasing lock... [2025-06-30 07:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-30 07:25:24] Production.INFO: 28.75 MB #Memory Used# [2025-06-30 08:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-30 05:25:05 [end_date_ymd] => 2025-06-30 08:25:05 [RateCDR] => 1 ) [2025-06-30 08:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-30 05:25:05' and `end` < '2025-06-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-06-30 08:25:18] Production.INFO: count ==387 [2025-06-30 08:25:18] Production.ERROR: pbx CDR StartTime 2025-06-30 05:25:05 - End Time 2025-06-30 08:25:05 [2025-06-30 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-30 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15386900', 'tblTempUsageDetail_20' ) start [2025-06-30 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15386900', 'tblTempUsageDetail_20' ) end [2025-06-30 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15386900', 'tblTempVendorCDR_20' ) start [2025-06-30 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15386900', 'tblTempVendorCDR_20' ) end [2025-06-30 08:25:18] Production.INFO: ProcessCDR(1,15386900,1,1,2) [2025-06-30 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15386900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15386900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15386900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 08:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15386900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15386900', 'tblTempUsageDetail_20' ) start [2025-06-30 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15386900', 'tblTempUsageDetail_20' ) end [2025-06-30 08:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-30 08:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-30 08:25:25] Production.INFO: ==3978== Releasing lock... [2025-06-30 08:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-30 08:25:25] Production.INFO: 31.25 MB #Memory Used# [2025-06-30 09:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-06-30 06:25:04 [end_date_ymd] => 2025-06-30 09:25:04 [RateCDR] => 1 ) [2025-06-30 09: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-06-30 06:25:04' and `end` < '2025-06-30 09: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-06-30 09:25:19] Production.INFO: count ==1622 [2025-06-30 09:25:19] Production.ERROR: pbx CDR StartTime 2025-06-30 06:25:04 - End Time 2025-06-30 09:25:04 [2025-06-30 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-30 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15387147', 'tblTempUsageDetail_20' ) start [2025-06-30 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15387147', 'tblTempUsageDetail_20' ) end [2025-06-30 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15387147', 'tblTempVendorCDR_20' ) start [2025-06-30 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15387147', 'tblTempVendorCDR_20' ) end [2025-06-30 09:25:19] Production.INFO: ProcessCDR(1,15387147,1,1,2) [2025-06-30 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15387147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 09:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15387147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 09:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15387147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 09:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15387147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15387147', 'tblTempUsageDetail_20' ) start [2025-06-30 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15387147', 'tblTempUsageDetail_20' ) end [2025-06-30 09:25:27] Production.ERROR: pbx prc_insertCDR start [2025-06-30 09:25:28] Production.ERROR: pbx prc_insertCDR end [2025-06-30 09:25:28] Production.INFO: ==8314== Releasing lock... [2025-06-30 09:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-30 09:25:28] Production.INFO: 40.25 MB #Memory Used# [2025-06-30 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-30 07:25:05 [end_date_ymd] => 2025-06-30 10:25:05 [RateCDR] => 1 ) [2025-06-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-06-30 07:25:05' and `end` < '2025-06-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-06-30 10:25:18] Production.INFO: count ==3336 [2025-06-30 10:25:19] Production.ERROR: pbx CDR StartTime 2025-06-30 07:25:05 - End Time 2025-06-30 10:25:05 [2025-06-30 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-30 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15387394', 'tblTempUsageDetail_20' ) start [2025-06-30 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15387394', 'tblTempUsageDetail_20' ) end [2025-06-30 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15387394', 'tblTempVendorCDR_20' ) start [2025-06-30 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15387394', 'tblTempVendorCDR_20' ) end [2025-06-30 10:25:20] Production.INFO: ProcessCDR(1,15387394,1,1,2) [2025-06-30 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15387394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 10:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15387394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 10:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15387394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 10:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15387394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 10:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15387394', 'tblTempUsageDetail_20' ) start [2025-06-30 10:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15387394', 'tblTempUsageDetail_20' ) end [2025-06-30 10:25:28] Production.ERROR: pbx prc_insertCDR start [2025-06-30 10:25:30] Production.ERROR: pbx prc_insertCDR end [2025-06-30 10:25:30] Production.INFO: ==12583== Releasing lock... [2025-06-30 10:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-30 10:25:30] Production.INFO: 53 MB #Memory Used# [2025-06-30 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-30 08:25:05 [end_date_ymd] => 2025-06-30 11:25:05 [RateCDR] => 1 ) [2025-06-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-06-30 08:25:05' and `end` < '2025-06-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-06-30 11:25:21] Production.INFO: count ==4883 [2025-06-30 11:25:23] Production.ERROR: pbx CDR StartTime 2025-06-30 08:25:05 - End Time 2025-06-30 11:25:05 [2025-06-30 11:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-30 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15387641', 'tblTempUsageDetail_20' ) start [2025-06-30 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15387641', 'tblTempUsageDetail_20' ) end [2025-06-30 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15387641', 'tblTempVendorCDR_20' ) start [2025-06-30 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15387641', 'tblTempVendorCDR_20' ) end [2025-06-30 11:25:23] Production.INFO: ProcessCDR(1,15387641,1,1,2) [2025-06-30 11:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15387641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 11:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15387641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 11:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15387641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 11:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15387641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15387641', 'tblTempUsageDetail_20' ) start [2025-06-30 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15387641', 'tblTempUsageDetail_20' ) end [2025-06-30 11:25:31] Production.ERROR: pbx prc_insertCDR start [2025-06-30 11:25:33] Production.ERROR: pbx prc_insertCDR end [2025-06-30 11:25:33] Production.INFO: ==16930== Releasing lock... [2025-06-30 11:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-30 11:25:33] Production.INFO: 64.75 MB #Memory Used# [2025-06-30 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-30 09:25:05 [end_date_ymd] => 2025-06-30 12:25:05 [RateCDR] => 1 ) [2025-06-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-06-30 09:25:05' and `end` < '2025-06-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-06-30 12:25:23] Production.INFO: count ==5483 [2025-06-30 12:25:25] Production.ERROR: pbx CDR StartTime 2025-06-30 09:25:05 - End Time 2025-06-30 12:25:05 [2025-06-30 12:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-30 12:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15387888', 'tblTempUsageDetail_20' ) start [2025-06-30 12:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15387888', 'tblTempUsageDetail_20' ) end [2025-06-30 12:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15387888', 'tblTempVendorCDR_20' ) start [2025-06-30 12:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15387888', 'tblTempVendorCDR_20' ) end [2025-06-30 12:25:26] Production.INFO: ProcessCDR(1,15387888,1,1,2) [2025-06-30 12:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15387888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 12:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15387888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 12:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15387888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 12:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15387888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 12:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15387888', 'tblTempUsageDetail_20' ) start [2025-06-30 12:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15387888', 'tblTempUsageDetail_20' ) end [2025-06-30 12:25:34] Production.ERROR: pbx prc_insertCDR start [2025-06-30 12:25:36] Production.ERROR: pbx prc_insertCDR end [2025-06-30 12:25:36] Production.INFO: ==21537== Releasing lock... [2025-06-30 12:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-30 12:25:36] Production.INFO: 69.25 MB #Memory Used# [2025-06-30 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-30 10:25:05 [end_date_ymd] => 2025-06-30 13:25:05 [RateCDR] => 1 ) [2025-06-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-06-30 10:25:05' and `end` < '2025-06-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-06-30 13:25:20] Production.INFO: count ==5449 [2025-06-30 13:25:22] Production.ERROR: pbx CDR StartTime 2025-06-30 10:25:05 - End Time 2025-06-30 13:25:05 [2025-06-30 13:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-30 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15388135', 'tblTempUsageDetail_20' ) start [2025-06-30 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15388135', 'tblTempUsageDetail_20' ) end [2025-06-30 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15388135', 'tblTempVendorCDR_20' ) start [2025-06-30 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15388135', 'tblTempVendorCDR_20' ) end [2025-06-30 13:25:23] Production.INFO: ProcessCDR(1,15388135,1,1,2) [2025-06-30 13:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15388135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 13:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15388135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 13:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15388135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 13:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15388135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15388135', 'tblTempUsageDetail_20' ) start [2025-06-30 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15388135', 'tblTempUsageDetail_20' ) end [2025-06-30 13:25:31] Production.ERROR: pbx prc_insertCDR start [2025-06-30 13:25:33] Production.ERROR: pbx prc_insertCDR end [2025-06-30 13:25:33] Production.INFO: ==26012== Releasing lock... [2025-06-30 13:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-30 13:25:33] Production.INFO: 69 MB #Memory Used# [2025-06-30 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-30 11:25:05 [end_date_ymd] => 2025-06-30 14:25:05 [RateCDR] => 1 ) [2025-06-30 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-30 11:25:05' and `end` < '2025-06-30 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-30 14:25:19] Production.INFO: count ==5217 [2025-06-30 14:25:21] Production.ERROR: pbx CDR StartTime 2025-06-30 11:25:05 - End Time 2025-06-30 14:25:05 [2025-06-30 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-30 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15388382', 'tblTempUsageDetail_20' ) start [2025-06-30 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15388382', 'tblTempUsageDetail_20' ) end [2025-06-30 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15388382', 'tblTempVendorCDR_20' ) start [2025-06-30 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15388382', 'tblTempVendorCDR_20' ) end [2025-06-30 14:25:22] Production.INFO: ProcessCDR(1,15388382,1,1,2) [2025-06-30 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15388382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 14:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15388382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 14:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15388382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 14:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15388382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 14:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15388382', 'tblTempUsageDetail_20' ) start [2025-06-30 14:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15388382', 'tblTempUsageDetail_20' ) end [2025-06-30 14:25:30] Production.ERROR: pbx prc_insertCDR start [2025-06-30 14:25:31] Production.ERROR: pbx prc_insertCDR end [2025-06-30 14:25:31] Production.INFO: ==30236== Releasing lock... [2025-06-30 14:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-30 14:25:31] Production.INFO: 67.25 MB #Memory Used# [2025-06-30 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-30 12:25:05 [end_date_ymd] => 2025-06-30 15:25:05 [RateCDR] => 1 ) [2025-06-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-06-30 12:25:05' and `end` < '2025-06-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-06-30 15:25:18] Production.INFO: count ==5112 [2025-06-30 15:25:21] Production.ERROR: pbx CDR StartTime 2025-06-30 12:25:05 - End Time 2025-06-30 15:25:05 [2025-06-30 15:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-30 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15388629', 'tblTempUsageDetail_20' ) start [2025-06-30 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15388629', 'tblTempUsageDetail_20' ) end [2025-06-30 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15388629', 'tblTempVendorCDR_20' ) start [2025-06-30 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15388629', 'tblTempVendorCDR_20' ) end [2025-06-30 15:25:21] Production.INFO: ProcessCDR(1,15388629,1,1,2) [2025-06-30 15:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15388629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 15:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15388629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 15:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15388629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 15:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15388629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 15:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15388629', 'tblTempUsageDetail_20' ) start [2025-06-30 15:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15388629', 'tblTempUsageDetail_20' ) end [2025-06-30 15:25:30] Production.ERROR: pbx prc_insertCDR start [2025-06-30 15:25:32] Production.ERROR: pbx prc_insertCDR end [2025-06-30 15:25:32] Production.INFO: ==2126== Releasing lock... [2025-06-30 15:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-30 15:25:32] Production.INFO: 66.5 MB #Memory Used# [2025-06-30 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-30 13:25:05 [end_date_ymd] => 2025-06-30 16:25:05 [RateCDR] => 1 ) [2025-06-30 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-30 13:25:05' and `end` < '2025-06-30 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-30 16:25:19] Production.INFO: count ==5054 [2025-06-30 16:25:21] Production.ERROR: pbx CDR StartTime 2025-06-30 13:25:05 - End Time 2025-06-30 16:25:05 [2025-06-30 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-30 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15388876', 'tblTempUsageDetail_20' ) start [2025-06-30 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15388876', 'tblTempUsageDetail_20' ) end [2025-06-30 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15388876', 'tblTempVendorCDR_20' ) start [2025-06-30 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15388876', 'tblTempVendorCDR_20' ) end [2025-06-30 16:25:22] Production.INFO: ProcessCDR(1,15388876,1,1,2) [2025-06-30 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15388876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 16:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15388876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 16:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15388876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 16:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15388876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 16:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15388876', 'tblTempUsageDetail_20' ) start [2025-06-30 16:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15388876', 'tblTempUsageDetail_20' ) end [2025-06-30 16:25:31] Production.ERROR: pbx prc_insertCDR start [2025-06-30 16:25:33] Production.ERROR: pbx prc_insertCDR end [2025-06-30 16:25:33] Production.INFO: ==6408== Releasing lock... [2025-06-30 16:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-30 16:25:33] Production.INFO: 66 MB #Memory Used# [2025-06-30 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-30 14:25:05 [end_date_ymd] => 2025-06-30 17:25:05 [RateCDR] => 1 ) [2025-06-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-06-30 14:25:05' and `end` < '2025-06-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-06-30 17:25:18] Production.INFO: count ==4880 [2025-06-30 17:25:20] Production.ERROR: pbx CDR StartTime 2025-06-30 14:25:05 - End Time 2025-06-30 17:25:05 [2025-06-30 17:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-30 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15389123', 'tblTempUsageDetail_20' ) start [2025-06-30 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15389123', 'tblTempUsageDetail_20' ) end [2025-06-30 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15389123', 'tblTempVendorCDR_20' ) start [2025-06-30 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15389123', 'tblTempVendorCDR_20' ) end [2025-06-30 17:25:21] Production.INFO: ProcessCDR(1,15389123,1,1,2) [2025-06-30 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15389123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 17:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15389123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 17:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15389123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 17:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15389123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 17:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15389123', 'tblTempUsageDetail_20' ) start [2025-06-30 17:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15389123', 'tblTempUsageDetail_20' ) end [2025-06-30 17:25:29] Production.ERROR: pbx prc_insertCDR start [2025-06-30 17:25:31] Production.ERROR: pbx prc_insertCDR end [2025-06-30 17:25:31] Production.INFO: ==10800== Releasing lock... [2025-06-30 17:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-30 17:25:31] Production.INFO: 64.75 MB #Memory Used# [2025-06-30 18:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-30 15:25:06 [end_date_ymd] => 2025-06-30 18:25:06 [RateCDR] => 1 ) [2025-06-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-06-30 15:25:06' and `end` < '2025-06-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-06-30 18:25:19] Production.INFO: count ==4101 [2025-06-30 18:25:21] Production.ERROR: pbx CDR StartTime 2025-06-30 15:25:06 - End Time 2025-06-30 18:25:06 [2025-06-30 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-30 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15389370', 'tblTempUsageDetail_20' ) start [2025-06-30 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15389370', 'tblTempUsageDetail_20' ) end [2025-06-30 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15389370', 'tblTempVendorCDR_20' ) start [2025-06-30 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15389370', 'tblTempVendorCDR_20' ) end [2025-06-30 18:25:21] Production.INFO: ProcessCDR(1,15389370,1,1,2) [2025-06-30 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15389370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15389370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15389370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 18:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15389370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 18:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15389370', 'tblTempUsageDetail_20' ) start [2025-06-30 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15389370', 'tblTempUsageDetail_20' ) end [2025-06-30 18:25:29] Production.ERROR: pbx prc_insertCDR start [2025-06-30 18:25:30] Production.ERROR: pbx prc_insertCDR end [2025-06-30 18:25:30] Production.INFO: ==15125== Releasing lock... [2025-06-30 18:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-30 18:25:30] Production.INFO: 58.75 MB #Memory Used# [2025-06-30 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-30 16:25:05 [end_date_ymd] => 2025-06-30 19:25:05 [RateCDR] => 1 ) [2025-06-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-06-30 16:25:05' and `end` < '2025-06-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-06-30 19:25:17] Production.INFO: count ==3214 [2025-06-30 19:25:19] Production.ERROR: pbx CDR StartTime 2025-06-30 16:25:05 - End Time 2025-06-30 19:25:05 [2025-06-30 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-30 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15389614', 'tblTempUsageDetail_20' ) start [2025-06-30 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15389614', 'tblTempUsageDetail_20' ) end [2025-06-30 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15389614', 'tblTempVendorCDR_20' ) start [2025-06-30 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15389614', 'tblTempVendorCDR_20' ) end [2025-06-30 19:25:19] Production.INFO: ProcessCDR(1,15389614,1,1,2) [2025-06-30 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15389614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15389614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15389614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 19:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15389614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15389614', 'tblTempUsageDetail_20' ) start [2025-06-30 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15389614', 'tblTempUsageDetail_20' ) end [2025-06-30 19:25:26] Production.ERROR: pbx prc_insertCDR start [2025-06-30 19:25:27] Production.ERROR: pbx prc_insertCDR end [2025-06-30 19:25:27] Production.INFO: ==19813== Releasing lock... [2025-06-30 19:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-30 19:25:27] Production.INFO: 52.25 MB #Memory Used# [2025-06-30 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-30 17:25:06 [end_date_ymd] => 2025-06-30 20:25:06 [RateCDR] => 1 ) [2025-06-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-06-30 17:25:06' and `end` < '2025-06-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-06-30 20:25:18] Production.INFO: count ==2313 [2025-06-30 20:25:19] Production.ERROR: pbx CDR StartTime 2025-06-30 17:25:06 - End Time 2025-06-30 20:25:06 [2025-06-30 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-30 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15389861', 'tblTempUsageDetail_20' ) start [2025-06-30 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15389861', 'tblTempUsageDetail_20' ) end [2025-06-30 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15389861', 'tblTempVendorCDR_20' ) start [2025-06-30 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15389861', 'tblTempVendorCDR_20' ) end [2025-06-30 20:25:19] Production.INFO: ProcessCDR(1,15389861,1,1,2) [2025-06-30 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15389861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15389861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15389861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 20:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15389861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15389861', 'tblTempUsageDetail_20' ) start [2025-06-30 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15389861', 'tblTempUsageDetail_20' ) end [2025-06-30 20:25:27] Production.ERROR: pbx prc_insertCDR start [2025-06-30 20:25:27] Production.ERROR: pbx prc_insertCDR end [2025-06-30 20:25:27] Production.INFO: ==24095== Releasing lock... [2025-06-30 20:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-30 20:25:27] Production.INFO: 45.5 MB #Memory Used# [2025-06-30 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-30 18:25:05 [end_date_ymd] => 2025-06-30 21:25:05 [RateCDR] => 1 ) [2025-06-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-06-30 18:25:05' and `end` < '2025-06-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-06-30 21:25:17] Production.INFO: count ==1782 [2025-06-30 21:25:18] Production.ERROR: pbx CDR StartTime 2025-06-30 18:25:05 - End Time 2025-06-30 21:25:05 [2025-06-30 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-30 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15390108', 'tblTempUsageDetail_20' ) start [2025-06-30 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15390108', 'tblTempUsageDetail_20' ) end [2025-06-30 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15390108', 'tblTempVendorCDR_20' ) start [2025-06-30 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15390108', 'tblTempVendorCDR_20' ) end [2025-06-30 21:25:18] Production.INFO: ProcessCDR(1,15390108,1,1,2) [2025-06-30 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15390108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15390108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15390108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 21:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15390108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15390108', 'tblTempUsageDetail_20' ) start [2025-06-30 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15390108', 'tblTempUsageDetail_20' ) end [2025-06-30 21:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-30 21:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-30 21:25:25] Production.INFO: ==28410== Releasing lock... [2025-06-30 21:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-30 21:25:25] Production.INFO: 42 MB #Memory Used# [2025-06-30 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-30 19:25:05 [end_date_ymd] => 2025-06-30 22:25:05 [RateCDR] => 1 ) [2025-06-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-06-30 19:25:05' and `end` < '2025-06-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-06-30 22:25:18] Production.INFO: count ==981 [2025-06-30 22:25:18] Production.ERROR: pbx CDR StartTime 2025-06-30 19:25:05 - End Time 2025-06-30 22:25:05 [2025-06-30 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-30 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15390355', 'tblTempUsageDetail_20' ) start [2025-06-30 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15390355', 'tblTempUsageDetail_20' ) end [2025-06-30 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15390355', 'tblTempVendorCDR_20' ) start [2025-06-30 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15390355', 'tblTempVendorCDR_20' ) end [2025-06-30 22:25:19] Production.INFO: ProcessCDR(1,15390355,1,1,2) [2025-06-30 22:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15390355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15390355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15390355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 22:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15390355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15390355', 'tblTempUsageDetail_20' ) start [2025-06-30 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15390355', 'tblTempUsageDetail_20' ) end [2025-06-30 22:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-30 22:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-30 22:25:26] Production.INFO: ==509== Releasing lock... [2025-06-30 22:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-30 22:25:26] Production.INFO: 37 MB #Memory Used# [2025-06-30 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-30 20:25:05 [end_date_ymd] => 2025-06-30 23:25:05 [RateCDR] => 1 ) [2025-06-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-06-30 20:25:05' and `end` < '2025-06-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-06-30 23:25:17] Production.INFO: count ==870 [2025-06-30 23:25:18] Production.ERROR: pbx CDR StartTime 2025-06-30 20:25:05 - End Time 2025-06-30 23:25:05 [2025-06-30 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-30 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15390602', 'tblTempUsageDetail_20' ) start [2025-06-30 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15390602', 'tblTempUsageDetail_20' ) end [2025-06-30 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15390602', 'tblTempVendorCDR_20' ) start [2025-06-30 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15390602', 'tblTempVendorCDR_20' ) end [2025-06-30 23:25:18] Production.INFO: ProcessCDR(1,15390602,1,1,2) [2025-06-30 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15390602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15390602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-30 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15390602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 23:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15390602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-30 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15390602', 'tblTempUsageDetail_20' ) start [2025-06-30 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15390602', 'tblTempUsageDetail_20' ) end [2025-06-30 23:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-30 23:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-30 23:25:25] Production.INFO: ==5185== Releasing lock... [2025-06-30 23:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-30 23:25:25] Production.INFO: 35.25 MB #Memory Used#