[2025-08-02 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-01 21:25:06 [end_date_ymd] => 2025-08-02 00:25:06 [RateCDR] => 1 ) [2025-08-02 00:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-01 21:25:06' and `end` < '2025-08-02 00:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-02 00:25:18] Production.INFO: count ==693 [2025-08-02 00:25:19] Production.ERROR: pbx CDR StartTime 2025-08-01 21:25:06 - End Time 2025-08-02 00:25:06 [2025-08-02 00:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-02 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15580515', 'tblTempUsageDetail_20' ) start [2025-08-02 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15580515', 'tblTempUsageDetail_20' ) end [2025-08-02 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15580515', 'tblTempVendorCDR_20' ) start [2025-08-02 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15580515', 'tblTempVendorCDR_20' ) end [2025-08-02 00:25:19] Production.INFO: ProcessCDR(1,15580515,1,1,2) [2025-08-02 00:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15580515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 00:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15580515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 00:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15580515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 00:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15580515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15580515', 'tblTempUsageDetail_20' ) start [2025-08-02 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15580515', 'tblTempUsageDetail_20' ) end [2025-08-02 00:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-02 00:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-02 00:25:27] Production.INFO: ==28599== Releasing lock... [2025-08-02 00:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-02 00:25:27] Production.INFO: 37.5 MB #Memory Used# [2025-08-02 01:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-01 22:25:06 [end_date_ymd] => 2025-08-02 01:25:06 [RateCDR] => 1 ) [2025-08-02 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-08-01 22:25:06' and `end` < '2025-08-02 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-08-02 01:25:18] Production.INFO: count ==735 [2025-08-02 01:25:18] Production.ERROR: pbx CDR StartTime 2025-08-01 22:25:06 - End Time 2025-08-02 01:25:06 [2025-08-02 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-02 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15580762', 'tblTempUsageDetail_20' ) start [2025-08-02 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15580762', 'tblTempUsageDetail_20' ) end [2025-08-02 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15580762', 'tblTempVendorCDR_20' ) start [2025-08-02 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15580762', 'tblTempVendorCDR_20' ) end [2025-08-02 01:25:18] Production.INFO: ProcessCDR(1,15580762,1,1,2) [2025-08-02 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15580762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 01:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15580762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 01:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15580762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 01:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15580762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15580762', 'tblTempUsageDetail_20' ) start [2025-08-02 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15580762', 'tblTempUsageDetail_20' ) end [2025-08-02 01:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-02 01:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-02 01:25:26] Production.INFO: ==1442== Releasing lock... [2025-08-02 01:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-02 01:25:26] Production.INFO: 33.75 MB #Memory Used# [2025-08-02 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-01 23:25:05 [end_date_ymd] => 2025-08-02 02:25:05 [RateCDR] => 1 ) [2025-08-02 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-08-01 23:25:05' and `end` < '2025-08-02 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-08-02 02:25:18] Production.INFO: count ==729 [2025-08-02 02:25:18] Production.ERROR: pbx CDR StartTime 2025-08-01 23:25:05 - End Time 2025-08-02 02:25:05 [2025-08-02 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-02 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15581009', 'tblTempUsageDetail_20' ) start [2025-08-02 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15581009', 'tblTempUsageDetail_20' ) end [2025-08-02 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15581009', 'tblTempVendorCDR_20' ) start [2025-08-02 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15581009', 'tblTempVendorCDR_20' ) end [2025-08-02 02:25:18] Production.INFO: ProcessCDR(1,15581009,1,1,2) [2025-08-02 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15581009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15581009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15581009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 02:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15581009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15581009', 'tblTempUsageDetail_20' ) start [2025-08-02 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15581009', 'tblTempUsageDetail_20' ) end [2025-08-02 02:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-02 02:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-02 02:25:25] Production.INFO: ==6520== Releasing lock... [2025-08-02 02:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-02 02:25:25] Production.INFO: 33.75 MB #Memory Used# [2025-08-02 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-02 00:25:05 [end_date_ymd] => 2025-08-02 03:25:05 [RateCDR] => 1 ) [2025-08-02 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-08-02 00:25:05' and `end` < '2025-08-02 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-08-02 03:25:17] Production.INFO: count ==669 [2025-08-02 03:25:17] Production.ERROR: pbx CDR StartTime 2025-08-02 00:25:05 - End Time 2025-08-02 03:25:05 [2025-08-02 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-02 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15581256', 'tblTempUsageDetail_20' ) start [2025-08-02 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15581256', 'tblTempUsageDetail_20' ) end [2025-08-02 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15581256', 'tblTempVendorCDR_20' ) start [2025-08-02 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15581256', 'tblTempVendorCDR_20' ) end [2025-08-02 03:25:17] Production.INFO: ProcessCDR(1,15581256,1,1,2) [2025-08-02 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15581256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15581256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15581256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 03:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15581256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15581256', 'tblTempUsageDetail_20' ) start [2025-08-02 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15581256', 'tblTempUsageDetail_20' ) end [2025-08-02 03:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-02 03:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-02 03:25:25] Production.INFO: ==10824== Releasing lock... [2025-08-02 03:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-02 03:25:25] Production.INFO: 33.75 MB #Memory Used# [2025-08-02 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-02 01:25:05 [end_date_ymd] => 2025-08-02 04:25:05 [RateCDR] => 1 ) [2025-08-02 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-08-02 01:25:05' and `end` < '2025-08-02 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-08-02 04:25:17] Production.INFO: count ==541 [2025-08-02 04:25:18] Production.ERROR: pbx CDR StartTime 2025-08-02 01:25:05 - End Time 2025-08-02 04:25:05 [2025-08-02 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-02 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15581504', 'tblTempUsageDetail_20' ) start [2025-08-02 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15581504', 'tblTempUsageDetail_20' ) end [2025-08-02 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15581504', 'tblTempVendorCDR_20' ) start [2025-08-02 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15581504', 'tblTempVendorCDR_20' ) end [2025-08-02 04:25:18] Production.INFO: ProcessCDR(1,15581504,1,1,2) [2025-08-02 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15581504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15581504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15581504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 04:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15581504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15581504', 'tblTempUsageDetail_20' ) start [2025-08-02 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15581504', 'tblTempUsageDetail_20' ) end [2025-08-02 04:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-02 04:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-02 04:25:24] Production.INFO: ==15058== Releasing lock... [2025-08-02 04:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-02 04:25:24] Production.INFO: 33.25 MB #Memory Used# [2025-08-02 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-02 02:25:05 [end_date_ymd] => 2025-08-02 05:25:05 [RateCDR] => 1 ) [2025-08-02 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-08-02 02:25:05' and `end` < '2025-08-02 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-08-02 05:25:17] Production.INFO: count ==361 [2025-08-02 05:25:17] Production.ERROR: pbx CDR StartTime 2025-08-02 02:25:05 - End Time 2025-08-02 05:25:05 [2025-08-02 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-02 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15581752', 'tblTempUsageDetail_20' ) start [2025-08-02 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15581752', 'tblTempUsageDetail_20' ) end [2025-08-02 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15581752', 'tblTempVendorCDR_20' ) start [2025-08-02 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15581752', 'tblTempVendorCDR_20' ) end [2025-08-02 05:25:18] Production.INFO: ProcessCDR(1,15581752,1,1,2) [2025-08-02 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15581752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15581752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15581752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 05:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15581752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15581752', 'tblTempUsageDetail_20' ) start [2025-08-02 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15581752', 'tblTempUsageDetail_20' ) end [2025-08-02 05:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-02 05:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-02 05:25:24] Production.INFO: ==19610== Releasing lock... [2025-08-02 05:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-02 05:25:24] Production.INFO: 31.25 MB #Memory Used# [2025-08-02 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-02 03:25:05 [end_date_ymd] => 2025-08-02 06:25:05 [RateCDR] => 1 ) [2025-08-02 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-08-02 03:25:05' and `end` < '2025-08-02 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-08-02 06:25:17] Production.INFO: count ==230 [2025-08-02 06:25:17] Production.ERROR: pbx CDR StartTime 2025-08-02 03:25:05 - End Time 2025-08-02 06:25:05 [2025-08-02 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-02 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15581999', 'tblTempUsageDetail_20' ) start [2025-08-02 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15581999', 'tblTempUsageDetail_20' ) end [2025-08-02 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15581999', 'tblTempVendorCDR_20' ) start [2025-08-02 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15581999', 'tblTempVendorCDR_20' ) end [2025-08-02 06:25:17] Production.INFO: ProcessCDR(1,15581999,1,1,2) [2025-08-02 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15581999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 06:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15581999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 06:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15581999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 06:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15581999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15581999', 'tblTempUsageDetail_20' ) start [2025-08-02 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15581999', 'tblTempUsageDetail_20' ) end [2025-08-02 06:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-02 06:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-02 06:25:24] Production.INFO: ==24604== Releasing lock... [2025-08-02 06:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-02 06:25:24] Production.INFO: 30.5 MB #Memory Used# [2025-08-02 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-02 04:25:05 [end_date_ymd] => 2025-08-02 07:25:05 [RateCDR] => 1 ) [2025-08-02 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-08-02 04:25:05' and `end` < '2025-08-02 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-08-02 07:25:17] Production.INFO: count ==154 [2025-08-02 07:25:17] Production.ERROR: pbx CDR StartTime 2025-08-02 04:25:05 - End Time 2025-08-02 07:25:05 [2025-08-02 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-02 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15582246', 'tblTempUsageDetail_20' ) start [2025-08-02 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15582246', 'tblTempUsageDetail_20' ) end [2025-08-02 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15582246', 'tblTempVendorCDR_20' ) start [2025-08-02 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15582246', 'tblTempVendorCDR_20' ) end [2025-08-02 07:25:17] Production.INFO: ProcessCDR(1,15582246,1,1,2) [2025-08-02 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15582246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15582246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15582246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 07:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15582246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15582246', 'tblTempUsageDetail_20' ) start [2025-08-02 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15582246', 'tblTempUsageDetail_20' ) end [2025-08-02 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-02 07:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-02 07:25:24] Production.INFO: ==30391== Releasing lock... [2025-08-02 07:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-02 07:25:24] Production.INFO: 29.5 MB #Memory Used# [2025-08-02 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-02 05:25:05 [end_date_ymd] => 2025-08-02 08:25:05 [RateCDR] => 1 ) [2025-08-02 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-08-02 05:25:05' and `end` < '2025-08-02 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-08-02 08:25:17] Production.INFO: count ==220 [2025-08-02 08:25:17] Production.ERROR: pbx CDR StartTime 2025-08-02 05:25:05 - End Time 2025-08-02 08:25:05 [2025-08-02 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-02 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15582493', 'tblTempUsageDetail_20' ) start [2025-08-02 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15582493', 'tblTempUsageDetail_20' ) end [2025-08-02 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15582493', 'tblTempVendorCDR_20' ) start [2025-08-02 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15582493', 'tblTempVendorCDR_20' ) end [2025-08-02 08:25:17] Production.INFO: ProcessCDR(1,15582493,1,1,2) [2025-08-02 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15582493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15582493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15582493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 08:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15582493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15582493', 'tblTempUsageDetail_20' ) start [2025-08-02 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15582493', 'tblTempUsageDetail_20' ) end [2025-08-02 08:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-02 08:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-02 08:25:24] Production.INFO: ==2376== Releasing lock... [2025-08-02 08:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-02 08:25:24] Production.INFO: 30.25 MB #Memory Used# [2025-08-02 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-02 06:25:05 [end_date_ymd] => 2025-08-02 09:25:05 [RateCDR] => 1 ) [2025-08-02 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-02 06:25:05' and `end` < '2025-08-02 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-02 09:25:17] Production.INFO: count ==552 [2025-08-02 09:25:17] Production.ERROR: pbx CDR StartTime 2025-08-02 06:25:05 - End Time 2025-08-02 09:25:05 [2025-08-02 09:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-02 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15582740', 'tblTempUsageDetail_20' ) start [2025-08-02 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15582740', 'tblTempUsageDetail_20' ) end [2025-08-02 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15582740', 'tblTempVendorCDR_20' ) start [2025-08-02 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15582740', 'tblTempVendorCDR_20' ) end [2025-08-02 09:25:17] Production.INFO: ProcessCDR(1,15582740,1,1,2) [2025-08-02 09:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15582740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15582740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15582740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 09:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15582740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15582740', 'tblTempUsageDetail_20' ) start [2025-08-02 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15582740', 'tblTempUsageDetail_20' ) end [2025-08-02 09:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-02 09:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-02 09:25:24] Production.INFO: ==6934== Releasing lock... [2025-08-02 09:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-02 09:25:24] Production.INFO: 33 MB #Memory Used# [2025-08-02 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-02 07:25:05 [end_date_ymd] => 2025-08-02 10:25:05 [RateCDR] => 1 ) [2025-08-02 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-08-02 07:25:05' and `end` < '2025-08-02 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-08-02 10:25:17] Production.INFO: count ==987 [2025-08-02 10:25:18] Production.ERROR: pbx CDR StartTime 2025-08-02 07:25:05 - End Time 2025-08-02 10:25:05 [2025-08-02 10:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-02 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15582987', 'tblTempUsageDetail_20' ) start [2025-08-02 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15582987', 'tblTempUsageDetail_20' ) end [2025-08-02 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15582987', 'tblTempVendorCDR_20' ) start [2025-08-02 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15582987', 'tblTempVendorCDR_20' ) end [2025-08-02 10:25:18] Production.INFO: ProcessCDR(1,15582987,1,1,2) [2025-08-02 10:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15582987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 10:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15582987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 10:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15582987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 10:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15582987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15582987', 'tblTempUsageDetail_20' ) start [2025-08-02 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15582987', 'tblTempUsageDetail_20' ) end [2025-08-02 10:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-02 10:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-02 10:25:25] Production.INFO: ==11188== Releasing lock... [2025-08-02 10:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-02 10:25:25] Production.INFO: 36.5 MB #Memory Used# [2025-08-02 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-02 08:25:06 [end_date_ymd] => 2025-08-02 11:25:06 [RateCDR] => 1 ) [2025-08-02 11:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-02 08:25:06' and `end` < '2025-08-02 11:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-02 11:25:19] Production.INFO: count ==1649 [2025-08-02 11:25:19] Production.ERROR: pbx CDR StartTime 2025-08-02 08:25:06 - End Time 2025-08-02 11:25:06 [2025-08-02 11:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-02 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15583234', 'tblTempUsageDetail_20' ) start [2025-08-02 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15583234', 'tblTempUsageDetail_20' ) end [2025-08-02 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15583234', 'tblTempVendorCDR_20' ) start [2025-08-02 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15583234', 'tblTempVendorCDR_20' ) end [2025-08-02 11:25:19] Production.INFO: ProcessCDR(1,15583234,1,1,2) [2025-08-02 11:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15583234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 11:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15583234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 11:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15583234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 11:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15583234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 11:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15583234', 'tblTempUsageDetail_20' ) start [2025-08-02 11:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15583234', 'tblTempUsageDetail_20' ) end [2025-08-02 11:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-02 11:25:28] Production.ERROR: pbx prc_insertCDR end [2025-08-02 11:25:28] Production.INFO: ==16358== Releasing lock... [2025-08-02 11:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-02 11:25:28] Production.INFO: 40.75 MB #Memory Used# [2025-08-02 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-02 09:25:05 [end_date_ymd] => 2025-08-02 12:25:05 [RateCDR] => 1 ) [2025-08-02 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-08-02 09:25:05' and `end` < '2025-08-02 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-08-02 12:25:18] Production.INFO: count ==1804 [2025-08-02 12:25:19] Production.ERROR: pbx CDR StartTime 2025-08-02 09:25:05 - End Time 2025-08-02 12:25:05 [2025-08-02 12:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-02 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15583481', 'tblTempUsageDetail_20' ) start [2025-08-02 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15583481', 'tblTempUsageDetail_20' ) end [2025-08-02 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15583481', 'tblTempVendorCDR_20' ) start [2025-08-02 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15583481', 'tblTempVendorCDR_20' ) end [2025-08-02 12:25:19] Production.INFO: ProcessCDR(1,15583481,1,1,2) [2025-08-02 12:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15583481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 12:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15583481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 12:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15583481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 12:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15583481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15583481', 'tblTempUsageDetail_20' ) start [2025-08-02 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15583481', 'tblTempUsageDetail_20' ) end [2025-08-02 12:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-02 12:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-02 12:25:27] Production.INFO: ==20741== Releasing lock... [2025-08-02 12:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-02 12:25:27] Production.INFO: 41.75 MB #Memory Used# [2025-08-02 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-02 10:25:06 [end_date_ymd] => 2025-08-02 13:25:06 [RateCDR] => 1 ) [2025-08-02 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-08-02 10:25:06' and `end` < '2025-08-02 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-08-02 13:25:18] Production.INFO: count ==1980 [2025-08-02 13:25:19] Production.ERROR: pbx CDR StartTime 2025-08-02 10:25:06 - End Time 2025-08-02 13:25:06 [2025-08-02 13:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-02 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15583728', 'tblTempUsageDetail_20' ) start [2025-08-02 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15583728', 'tblTempUsageDetail_20' ) end [2025-08-02 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15583728', 'tblTempVendorCDR_20' ) start [2025-08-02 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15583728', 'tblTempVendorCDR_20' ) end [2025-08-02 13:25:19] Production.INFO: ProcessCDR(1,15583728,1,1,2) [2025-08-02 13:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15583728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 13:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15583728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 13:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15583728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 13:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15583728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15583728', 'tblTempUsageDetail_20' ) start [2025-08-02 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15583728', 'tblTempUsageDetail_20' ) end [2025-08-02 13:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-02 13:25:28] Production.ERROR: pbx prc_insertCDR end [2025-08-02 13:25:28] Production.INFO: ==25454== Releasing lock... [2025-08-02 13:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-02 13:25:28] Production.INFO: 43 MB #Memory Used# [2025-08-02 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-02 11:25:05 [end_date_ymd] => 2025-08-02 14:25:05 [RateCDR] => 1 ) [2025-08-02 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-08-02 11:25:05' and `end` < '2025-08-02 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-08-02 14:25:18] Production.INFO: count ==1696 [2025-08-02 14:25:18] Production.ERROR: pbx CDR StartTime 2025-08-02 11:25:05 - End Time 2025-08-02 14:25:05 [2025-08-02 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-02 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15583975', 'tblTempUsageDetail_20' ) start [2025-08-02 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15583975', 'tblTempUsageDetail_20' ) end [2025-08-02 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15583975', 'tblTempVendorCDR_20' ) start [2025-08-02 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15583975', 'tblTempVendorCDR_20' ) end [2025-08-02 14:25:18] Production.INFO: ProcessCDR(1,15583975,1,1,2) [2025-08-02 14:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15583975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 14:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15583975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 14:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15583975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 14:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15583975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15583975', 'tblTempUsageDetail_20' ) start [2025-08-02 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15583975', 'tblTempUsageDetail_20' ) end [2025-08-02 14:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-02 14:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-02 14:25:26] Production.INFO: ==31512== Releasing lock... [2025-08-02 14:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-02 14:25:26] Production.INFO: 40.75 MB #Memory Used# [2025-08-02 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-02 12:25:05 [end_date_ymd] => 2025-08-02 15:25:05 [RateCDR] => 1 ) [2025-08-02 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-08-02 12:25:05' and `end` < '2025-08-02 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-08-02 15:25:17] Production.INFO: count ==1648 [2025-08-02 15:25:18] Production.ERROR: pbx CDR StartTime 2025-08-02 12:25:05 - End Time 2025-08-02 15:25:05 [2025-08-02 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-02 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15584222', 'tblTempUsageDetail_20' ) start [2025-08-02 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15584222', 'tblTempUsageDetail_20' ) end [2025-08-02 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15584222', 'tblTempVendorCDR_20' ) start [2025-08-02 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15584222', 'tblTempVendorCDR_20' ) end [2025-08-02 15:25:18] Production.INFO: ProcessCDR(1,15584222,1,1,2) [2025-08-02 15:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15584222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 15:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15584222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 15:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15584222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 15:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15584222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15584222', 'tblTempUsageDetail_20' ) start [2025-08-02 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15584222', 'tblTempUsageDetail_20' ) end [2025-08-02 15:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-02 15:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-02 15:25:26] Production.INFO: ==4611== Releasing lock... [2025-08-02 15:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-02 15:25:26] Production.INFO: 40.75 MB #Memory Used# [2025-08-02 16:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-02 13:25:06 [end_date_ymd] => 2025-08-02 16:25:06 [RateCDR] => 1 ) [2025-08-02 16: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-08-02 13:25:06' and `end` < '2025-08-02 16: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-08-02 16:25:18] Production.INFO: count ==1428 [2025-08-02 16:25:19] Production.ERROR: pbx CDR StartTime 2025-08-02 13:25:06 - End Time 2025-08-02 16:25:06 [2025-08-02 16:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-02 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15584469', 'tblTempUsageDetail_20' ) start [2025-08-02 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15584469', 'tblTempUsageDetail_20' ) end [2025-08-02 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15584469', 'tblTempVendorCDR_20' ) start [2025-08-02 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15584469', 'tblTempVendorCDR_20' ) end [2025-08-02 16:25:19] Production.INFO: ProcessCDR(1,15584469,1,1,2) [2025-08-02 16:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15584469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 16:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15584469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 16:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15584469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 16:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15584469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15584469', 'tblTempUsageDetail_20' ) start [2025-08-02 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15584469', 'tblTempUsageDetail_20' ) end [2025-08-02 16:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-02 16:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-02 16:25:27] Production.INFO: ==8989== Releasing lock... [2025-08-02 16:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-02 16:25:27] Production.INFO: 39 MB #Memory Used# [2025-08-02 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-02 14:25:05 [end_date_ymd] => 2025-08-02 17:25:05 [RateCDR] => 1 ) [2025-08-02 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-08-02 14:25:05' and `end` < '2025-08-02 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-08-02 17:25:18] Production.INFO: count ==1628 [2025-08-02 17:25:18] Production.ERROR: pbx CDR StartTime 2025-08-02 14:25:05 - End Time 2025-08-02 17:25:05 [2025-08-02 17:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-02 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15584716', 'tblTempUsageDetail_20' ) start [2025-08-02 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15584716', 'tblTempUsageDetail_20' ) end [2025-08-02 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15584716', 'tblTempVendorCDR_20' ) start [2025-08-02 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15584716', 'tblTempVendorCDR_20' ) end [2025-08-02 17:25:18] Production.INFO: ProcessCDR(1,15584716,1,1,2) [2025-08-02 17:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15584716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 17:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15584716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 17:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15584716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 17:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15584716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15584716', 'tblTempUsageDetail_20' ) start [2025-08-02 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15584716', 'tblTempUsageDetail_20' ) end [2025-08-02 17:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-02 17:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-02 17:25:27] Production.INFO: ==14496== Releasing lock... [2025-08-02 17:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-02 17:25:27] Production.INFO: 40.25 MB #Memory Used# [2025-08-02 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-02 15:25:05 [end_date_ymd] => 2025-08-02 18:25:05 [RateCDR] => 1 ) [2025-08-02 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-08-02 15:25:05' and `end` < '2025-08-02 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-08-02 18:25:18] Production.INFO: count ==1720 [2025-08-02 18:25:24] Production.ERROR: pbx CDR StartTime 2025-08-02 15:25:05 - End Time 2025-08-02 18:25:05 [2025-08-02 18:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-02 18:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15584963', 'tblTempUsageDetail_20' ) start [2025-08-02 18:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15584963', 'tblTempUsageDetail_20' ) end [2025-08-02 18:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15584963', 'tblTempVendorCDR_20' ) start [2025-08-02 18:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15584963', 'tblTempVendorCDR_20' ) end [2025-08-02 18:25:26] Production.INFO: ProcessCDR(1,15584963,1,1,2) [2025-08-02 18:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15584963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 18:25:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15584963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 18:25:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15584963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 18:26:13] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15584963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 18:26:13] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15584963', 'tblTempUsageDetail_20' ) start [2025-08-02 18:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15584963', 'tblTempUsageDetail_20' ) end [2025-08-02 18:26:26] Production.ERROR: pbx prc_insertCDR start [2025-08-02 18:26:27] Production.ERROR: pbx prc_insertCDR end [2025-08-02 18:26:29] Production.INFO: ==19238== Releasing lock... [2025-08-02 18:26:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-02 18:26:29] Production.INFO: 41 MB #Memory Used# [2025-08-02 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-02 16:25:06 [end_date_ymd] => 2025-08-02 19:25:06 [RateCDR] => 1 ) [2025-08-02 19: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-08-02 16:25:06' and `end` < '2025-08-02 19: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-08-02 19:25:18] Production.INFO: count ==1801 [2025-08-02 19:25:19] Production.ERROR: pbx CDR StartTime 2025-08-02 16:25:06 - End Time 2025-08-02 19:25:06 [2025-08-02 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-02 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15585208', 'tblTempUsageDetail_20' ) start [2025-08-02 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15585208', 'tblTempUsageDetail_20' ) end [2025-08-02 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15585208', 'tblTempVendorCDR_20' ) start [2025-08-02 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15585208', 'tblTempVendorCDR_20' ) end [2025-08-02 19:25:19] Production.INFO: ProcessCDR(1,15585208,1,1,2) [2025-08-02 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15585208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15585208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15585208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 19:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15585208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15585208', 'tblTempUsageDetail_20' ) start [2025-08-02 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15585208', 'tblTempUsageDetail_20' ) end [2025-08-02 19:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-02 19:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-02 19:25:27] Production.INFO: ==23703== Releasing lock... [2025-08-02 19:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-02 19:25:27] Production.INFO: 41.75 MB #Memory Used# [2025-08-02 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-02 17:25:05 [end_date_ymd] => 2025-08-02 20:25:05 [RateCDR] => 1 ) [2025-08-02 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-08-02 17:25:05' and `end` < '2025-08-02 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-08-02 20:25:17] Production.INFO: count ==1526 [2025-08-02 20:25:18] Production.ERROR: pbx CDR StartTime 2025-08-02 17:25:05 - End Time 2025-08-02 20:25:05 [2025-08-02 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-02 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15585455', 'tblTempUsageDetail_20' ) start [2025-08-02 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15585455', 'tblTempUsageDetail_20' ) end [2025-08-02 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15585455', 'tblTempVendorCDR_20' ) start [2025-08-02 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15585455', 'tblTempVendorCDR_20' ) end [2025-08-02 20:25:18] Production.INFO: ProcessCDR(1,15585455,1,1,2) [2025-08-02 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15585455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15585455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15585455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 20:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15585455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15585455', 'tblTempUsageDetail_20' ) start [2025-08-02 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15585455', 'tblTempUsageDetail_20' ) end [2025-08-02 20:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-02 20:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-02 20:25:25] Production.INFO: ==28479== Releasing lock... [2025-08-02 20:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-02 20:25:25] Production.INFO: 39.5 MB #Memory Used# [2025-08-02 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-02 18:25:05 [end_date_ymd] => 2025-08-02 21:25:05 [RateCDR] => 1 ) [2025-08-02 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-08-02 18:25:05' and `end` < '2025-08-02 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-08-02 21:25:17] Production.INFO: count ==1336 [2025-08-02 21:25:17] Production.ERROR: pbx CDR StartTime 2025-08-02 18:25:05 - End Time 2025-08-02 21:25:05 [2025-08-02 21:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-02 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15585702', 'tblTempUsageDetail_20' ) start [2025-08-02 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15585702', 'tblTempUsageDetail_20' ) end [2025-08-02 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15585702', 'tblTempVendorCDR_20' ) start [2025-08-02 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15585702', 'tblTempVendorCDR_20' ) end [2025-08-02 21:25:17] Production.INFO: ProcessCDR(1,15585702,1,1,2) [2025-08-02 21:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15585702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15585702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15585702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 21:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15585702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 21:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15585702', 'tblTempUsageDetail_20' ) start [2025-08-02 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15585702', 'tblTempUsageDetail_20' ) end [2025-08-02 21:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-02 21:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-02 21:25:25] Production.INFO: ==534== Releasing lock... [2025-08-02 21:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-02 21:25:25] Production.INFO: 38.25 MB #Memory Used# [2025-08-02 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-02 19:25:05 [end_date_ymd] => 2025-08-02 22:25:05 [RateCDR] => 1 ) [2025-08-02 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-08-02 19:25:05' and `end` < '2025-08-02 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-08-02 22:25:17] Production.INFO: count ==1176 [2025-08-02 22:25:18] Production.ERROR: pbx CDR StartTime 2025-08-02 19:25:05 - End Time 2025-08-02 22:25:05 [2025-08-02 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-02 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15585949', 'tblTempUsageDetail_20' ) start [2025-08-02 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15585949', 'tblTempUsageDetail_20' ) end [2025-08-02 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15585949', 'tblTempVendorCDR_20' ) start [2025-08-02 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15585949', 'tblTempVendorCDR_20' ) end [2025-08-02 22:25:18] Production.INFO: ProcessCDR(1,15585949,1,1,2) [2025-08-02 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15585949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15585949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15585949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 22:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15585949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15585949', 'tblTempUsageDetail_20' ) start [2025-08-02 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15585949', 'tblTempUsageDetail_20' ) end [2025-08-02 22:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-02 22:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-02 22:25:25] Production.INFO: ==5101== Releasing lock... [2025-08-02 22:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-02 22:25:25] Production.INFO: 37.25 MB #Memory Used# [2025-08-02 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-02 20:25:05 [end_date_ymd] => 2025-08-02 23:25:05 [RateCDR] => 1 ) [2025-08-02 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-08-02 20:25:05' and `end` < '2025-08-02 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-08-02 23:25:17] Production.INFO: count ==1105 [2025-08-02 23:25:17] Production.ERROR: pbx CDR StartTime 2025-08-02 20:25:05 - End Time 2025-08-02 23:25:05 [2025-08-02 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-02 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15586196', 'tblTempUsageDetail_20' ) start [2025-08-02 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15586196', 'tblTempUsageDetail_20' ) end [2025-08-02 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15586196', 'tblTempVendorCDR_20' ) start [2025-08-02 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15586196', 'tblTempVendorCDR_20' ) end [2025-08-02 23:25:17] Production.INFO: ProcessCDR(1,15586196,1,1,2) [2025-08-02 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15586196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15586196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-02 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15586196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 23:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15586196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-02 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15586196', 'tblTempUsageDetail_20' ) start [2025-08-02 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15586196', 'tblTempUsageDetail_20' ) end [2025-08-02 23:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-02 23:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-02 23:25:25] Production.INFO: ==9607== Releasing lock... [2025-08-02 23:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-02 23:25:25] Production.INFO: 36.5 MB #Memory Used#