[2025-07-18 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-17 21:25:05 [end_date_ymd] => 2025-07-18 00:25:05 [RateCDR] => 1 ) [2025-07-18 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-07-17 21:25:05' and `end` < '2025-07-18 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-07-18 00:25:18] Production.INFO: count ==546 [2025-07-18 00:25:18] Production.ERROR: pbx CDR StartTime 2025-07-17 21:25:05 - End Time 2025-07-18 00:25:05 [2025-07-18 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-18 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15491612', 'tblTempUsageDetail_20' ) start [2025-07-18 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15491612', 'tblTempUsageDetail_20' ) end [2025-07-18 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15491612', 'tblTempVendorCDR_20' ) start [2025-07-18 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15491612', 'tblTempVendorCDR_20' ) end [2025-07-18 00:25:18] Production.INFO: ProcessCDR(1,15491612,1,1,2) [2025-07-18 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15491612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 00:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15491612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 00:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15491612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 00:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15491612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15491612', 'tblTempUsageDetail_20' ) start [2025-07-18 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15491612', 'tblTempUsageDetail_20' ) end [2025-07-18 00:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-18 00:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-18 00:25:26] Production.INFO: ==31907== Releasing lock... [2025-07-18 00:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-18 00:25:26] Production.INFO: 36.25 MB #Memory Used# [2025-07-18 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-17 22:25:05 [end_date_ymd] => 2025-07-18 01:25:05 [RateCDR] => 1 ) [2025-07-18 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-17 22:25:05' and `end` < '2025-07-18 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-18 01:25:18] Production.INFO: count ==473 [2025-07-18 01:25:18] Production.ERROR: pbx CDR StartTime 2025-07-17 22:25:05 - End Time 2025-07-18 01:25:05 [2025-07-18 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-18 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15491859', 'tblTempUsageDetail_20' ) start [2025-07-18 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15491859', 'tblTempUsageDetail_20' ) end [2025-07-18 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15491859', 'tblTempVendorCDR_20' ) start [2025-07-18 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15491859', 'tblTempVendorCDR_20' ) end [2025-07-18 01:25:18] Production.INFO: ProcessCDR(1,15491859,1,1,2) [2025-07-18 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15491859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15491859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15491859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 01:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15491859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15491859', 'tblTempUsageDetail_20' ) start [2025-07-18 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15491859', 'tblTempUsageDetail_20' ) end [2025-07-18 01:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-18 01:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-18 01:25:24] Production.INFO: ==4226== Releasing lock... [2025-07-18 01:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-18 01:25:24] Production.INFO: 32 MB #Memory Used# [2025-07-18 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-17 23:25:05 [end_date_ymd] => 2025-07-18 02:25:05 [RateCDR] => 1 ) [2025-07-18 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-07-17 23:25:05' and `end` < '2025-07-18 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-07-18 02:25:17] Production.INFO: count ==427 [2025-07-18 02:25:18] Production.ERROR: pbx CDR StartTime 2025-07-17 23:25:05 - End Time 2025-07-18 02:25:05 [2025-07-18 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-18 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15492106', 'tblTempUsageDetail_20' ) start [2025-07-18 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15492106', 'tblTempUsageDetail_20' ) end [2025-07-18 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15492106', 'tblTempVendorCDR_20' ) start [2025-07-18 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15492106', 'tblTempVendorCDR_20' ) end [2025-07-18 02:25:18] Production.INFO: ProcessCDR(1,15492106,1,1,2) [2025-07-18 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15492106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15492106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15492106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 02:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15492106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15492106', 'tblTempUsageDetail_20' ) start [2025-07-18 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15492106', 'tblTempUsageDetail_20' ) end [2025-07-18 02:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-18 02:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-18 02:25:24] Production.INFO: ==8723== Releasing lock... [2025-07-18 02:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-18 02:25:24] Production.INFO: 31.25 MB #Memory Used# [2025-07-18 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-18 00:25:05 [end_date_ymd] => 2025-07-18 03:25:05 [RateCDR] => 1 ) [2025-07-18 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-07-18 00:25:05' and `end` < '2025-07-18 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-07-18 03:25:17] Production.INFO: count ==513 [2025-07-18 03:25:17] Production.ERROR: pbx CDR StartTime 2025-07-18 00:25:05 - End Time 2025-07-18 03:25:05 [2025-07-18 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-18 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15492353', 'tblTempUsageDetail_20' ) start [2025-07-18 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15492353', 'tblTempUsageDetail_20' ) end [2025-07-18 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15492353', 'tblTempVendorCDR_20' ) start [2025-07-18 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15492353', 'tblTempVendorCDR_20' ) end [2025-07-18 03:25:17] Production.INFO: ProcessCDR(1,15492353,1,1,2) [2025-07-18 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15492353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 03:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15492353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 03:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15492353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 03:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15492353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15492353', 'tblTempUsageDetail_20' ) start [2025-07-18 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15492353', 'tblTempUsageDetail_20' ) end [2025-07-18 03:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-18 03:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-18 03:25:24] Production.INFO: ==13443== Releasing lock... [2025-07-18 03:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-18 03:25:24] Production.INFO: 32.5 MB #Memory Used# [2025-07-18 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-18 01:25:05 [end_date_ymd] => 2025-07-18 04:25:05 [RateCDR] => 1 ) [2025-07-18 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-07-18 01:25:05' and `end` < '2025-07-18 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-07-18 04:25:17] Production.INFO: count ==436 [2025-07-18 04:25:17] Production.ERROR: pbx CDR StartTime 2025-07-18 01:25:05 - End Time 2025-07-18 04:25:05 [2025-07-18 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-18 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15492601', 'tblTempUsageDetail_20' ) start [2025-07-18 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15492601', 'tblTempUsageDetail_20' ) end [2025-07-18 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15492601', 'tblTempVendorCDR_20' ) start [2025-07-18 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15492601', 'tblTempVendorCDR_20' ) end [2025-07-18 04:25:17] Production.INFO: ProcessCDR(1,15492601,1,1,2) [2025-07-18 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15492601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 04:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15492601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 04:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15492601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 04:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15492601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15492601', 'tblTempUsageDetail_20' ) start [2025-07-18 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15492601', 'tblTempUsageDetail_20' ) end [2025-07-18 04:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-18 04:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-18 04:25:24] Production.INFO: ==18626== Releasing lock... [2025-07-18 04:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-18 04:25:24] Production.INFO: 32 MB #Memory Used# [2025-07-18 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-18 02:25:05 [end_date_ymd] => 2025-07-18 05:25:05 [RateCDR] => 1 ) [2025-07-18 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-07-18 02:25:05' and `end` < '2025-07-18 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-07-18 05:25:17] Production.INFO: count ==334 [2025-07-18 05:25:17] Production.ERROR: pbx CDR StartTime 2025-07-18 02:25:05 - End Time 2025-07-18 05:25:05 [2025-07-18 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-18 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15492849', 'tblTempUsageDetail_20' ) start [2025-07-18 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15492849', 'tblTempUsageDetail_20' ) end [2025-07-18 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15492849', 'tblTempVendorCDR_20' ) start [2025-07-18 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15492849', 'tblTempVendorCDR_20' ) end [2025-07-18 05:25:17] Production.INFO: ProcessCDR(1,15492849,1,1,2) [2025-07-18 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15492849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 05:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15492849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 05:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15492849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 05:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15492849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15492849', 'tblTempUsageDetail_20' ) start [2025-07-18 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15492849', 'tblTempUsageDetail_20' ) end [2025-07-18 05:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-18 05:25:23] Production.ERROR: pbx prc_insertCDR end [2025-07-18 05:25:23] Production.INFO: ==23106== Releasing lock... [2025-07-18 05:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-18 05:25:23] Production.INFO: 30.75 MB #Memory Used# [2025-07-18 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-18 03:25:05 [end_date_ymd] => 2025-07-18 06:25:05 [RateCDR] => 1 ) [2025-07-18 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-07-18 03:25:05' and `end` < '2025-07-18 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-07-18 06:25:17] Production.INFO: count ==141 [2025-07-18 06:25:17] Production.ERROR: pbx CDR StartTime 2025-07-18 03:25:05 - End Time 2025-07-18 06:25:05 [2025-07-18 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-18 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15493096', 'tblTempUsageDetail_20' ) start [2025-07-18 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15493096', 'tblTempUsageDetail_20' ) end [2025-07-18 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15493096', 'tblTempVendorCDR_20' ) start [2025-07-18 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15493096', 'tblTempVendorCDR_20' ) end [2025-07-18 06:25:17] Production.INFO: ProcessCDR(1,15493096,1,1,2) [2025-07-18 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15493096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 06:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15493096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 06:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15493096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 06:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15493096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15493096', 'tblTempUsageDetail_20' ) start [2025-07-18 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15493096', 'tblTempUsageDetail_20' ) end [2025-07-18 06:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-18 06:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-18 06:25:24] Production.INFO: ==27810== Releasing lock... [2025-07-18 06:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-18 06:25:24] Production.INFO: 29.25 MB #Memory Used# [2025-07-18 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-18 04:25:05 [end_date_ymd] => 2025-07-18 07:25:05 [RateCDR] => 1 ) [2025-07-18 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-07-18 04:25:05' and `end` < '2025-07-18 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-07-18 07:25:17] Production.INFO: count ==120 [2025-07-18 07:25:17] Production.ERROR: pbx CDR StartTime 2025-07-18 04:25:05 - End Time 2025-07-18 07:25:05 [2025-07-18 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-18 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15493343', 'tblTempUsageDetail_20' ) start [2025-07-18 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15493343', 'tblTempUsageDetail_20' ) end [2025-07-18 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15493343', 'tblTempVendorCDR_20' ) start [2025-07-18 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15493343', 'tblTempVendorCDR_20' ) end [2025-07-18 07:25:17] Production.INFO: ProcessCDR(1,15493343,1,1,2) [2025-07-18 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15493343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 07:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15493343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 07:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15493343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 07:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15493343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15493343', 'tblTempUsageDetail_20' ) start [2025-07-18 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15493343', 'tblTempUsageDetail_20' ) end [2025-07-18 07:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-18 07:25:23] Production.ERROR: pbx prc_insertCDR end [2025-07-18 07:25:23] Production.INFO: ==32220== Releasing lock... [2025-07-18 07:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-18 07:25:23] Production.INFO: 29 MB #Memory Used# [2025-07-18 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-18 05:25:05 [end_date_ymd] => 2025-07-18 08:25:05 [RateCDR] => 1 ) [2025-07-18 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-07-18 05:25:05' and `end` < '2025-07-18 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-07-18 08:25:17] Production.INFO: count ==352 [2025-07-18 08:25:17] Production.ERROR: pbx CDR StartTime 2025-07-18 05:25:05 - End Time 2025-07-18 08:25:05 [2025-07-18 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-18 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15493590', 'tblTempUsageDetail_20' ) start [2025-07-18 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15493590', 'tblTempUsageDetail_20' ) end [2025-07-18 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15493590', 'tblTempVendorCDR_20' ) start [2025-07-18 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15493590', 'tblTempVendorCDR_20' ) end [2025-07-18 08:25:17] Production.INFO: ProcessCDR(1,15493590,1,1,2) [2025-07-18 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15493590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15493590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15493590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 08:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15493590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15493590', 'tblTempUsageDetail_20' ) start [2025-07-18 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15493590', 'tblTempUsageDetail_20' ) end [2025-07-18 08:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-18 08:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-18 08:25:24] Production.INFO: ==4670== Releasing lock... [2025-07-18 08:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-18 08:25:24] Production.INFO: 30.75 MB #Memory Used# [2025-07-18 09:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-07-18 06:25:04 [end_date_ymd] => 2025-07-18 09:25:04 [RateCDR] => 1 ) [2025-07-18 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-07-18 06:25:04' and `end` < '2025-07-18 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-07-18 09:25:17] Production.INFO: count ==1284 [2025-07-18 09:25:17] Production.ERROR: pbx CDR StartTime 2025-07-18 06:25:04 - End Time 2025-07-18 09:25:04 [2025-07-18 09:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-18 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15493837', 'tblTempUsageDetail_20' ) start [2025-07-18 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15493837', 'tblTempUsageDetail_20' ) end [2025-07-18 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15493837', 'tblTempVendorCDR_20' ) start [2025-07-18 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15493837', 'tblTempVendorCDR_20' ) end [2025-07-18 09:25:17] Production.INFO: ProcessCDR(1,15493837,1,1,2) [2025-07-18 09:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15493837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 09:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15493837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 09:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15493837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 09:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15493837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15493837', 'tblTempUsageDetail_20' ) start [2025-07-18 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15493837', 'tblTempUsageDetail_20' ) end [2025-07-18 09:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-18 09:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-18 09:25:25] Production.INFO: ==9234== Releasing lock... [2025-07-18 09:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-18 09:25:25] Production.INFO: 38 MB #Memory Used# [2025-07-18 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-18 07:25:05 [end_date_ymd] => 2025-07-18 10:25:05 [RateCDR] => 1 ) [2025-07-18 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-07-18 07:25:05' and `end` < '2025-07-18 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-07-18 10:25:19] Production.INFO: count ==2584 [2025-07-18 10:25:20] Production.ERROR: pbx CDR StartTime 2025-07-18 07:25:05 - End Time 2025-07-18 10:25:05 [2025-07-18 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-18 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15494084', 'tblTempUsageDetail_20' ) start [2025-07-18 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15494084', 'tblTempUsageDetail_20' ) end [2025-07-18 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15494084', 'tblTempVendorCDR_20' ) start [2025-07-18 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15494084', 'tblTempVendorCDR_20' ) end [2025-07-18 10:25:20] Production.INFO: ProcessCDR(1,15494084,1,1,2) [2025-07-18 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15494084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 10:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15494084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 10:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15494084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 10:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15494084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 10:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15494084', 'tblTempUsageDetail_20' ) start [2025-07-18 10:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15494084', 'tblTempUsageDetail_20' ) end [2025-07-18 10:25:28] Production.ERROR: pbx prc_insertCDR start [2025-07-18 10:25:30] Production.ERROR: pbx prc_insertCDR end [2025-07-18 10:25:30] Production.INFO: ==13991== Releasing lock... [2025-07-18 10:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-18 10:25:30] Production.INFO: 47.75 MB #Memory Used# [2025-07-18 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-18 08:25:05 [end_date_ymd] => 2025-07-18 11:25:05 [RateCDR] => 1 ) [2025-07-18 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-07-18 08:25:05' and `end` < '2025-07-18 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-07-18 11:25:20] Production.INFO: count ==4067 [2025-07-18 11:25:22] Production.ERROR: pbx CDR StartTime 2025-07-18 08:25:05 - End Time 2025-07-18 11:25:05 [2025-07-18 11:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-18 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15494331', 'tblTempUsageDetail_20' ) start [2025-07-18 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15494331', 'tblTempUsageDetail_20' ) end [2025-07-18 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15494331', 'tblTempVendorCDR_20' ) start [2025-07-18 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15494331', 'tblTempVendorCDR_20' ) end [2025-07-18 11:25:22] Production.INFO: ProcessCDR(1,15494331,1,1,2) [2025-07-18 11:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15494331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 11:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15494331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 11:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15494331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 11:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15494331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 11:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15494331', 'tblTempUsageDetail_20' ) start [2025-07-18 11:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15494331', 'tblTempUsageDetail_20' ) end [2025-07-18 11:25:30] Production.ERROR: pbx prc_insertCDR start [2025-07-18 11:25:32] Production.ERROR: pbx prc_insertCDR end [2025-07-18 11:25:32] Production.INFO: ==18558== Releasing lock... [2025-07-18 11:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-18 11:25:32] Production.INFO: 58.5 MB #Memory Used# [2025-07-18 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-18 09:25:06 [end_date_ymd] => 2025-07-18 12:25:06 [RateCDR] => 1 ) [2025-07-18 12:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-18 09:25:06' and `end` < '2025-07-18 12:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-18 12:25:22] Production.INFO: count ==4569 [2025-07-18 12:25:24] Production.ERROR: pbx CDR StartTime 2025-07-18 09:25:06 - End Time 2025-07-18 12:25:06 [2025-07-18 12:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-18 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15494578', 'tblTempUsageDetail_20' ) start [2025-07-18 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15494578', 'tblTempUsageDetail_20' ) end [2025-07-18 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15494578', 'tblTempVendorCDR_20' ) start [2025-07-18 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15494578', 'tblTempVendorCDR_20' ) end [2025-07-18 12:25:24] Production.INFO: ProcessCDR(1,15494578,1,1,2) [2025-07-18 12:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15494578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 12:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15494578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 12:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15494578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 12:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15494578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 12:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15494578', 'tblTempUsageDetail_20' ) start [2025-07-18 12:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15494578', 'tblTempUsageDetail_20' ) end [2025-07-18 12:25:32] Production.ERROR: pbx prc_insertCDR start [2025-07-18 12:25:34] Production.ERROR: pbx prc_insertCDR end [2025-07-18 12:25:34] Production.INFO: ==23031== Releasing lock... [2025-07-18 12:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-18 12:25:34] Production.INFO: 62.25 MB #Memory Used# [2025-07-18 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-18 10:25:06 [end_date_ymd] => 2025-07-18 13:25:06 [RateCDR] => 1 ) [2025-07-18 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-07-18 10:25:06' and `end` < '2025-07-18 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-07-18 13:25:20] Production.INFO: count ==4926 [2025-07-18 13:25:22] Production.ERROR: pbx CDR StartTime 2025-07-18 10:25:06 - End Time 2025-07-18 13:25:06 [2025-07-18 13:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-18 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15494825', 'tblTempUsageDetail_20' ) start [2025-07-18 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15494825', 'tblTempUsageDetail_20' ) end [2025-07-18 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15494825', 'tblTempVendorCDR_20' ) start [2025-07-18 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15494825', 'tblTempVendorCDR_20' ) end [2025-07-18 13:25:22] Production.INFO: ProcessCDR(1,15494825,1,1,2) [2025-07-18 13:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15494825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 13:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15494825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 13:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15494825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 13:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15494825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15494825', 'tblTempUsageDetail_20' ) start [2025-07-18 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15494825', 'tblTempUsageDetail_20' ) end [2025-07-18 13:25:31] Production.ERROR: pbx prc_insertCDR start [2025-07-18 13:25:33] Production.ERROR: pbx prc_insertCDR end [2025-07-18 13:25:33] Production.INFO: ==27714== Releasing lock... [2025-07-18 13:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-18 13:25:33] Production.INFO: 65 MB #Memory Used# [2025-07-18 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-18 11:25:05 [end_date_ymd] => 2025-07-18 14:25:05 [RateCDR] => 1 ) [2025-07-18 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-07-18 11:25:05' and `end` < '2025-07-18 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-07-18 14:25:18] Production.INFO: count ==4759 [2025-07-18 14:25:20] Production.ERROR: pbx CDR StartTime 2025-07-18 11:25:05 - End Time 2025-07-18 14:25:05 [2025-07-18 14:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-18 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15495072', 'tblTempUsageDetail_20' ) start [2025-07-18 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15495072', 'tblTempUsageDetail_20' ) end [2025-07-18 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15495072', 'tblTempVendorCDR_20' ) start [2025-07-18 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15495072', 'tblTempVendorCDR_20' ) end [2025-07-18 14:25:21] Production.INFO: ProcessCDR(1,15495072,1,1,2) [2025-07-18 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15495072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 14:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15495072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 14:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15495072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 14:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15495072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 14:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15495072', 'tblTempUsageDetail_20' ) start [2025-07-18 14:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15495072', 'tblTempUsageDetail_20' ) end [2025-07-18 14:25:29] Production.ERROR: pbx prc_insertCDR start [2025-07-18 14:25:30] Production.ERROR: pbx prc_insertCDR end [2025-07-18 14:25:30] Production.INFO: ==32304== Releasing lock... [2025-07-18 14:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-18 14:25:30] Production.INFO: 63.75 MB #Memory Used# [2025-07-18 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-18 12:25:05 [end_date_ymd] => 2025-07-18 15:25:05 [RateCDR] => 1 ) [2025-07-18 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-07-18 12:25:05' and `end` < '2025-07-18 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-07-18 15:25:20] Production.INFO: count ==5194 [2025-07-18 15:25:23] Production.ERROR: pbx CDR StartTime 2025-07-18 12:25:05 - End Time 2025-07-18 15:25:05 [2025-07-18 15:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-18 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15495319', 'tblTempUsageDetail_20' ) start [2025-07-18 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15495319', 'tblTempUsageDetail_20' ) end [2025-07-18 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15495319', 'tblTempVendorCDR_20' ) start [2025-07-18 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15495319', 'tblTempVendorCDR_20' ) end [2025-07-18 15:25:23] Production.INFO: ProcessCDR(1,15495319,1,1,2) [2025-07-18 15:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15495319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 15:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15495319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 15:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15495319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 15:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15495319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 15:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15495319', 'tblTempUsageDetail_20' ) start [2025-07-18 15:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15495319', 'tblTempUsageDetail_20' ) end [2025-07-18 15:25:31] Production.ERROR: pbx prc_insertCDR start [2025-07-18 15:25:33] Production.ERROR: pbx prc_insertCDR end [2025-07-18 15:25:33] Production.INFO: ==4289== Releasing lock... [2025-07-18 15:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-18 15:25:33] Production.INFO: 67 MB #Memory Used# [2025-07-18 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-18 13:25:05 [end_date_ymd] => 2025-07-18 16:25:05 [RateCDR] => 1 ) [2025-07-18 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-07-18 13:25:05' and `end` < '2025-07-18 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-07-18 16:25:18] Production.INFO: count ==4899 [2025-07-18 16:25:20] Production.ERROR: pbx CDR StartTime 2025-07-18 13:25:05 - End Time 2025-07-18 16:25:05 [2025-07-18 16:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-18 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15495566', 'tblTempUsageDetail_20' ) start [2025-07-18 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15495566', 'tblTempUsageDetail_20' ) end [2025-07-18 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15495566', 'tblTempVendorCDR_20' ) start [2025-07-18 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15495566', 'tblTempVendorCDR_20' ) end [2025-07-18 16:25:21] Production.INFO: ProcessCDR(1,15495566,1,1,2) [2025-07-18 16:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15495566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 16:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15495566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 16:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15495566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 16:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15495566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 16:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15495566', 'tblTempUsageDetail_20' ) start [2025-07-18 16:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15495566', 'tblTempUsageDetail_20' ) end [2025-07-18 16:25:28] Production.ERROR: pbx prc_insertCDR start [2025-07-18 16:25:30] Production.ERROR: pbx prc_insertCDR end [2025-07-18 16:25:30] Production.INFO: ==8838== Releasing lock... [2025-07-18 16:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-18 16:25:30] Production.INFO: 65 MB #Memory Used# [2025-07-18 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-18 14:25:05 [end_date_ymd] => 2025-07-18 17:25:05 [RateCDR] => 1 ) [2025-07-18 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-07-18 14:25:05' and `end` < '2025-07-18 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-07-18 17:25:18] Production.INFO: count ==4649 [2025-07-18 17:25:20] Production.ERROR: pbx CDR StartTime 2025-07-18 14:25:05 - End Time 2025-07-18 17:25:05 [2025-07-18 17:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-18 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15495813', 'tblTempUsageDetail_20' ) start [2025-07-18 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15495813', 'tblTempUsageDetail_20' ) end [2025-07-18 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15495813', 'tblTempVendorCDR_20' ) start [2025-07-18 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15495813', 'tblTempVendorCDR_20' ) end [2025-07-18 17:25:20] Production.INFO: ProcessCDR(1,15495813,1,1,2) [2025-07-18 17:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15495813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 17:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15495813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 17:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15495813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 17:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15495813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 17:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15495813', 'tblTempUsageDetail_20' ) start [2025-07-18 17:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15495813', 'tblTempUsageDetail_20' ) end [2025-07-18 17:25:29] Production.ERROR: pbx prc_insertCDR start [2025-07-18 17:25:30] Production.ERROR: pbx prc_insertCDR end [2025-07-18 17:25:30] Production.INFO: ==13378== Releasing lock... [2025-07-18 17:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-18 17:25:30] Production.INFO: 63 MB #Memory Used# [2025-07-18 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-18 15:25:05 [end_date_ymd] => 2025-07-18 18:25:05 [RateCDR] => 1 ) [2025-07-18 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-07-18 15:25:05' and `end` < '2025-07-18 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-07-18 18:25:21] Production.INFO: count ==3806 [2025-07-18 18:25:22] Production.ERROR: pbx CDR StartTime 2025-07-18 15:25:05 - End Time 2025-07-18 18:25:05 [2025-07-18 18:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-18 18:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15496060', 'tblTempUsageDetail_20' ) start [2025-07-18 18:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15496060', 'tblTempUsageDetail_20' ) end [2025-07-18 18:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15496060', 'tblTempVendorCDR_20' ) start [2025-07-18 18:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15496060', 'tblTempVendorCDR_20' ) end [2025-07-18 18:25:23] Production.INFO: ProcessCDR(1,15496060,1,1,2) [2025-07-18 18:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15496060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 18:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15496060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 18:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15496060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 18:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15496060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 18:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15496060', 'tblTempUsageDetail_20' ) start [2025-07-18 18:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15496060', 'tblTempUsageDetail_20' ) end [2025-07-18 18:25:31] Production.ERROR: pbx prc_insertCDR start [2025-07-18 18:25:33] Production.ERROR: pbx prc_insertCDR end [2025-07-18 18:25:37] Production.INFO: ==17884== Releasing lock... [2025-07-18 18:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-18 18:25:37] Production.INFO: 56.5 MB #Memory Used# [2025-07-18 19:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-07-18 16:25:04 [end_date_ymd] => 2025-07-18 19:25:04 [RateCDR] => 1 ) [2025-07-18 19:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-18 16:25:04' and `end` < '2025-07-18 19:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-18 19:25:17] Production.INFO: count ==3039 [2025-07-18 19:25:18] Production.ERROR: pbx CDR StartTime 2025-07-18 16:25:04 - End Time 2025-07-18 19:25:04 [2025-07-18 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-18 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15496304', 'tblTempUsageDetail_20' ) start [2025-07-18 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15496304', 'tblTempUsageDetail_20' ) end [2025-07-18 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15496304', 'tblTempVendorCDR_20' ) start [2025-07-18 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15496304', 'tblTempVendorCDR_20' ) end [2025-07-18 19:25:18] Production.INFO: ProcessCDR(1,15496304,1,1,2) [2025-07-18 19:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15496304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15496304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15496304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 19:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15496304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 19:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15496304', 'tblTempUsageDetail_20' ) start [2025-07-18 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15496304', 'tblTempUsageDetail_20' ) end [2025-07-18 19:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-18 19:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-18 19:25:26] Production.INFO: ==22125== Releasing lock... [2025-07-18 19:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-18 19:25:26] Production.INFO: 51.75 MB #Memory Used# [2025-07-18 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-18 17:25:05 [end_date_ymd] => 2025-07-18 20:25:05 [RateCDR] => 1 ) [2025-07-18 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-07-18 17:25:05' and `end` < '2025-07-18 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-07-18 20:25:17] Production.INFO: count ==2332 [2025-07-18 20:25:18] Production.ERROR: pbx CDR StartTime 2025-07-18 17:25:05 - End Time 2025-07-18 20:25:05 [2025-07-18 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-18 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15496551', 'tblTempUsageDetail_20' ) start [2025-07-18 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15496551', 'tblTempUsageDetail_20' ) end [2025-07-18 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15496551', 'tblTempVendorCDR_20' ) start [2025-07-18 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15496551', 'tblTempVendorCDR_20' ) end [2025-07-18 20:25:18] Production.INFO: ProcessCDR(1,15496551,1,1,2) [2025-07-18 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15496551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15496551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15496551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 20:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15496551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15496551', 'tblTempUsageDetail_20' ) start [2025-07-18 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15496551', 'tblTempUsageDetail_20' ) end [2025-07-18 20:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-18 20:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-18 20:25:25] Production.INFO: ==26645== Releasing lock... [2025-07-18 20:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-18 20:25:25] Production.INFO: 45.75 MB #Memory Used# [2025-07-18 21:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-18 18:25:06 [end_date_ymd] => 2025-07-18 21:25:06 [RateCDR] => 1 ) [2025-07-18 21: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-07-18 18:25:06' and `end` < '2025-07-18 21: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-07-18 21:25:18] Production.INFO: count ==1734 [2025-07-18 21:25:19] Production.ERROR: pbx CDR StartTime 2025-07-18 18:25:06 - End Time 2025-07-18 21:25:06 [2025-07-18 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-18 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15496798', 'tblTempUsageDetail_20' ) start [2025-07-18 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15496798', 'tblTempUsageDetail_20' ) end [2025-07-18 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15496798', 'tblTempVendorCDR_20' ) start [2025-07-18 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15496798', 'tblTempVendorCDR_20' ) end [2025-07-18 21:25:19] Production.INFO: ProcessCDR(1,15496798,1,1,2) [2025-07-18 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15496798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15496798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15496798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 21:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15496798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15496798', 'tblTempUsageDetail_20' ) start [2025-07-18 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15496798', 'tblTempUsageDetail_20' ) end [2025-07-18 21:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-18 21:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-18 21:25:26] Production.INFO: ==31243== Releasing lock... [2025-07-18 21:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-18 21:25:26] Production.INFO: 41.5 MB #Memory Used# [2025-07-18 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-18 19:25:05 [end_date_ymd] => 2025-07-18 22:25:05 [RateCDR] => 1 ) [2025-07-18 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-07-18 19:25:05' and `end` < '2025-07-18 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-07-18 22:25:18] Production.INFO: count ==1395 [2025-07-18 22:25:18] Production.ERROR: pbx CDR StartTime 2025-07-18 19:25:05 - End Time 2025-07-18 22:25:05 [2025-07-18 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-18 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15497045', 'tblTempUsageDetail_20' ) start [2025-07-18 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15497045', 'tblTempUsageDetail_20' ) end [2025-07-18 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15497045', 'tblTempVendorCDR_20' ) start [2025-07-18 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15497045', 'tblTempVendorCDR_20' ) end [2025-07-18 22:25:18] Production.INFO: ProcessCDR(1,15497045,1,1,2) [2025-07-18 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15497045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15497045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15497045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 22:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15497045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15497045', 'tblTempUsageDetail_20' ) start [2025-07-18 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15497045', 'tblTempUsageDetail_20' ) end [2025-07-18 22:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-18 22:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-18 22:25:26] Production.INFO: ==3227== Releasing lock... [2025-07-18 22:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-18 22:25:26] Production.INFO: 38.25 MB #Memory Used# [2025-07-18 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-18 20:25:05 [end_date_ymd] => 2025-07-18 23:25:05 [RateCDR] => 1 ) [2025-07-18 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-07-18 20:25:05' and `end` < '2025-07-18 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-07-18 23:25:17] Production.INFO: count ==1264 [2025-07-18 23:25:17] Production.ERROR: pbx CDR StartTime 2025-07-18 20:25:05 - End Time 2025-07-18 23:25:05 [2025-07-18 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-18 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15497292', 'tblTempUsageDetail_20' ) start [2025-07-18 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15497292', 'tblTempUsageDetail_20' ) end [2025-07-18 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15497292', 'tblTempVendorCDR_20' ) start [2025-07-18 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15497292', 'tblTempVendorCDR_20' ) end [2025-07-18 23:25:17] Production.INFO: ProcessCDR(1,15497292,1,1,2) [2025-07-18 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15497292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 23:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15497292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-18 23:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15497292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 23:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15497292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-18 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15497292', 'tblTempUsageDetail_20' ) start [2025-07-18 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15497292', 'tblTempUsageDetail_20' ) end [2025-07-18 23:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-18 23:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-18 23:25:24] Production.INFO: ==7573== Releasing lock... [2025-07-18 23:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-18 23:25:24] Production.INFO: 37.5 MB #Memory Used#